Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -518,6 +518,7 @@ def save_to_db(part, title, desc, link):
|
|
518 |
meta.insert_one({"part": part, "title": title, "description": desc, "link": link, "uploaded": time.time()})
|
519 |
|
520 |
def auto_loop():
|
|
|
521 |
global UPLOAD_TIMES, NEXT_RESET, first_run
|
522 |
|
523 |
ist = timezone(timedelta(hours=5, minutes=30)) # IST timezone
|
|
|
518 |
meta.insert_one({"part": part, "title": title, "description": desc, "link": link, "uploaded": time.time()})
|
519 |
|
520 |
def auto_loop():
|
521 |
+
asyncio.set_event_loop(asyncio.new_event_loop())
|
522 |
global UPLOAD_TIMES, NEXT_RESET, first_run
|
523 |
|
524 |
ist = timezone(timedelta(hours=5, minutes=30)) # IST timezone
|