Spaces:
sahanind
/
No application file

sahanind commited on
Commit
45f4182
·
verified ·
1 Parent(s): 9dd23c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -15,6 +15,7 @@ from FastTelethonhelper import fast_download
15
  from FastTelethonhelper import fast_upload
16
  from telethon import TelegramClient, events,sync
17
  import asyncio
 
18
 
19
 
20
 
@@ -564,6 +565,7 @@ def start_flask_app():
564
  if __name__ == '__main__':
565
  loop = asyncio.new_event_loop()
566
  asyncio.set_event_loop(loop)
 
567
  try:
568
  # Run the async task
569
  loop.run_until_complete(downdb())
@@ -571,4 +573,6 @@ if __name__ == '__main__':
571
  loop.close()
572
 
573
  # Now start the Flask app after async task finishes
 
 
574
  start_flask_app()
 
15
  from FastTelethonhelper import fast_upload
16
  from telethon import TelegramClient, events,sync
17
  import asyncio
18
+ import time
19
 
20
 
21
 
 
565
  if __name__ == '__main__':
566
  loop = asyncio.new_event_loop()
567
  asyncio.set_event_loop(loop)
568
+ print('1')
569
  try:
570
  # Run the async task
571
  loop.run_until_complete(downdb())
 
573
  loop.close()
574
 
575
  # Now start the Flask app after async task finishes
576
+ time.sleep(60)
577
+ print('2')
578
  start_flask_app()