From 53234d6fd443f3220de30010c9ed94702cb9c33c Mon Sep 17 00:00:00 2001 From: Arghya721 Date: Mon, 19 Aug 2024 03:10:28 +0530 Subject: [PATCH] refactor: Update remaining generations to 20 in get_generations function --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f3a70d7..75fafa3 100644 --- a/app.py +++ b/app.py @@ -594,11 +594,11 @@ def get_generations(token_info: dict = Depends(verify_google_token)): # create a new document for the user with the remaining generations user_generations_ref.set({ 'google_user_id': token_info['sub'], - 'remaining_generations': 30, + 'remaining_generations': 20, 'created_at': google_firestore.SERVER_TIMESTAMP, 'updated_at': google_firestore.SERVER_TIMESTAMP, }) - return 30 + return 20 def update_generations_left(token_info: dict = Depends(verify_google_token), generations_left: int = 30): """Update the number of generations left for the user."""