XThomasBU commited on
Commit
34aaae9
·
1 Parent(s): c82efb6

format change

Browse files
Files changed (1) hide show
  1. code/app.py +3 -3
code/app.py CHANGED
@@ -242,9 +242,9 @@ async def post_signin(request: Request):
242
  user_details.metadata["last_login"] = current_datetime
243
  # if new user, set the number of tries
244
  if "tokens_left" not in user_details.metadata:
245
- user_details.metadata[
246
- "tokens_left"
247
- ] = TOKENS_LEFT # set the number of tokens left for the new user
248
  if "all_time_tokens_allocated" not in user_details.metadata:
249
  user_details.metadata["all_time_tokens_allocated"] = ALL_TIME_TOKENS_ALLOCATED
250
  if "in_cooldown" not in user_details.metadata:
 
242
  user_details.metadata["last_login"] = current_datetime
243
  # if new user, set the number of tries
244
  if "tokens_left" not in user_details.metadata:
245
+ user_details.metadata["tokens_left"] = (
246
+ TOKENS_LEFT # set the number of tokens left for the new user
247
+ )
248
  if "all_time_tokens_allocated" not in user_details.metadata:
249
  user_details.metadata["all_time_tokens_allocated"] = ALL_TIME_TOKENS_ALLOCATED
250
  if "in_cooldown" not in user_details.metadata: