Spaces:
Sleeping
Sleeping
Update app/app.py
Browse files- app/app.py +2 -1
app/app.py
CHANGED
@@ -85,7 +85,7 @@ def handle_transfer_command(data):
|
|
85 |
amount = next((float(opt.get("value")) for opt in options if opt.get("name") == "amount"), None)
|
86 |
|
87 |
try:
|
88 |
-
bank_system.transfer_between_accounts(user_id, target_id, amount)
|
89 |
return jsonify({
|
90 |
"type": 4,
|
91 |
"data": {
|
@@ -108,6 +108,7 @@ bank_system.transfer_between_accounts(user_id, target_id, amount)
|
|
108 |
}
|
109 |
})
|
110 |
|
|
|
111 |
def handle_daily_command(data):
|
112 |
"""Verarbeitet den täglichen Bonus-Befehl"""
|
113 |
user_id = data.get("member", {}).get("user", {}).get("id")
|
|
|
85 |
amount = next((float(opt.get("value")) for opt in options if opt.get("name") == "amount"), None)
|
86 |
|
87 |
try:
|
88 |
+
bank_system.transfer_between_accounts(user_id, target_id, amount) # Richtige Einrückung
|
89 |
return jsonify({
|
90 |
"type": 4,
|
91 |
"data": {
|
|
|
108 |
}
|
109 |
})
|
110 |
|
111 |
+
|
112 |
def handle_daily_command(data):
|
113 |
"""Verarbeitet den täglichen Bonus-Befehl"""
|
114 |
user_id = data.get("member", {}).get("user", {}).get("id")
|