Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -311,7 +311,7 @@ async def mobile_process_receipts(background_tasks: BackgroundTasks, sheeturl: s
|
|
| 311 |
return {"message": "No documents were found."}
|
| 312 |
# if foundList contains "business_card" then check if business_cards_uploaded is equal to or over 500
|
| 313 |
user_doc = users_ref.document(user_ref).get().to_dict()
|
| 314 |
-
if not user_doc.get('paid',
|
| 315 |
if 'business_card' in foundList:
|
| 316 |
if user_doc.get('business_cards_uploaded', 0) >= 500:
|
| 317 |
return {"message": "You have reached the maximum number of business cards uploaded."}
|
|
|
|
| 311 |
return {"message": "No documents were found."}
|
| 312 |
# if foundList contains "business_card" then check if business_cards_uploaded is equal to or over 500
|
| 313 |
user_doc = users_ref.document(user_ref).get().to_dict()
|
| 314 |
+
if not user_doc.get('paid', False):
|
| 315 |
if 'business_card' in foundList:
|
| 316 |
if user_doc.get('business_cards_uploaded', 0) >= 500:
|
| 317 |
return {"message": "You have reached the maximum number of business cards uploaded."}
|