Update app.py
Browse files
app.py
CHANGED
@@ -502,14 +502,12 @@ def new_conversation():
|
|
502 |
@app.route('/downdb', methods=['GET'])
|
503 |
@login_required
|
504 |
def downdbur():
|
505 |
-
msgid = request.args.get('msg', '')
|
506 |
-
|
507 |
# Create a new event loop for the current thread
|
508 |
loop = asyncio.new_event_loop()
|
509 |
asyncio.set_event_loop(loop)
|
510 |
|
511 |
# Run the async function
|
512 |
-
rp = loop.run_until_complete(downdb(
|
513 |
loop.close() # Close the loop when done
|
514 |
|
515 |
if rp == '2':
|
|
|
502 |
@app.route('/downdb', methods=['GET'])
|
503 |
@login_required
|
504 |
def downdbur():
|
|
|
|
|
505 |
# Create a new event loop for the current thread
|
506 |
loop = asyncio.new_event_loop()
|
507 |
asyncio.set_event_loop(loop)
|
508 |
|
509 |
# Run the async function
|
510 |
+
rp = loop.run_until_complete(downdb())
|
511 |
loop.close() # Close the loop when done
|
512 |
|
513 |
if rp == '2':
|