Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed Mar 5, 2024
1 parent f6c2a43 commit fd2525c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/python-fastui/fastui/auth/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ async def exchange_code(self, code: str) -> GoogleExchange:
if exchange := EXCHANGE_CACHE.get(cache_key, self._exchange_cache_age):
return exchange
else:
print('getting exchange code from google and setting cache')
exchange = await self._exchange_code(code)
EXCHANGE_CACHE.set(cache_key, exchange, self._exchange_cache_age)
return exchange
Expand Down Expand Up @@ -171,9 +170,7 @@ def get(self, key: str, max_age: timedelta) -> Union[GoogleExchange, None]:
return value[1]

def set(self, key: str, value: GoogleExchange, max_age: timedelta) -> None:
print('setting cache')
self._cache[key] = (datetime.now(), value)
print('cache', self._cache)

def _purge(self, max_age: timedelta) -> None:
now = datetime.now()
Expand Down

0 comments on commit fd2525c

Please sign in to comment.