rairo commited on
Commit
13caedf
·
verified ·
1 Parent(s): 66f4063

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -397,13 +397,13 @@ def get_user_profile():
397
  return jsonify({
398
  'uid': uid,
399
  'email': user.email,
400
- 'daily_cash': user_data.get('daily_cash', 100),
401
- 'remaining_cash': user_data.get('remaining_cash', 100),
402
  'last_reset': user_data.get('last_reset'),
403
  'is_admin': user_data.get('is_admin', False)
404
  })
405
  except Exception as e:
406
- return jsonify({'error': str(e)}), 500
407
 
408
  # Receipt media endpoints
409
 
 
397
  return jsonify({
398
  'uid': uid,
399
  'email': user.email,
400
+ 'daily_cash': user_data.get('daily_cash', 0),
401
+ 'remaining_cash': user_data.get('remaining_cash', 0),
402
  'last_reset': user_data.get('last_reset'),
403
  'is_admin': user_data.get('is_admin', False)
404
  })
405
  except Exception as e:
406
+ return jsonify({'error': str(e)+ f'user data: {user_data}'}), 500
407
 
408
  # Receipt media endpoints
409