修复网页加载慢的问题
This commit is contained in:
parent
7c15f4156f
commit
2ba1f32a67
@ -54,6 +54,7 @@ def init_db():
|
||||
ts TEXT,
|
||||
read INTEGER DEFAULT 0
|
||||
)''')
|
||||
c.execute('CREATE INDEX IF NOT EXISTS idx_notifications_user_read ON notifications(user_id, read)')
|
||||
c.execute('''CREATE TABLE IF NOT EXISTS mac_batches(
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
mac TEXT,
|
||||
@ -6058,4 +6059,4 @@ init_db()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', '5000')))
|
||||
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', '5000')), threaded=True)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user