openmedialibrary/oml/state.py
2016-01-12 20:30:54 +05:30

22 lines
348 B
Python

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