mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-16 11:35:14 +00:00
Merge pull request 'Make sure requests runs async' (#26) from kermit/deemix-pyweb:fix-request into main
Reviewed-on: https://codeberg.org/RemixDev/deemix-pyweb/pulls/26
This commit is contained in:
commit
f118e8119d
|
@ -1,3 +1,4 @@
|
|||
deemix>=1.3.0
|
||||
flask
|
||||
flask-socketio
|
||||
eventlet
|
||||
|
|
|
@ -6,8 +6,10 @@ import subprocess
|
|||
from os import path
|
||||
import json
|
||||
|
||||
import requests
|
||||
from urllib.request import urlopen
|
||||
import eventlet
|
||||
requests = eventlet.import_patched('requests')
|
||||
urlopen = eventlet.import_patched('urllib.request').urlopen
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from flask import Flask, render_template, request, session, redirect, copy_current_request_context
|
||||
|
@ -71,7 +73,6 @@ class SocketInterface(MessageInterface):
|
|||
socketio.emit(message, value)
|
||||
else:
|
||||
socketio.emit(message)
|
||||
socketio.sleep(0)
|
||||
|
||||
|
||||
socket_interface = SocketInterface()
|
||||
|
|
Loading…
Reference in a new issue