XThomasBU commited on
Commit
0dc6d3f
·
1 Parent(s): ab2ff67
Files changed (1) hide show
  1. code/app.py +7 -7
code/app.py CHANGED
@@ -245,13 +245,13 @@ async def post_signin(request: Request):
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"] = (
250
- ALL_TIME_TOKENS_ALLOCATED
251
- )
252
- if "in_cooldown" not in user_details.metadata:
253
- user_details.metadata["in_cooldown"] = False
254
- await update_user_info(user_details)
255
 
256
  if "last_message_time" in user_details.metadata and "admin" not in get_user_role(
257
  user_info["email"]
 
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"] = (
250
+ ALL_TIME_TOKENS_ALLOCATED
251
+ )
252
+ if "in_cooldown" not in user_details.metadata:
253
+ user_details.metadata["in_cooldown"] = False
254
+ await update_user_info(user_details)
255
 
256
  if "last_message_time" in user_details.metadata and "admin" not in get_user_role(
257
  user_info["email"]