Skip to content

Commit

Permalink
adding timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
adrima01 committed Jun 19, 2024
1 parent 5275bef commit ab2c84f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pylookyloo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,12 @@ def send_mail(self, tree_uuid: str, email: str = '', comment: str | None = None)
r = self.session.post(urljoin(self.root_url, str(PurePosixPath('json', tree_uuid, 'report'))), json=to_send)
return r.json()

def get_recent_captures(self) -> list:
def get_recent_captures(self, timestamp:str) -> list:
'''Gets the uuids of the most recent captures
:param timestamp: Timestamp of the capture
'''
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('json/recent_captures'))))
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('json/recent_captures/', timestamp))))
return r.json()

@overload
Expand Down

0 comments on commit ab2c84f

Please sign in to comment.