Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1276
swh.storage.interface new endpoint proposal
Active
Public
Actions
Authored by
ardumont
on Feb 4 2022, 3:55 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
```
@remote_api_endpoint("origin/visit_status/find_by_date")
def origin_visit_status_find_by_date(
self, origin: str, visit_date: datetime.datetime
) -> Optional[OriginVisit]:
"""Retrieves the origin visit status whose date is superior to the provided
timestamp. If no such visit exists, returns None.
Args:
origin: origin (URL)
visit_date: expected visit date
Returns:
A visit status if found, None otherwise
"""
...
```
Event Timeline
ardumont
created this paste.
Feb 4 2022, 3:55 PM
2022-02-04 15:55:05 (UTC+1)
ardumont
mentioned this in
D7078: Find latest origin visit status by date instead of visits filtering
.
ardumont
edited the content of this paste.
(Show Details)
Feb 4 2022, 3:59 PM
2022-02-04 15:59:04 (UTC+1)
ardumont
mentioned this in
T3905: icinga end-to-end (loader) check reports are off
.
Log In to Comment