Skip to content

Commit

Permalink
Fix api_call_async having a sync Login helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
p0t4t0sandwich committed Jun 1, 2024
1 parent f1b6d99 commit ce7cd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ampapi/ampapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def api_call_async(self, endpoint: str, data: dict = {}) -> dict:
now: int = round(time.time())
if now - self.lastAPICall > self.relogInterval:
self.lastAPICall = now
self.Login()
await self.LoginAsync()
else:
self.lastAPICall = now
session = {"SESSIONID": self.sessionId}
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ampapi
version = 1.3.15
version = 1.3.16
author = Dylan Sperrer - p0t4t0sandwich - thepotatoking3452
author_email = [email protected]
description = An API that allows you to communicate with AMP installations from within Python.
Expand Down

0 comments on commit ce7cd8f

Please sign in to comment.