Skip to content

Commit

Permalink
adding get_recent_captures
Browse files Browse the repository at this point in the history
  • Loading branch information
adrima01 committed Jun 19, 2024
1 parent 6e1997d commit 5275bef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pylookyloo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +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:
'''Gets the uuids of the most recent captures
'''
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('json/recent_captures'))))
return r.json()

@overload
def upload_capture(self, *, quiet: Literal[True],
listing: bool = False,
Expand Down

0 comments on commit 5275bef

Please sign in to comment.