Spaces:
sahanind
/
No application file

sahanind commited on
Commit
c6c50b1
·
verified ·
1 Parent(s): c3a2267

Update bdl.py

Browse files
Files changed (1) hide show
  1. bdl.py +5 -6
bdl.py CHANGED
@@ -8,7 +8,7 @@ app_id = os.getenv("APP_ID")
8
  api_hash = os.getenv("API_HASH")
9
  btoken = os.getenv("BOT")
10
  chnl = os.getenv("CHN")
11
-
12
 
13
  api_id = int(app_id)
14
  api_hash = str(api_hash)
@@ -32,9 +32,8 @@ async def downdb():
32
 
33
  return '2'
34
 
35
-
36
- loop = asyncio.new_event_loop()
37
- asyncio.set_event_loop(loop)
38
-
39
- rp = loop.run_until_complete(downdb())
40
  print('done')
 
8
  api_hash = os.getenv("API_HASH")
9
  btoken = os.getenv("BOT")
10
  chnl = os.getenv("CHN")
11
+ p = os.getenv("DBS")
12
 
13
  api_id = int(app_id)
14
  api_hash = str(api_hash)
 
32
 
33
  return '2'
34
 
35
+ if p==True:
36
+ loop = asyncio.new_event_loop()
37
+ asyncio.set_event_loop(loop)
38
+ rp = loop.run_until_complete(downdb())
 
39
  print('done')