Skip to content

Commit

Permalink
fix: from iso format to timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
byBenPuls committed Nov 3, 2024
1 parent 9c6d2ec commit aaad903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moy_nalog/moy_nalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 54,9 @@ async def _get_token(self) -> str:
self.__token
and self.__token
and int(time.time() * 1000) 60 * 1000
< int(self.__token.expire_in.timestamp() * 1000)
< int(datetime.fromisoformat(
self.__token.expire_in.replace("Z", " 00:00")
).timestamp() * 1000)
):
return self.__token.value

Expand Down

0 comments on commit aaad903

Please sign in to comment.