XThomasBU commited on
Commit
e934b90
·
unverified ·
2 Parent(s): 59567ad 44a3a08

Merge pull request #84 from DL4DS/regen-patch

Browse files
Files changed (1) hide show
  1. code/app.py +2 -0
code/app.py CHANGED
@@ -245,6 +245,8 @@ 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"] = ALL_TIME_TOKENS_ALLOCATED
250
  if "in_cooldown" 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 "last_message_time" not in user_details.metadata:
249
+ user_details.metadata["last_message_time"] = current_datetime
250
  if "all_time_tokens_allocated" not in user_details.metadata:
251
  user_details.metadata["all_time_tokens_allocated"] = ALL_TIME_TOKENS_ALLOCATED
252
  if "in_cooldown" not in user_details.metadata: