add usages count for every token

This commit is contained in:
norohind committed 2022-01-05 22:01:54 +03:00
1 parent bc2e13786f
commit d50df50ca1
3 files changed
+11 -2

No files matched your search

+1
View File
@@ -103,6 +103,7 @@ class CAPIAuthorizer:
return None
row['expires_over'] = int(row['expires_on']) - int(time.time())
return row
def refresh_by_state(self, state: str, force_refresh=False, failure_tolerance=True) -> dict: