Spaces:
Build error
Build error
Merge pull request #84 from DL4DS/regen-patch
Browse files- 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:
|