mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-02 00:13:11 +00:00
style(server): ruff-format Google client id cache helper
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d478ca4899
commit
ef0cfe3956
1 changed files with 4 additions and 3 deletions
|
|
@ -73,9 +73,10 @@ _google_client_id_cache_ts = 0.0
|
|||
def _get_google_client_id() -> str:
|
||||
global _google_client_id_cache, _google_client_id_cache_ts
|
||||
now = time.monotonic()
|
||||
if _google_client_id_cache is not None and (
|
||||
now - _google_client_id_cache_ts
|
||||
) <= _GOOGLE_CLIENT_ID_CACHE_TTL_SECONDS:
|
||||
if (
|
||||
_google_client_id_cache is not None
|
||||
and (now - _google_client_id_cache_ts) <= _GOOGLE_CLIENT_ID_CACHE_TTL_SECONDS
|
||||
):
|
||||
return _google_client_id_cache
|
||||
|
||||
config = load_config()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue