Commit e3495a26 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed imports broken by e8802537

parent bc5e4397
from server import * from server import *
import threading import threading
import sched import sched
from time import sleep
scheduler = sched.scheduler() scheduler = sched.scheduler()
def run_scheduler(): def run_scheduler():
time.sleep(1) # UWSGI does weird things on startup sleep(1) # UWSGI does weird things on startup
while True: while True:
scheduler.run() scheduler.run()
time.sleep(10) sleep(10)
def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}): def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}):
if firstdelay == None: if firstdelay == None:
......
...@@ -14,7 +14,6 @@ import math ...@@ -14,7 +14,6 @@ import math
import locale import locale
import base64 import base64
import json import json
import time
locale.setlocale(locale.LC_ALL, 'de_DE.utf8') locale.setlocale(locale.LC_ALL, 'de_DE.utf8')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment