Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -72,11 +72,13 @@ def update_google_sheet():
|
|
72 |
gspread_bot.import_csv(spreadsheet_id, data)
|
73 |
print({f"Google sheet {spreadsheet_id} successfully updated!"})
|
74 |
|
75 |
-
|
76 |
scheduler = BackgroundScheduler()
|
77 |
scheduler.add_job(update_google_sheet, "interval", seconds=60)
|
78 |
scheduler.start()
|
79 |
|
|
|
|
|
80 |
|
81 |
def calculate_level(xp):
|
82 |
return int(xp ** (1.0 / 3.0))
|
@@ -214,6 +216,7 @@ async def add_exp(member_id):
|
|
214 |
await member.add_roles(lvl1)
|
215 |
print(f"Gave {member} {lvl1}") # can log this better
|
216 |
|
|
|
217 |
except Exception as e:
|
218 |
print(f"add_exp Error: {e}")
|
219 |
|
|
|
72 |
gspread_bot.import_csv(spreadsheet_id, data)
|
73 |
print({f"Google sheet {spreadsheet_id} successfully updated!"})
|
74 |
|
75 |
+
"""
|
76 |
scheduler = BackgroundScheduler()
|
77 |
scheduler.add_job(update_google_sheet, "interval", seconds=60)
|
78 |
scheduler.start()
|
79 |
|
80 |
+
"""
|
81 |
+
|
82 |
|
83 |
def calculate_level(xp):
|
84 |
return int(xp ** (1.0 / 3.0))
|
|
|
216 |
await member.add_roles(lvl1)
|
217 |
print(f"Gave {member} {lvl1}") # can log this better
|
218 |
|
219 |
+
update_google_sheet()
|
220 |
except Exception as e:
|
221 |
print(f"add_exp Error: {e}")
|
222 |
|