openmedialibrary/oml/state.py
2017-06-03 22:50:14 +02:00

27 lines
399 B
Python

from threading import local
bandwidth = None
host = None
main = None
nodes = False
node = False
online = False
tasks = False
downloads = False
tor = False
update = False
shutdown = False
websockets = []
peers = {}
changelog_size = None
activity = {}
removepeer = {}
db = local()
def user():
import settings
import user.models
return user.models.User.get_or_create(settings.USER_ID)