2015-11-26 00:26:10 +00:00
|
|
|
host = None
|
2014-05-04 17:26:43 +00:00
|
|
|
main = None
|
2015-11-26 00:26:10 +00:00
|
|
|
nodes = False
|
2014-05-04 17:26:43 +00:00
|
|
|
online = False
|
2015-11-26 00:26:10 +00:00
|
|
|
tasks = False
|
|
|
|
tor = False
|
|
|
|
websockets = []
|
2014-05-04 17:26:43 +00:00
|
|
|
|
2014-05-17 00:14:15 +00:00
|
|
|
activity = {}
|
|
|
|
|
2014-05-04 17:26:43 +00:00
|
|
|
def user():
|
|
|
|
import settings
|
|
|
|
import user.models
|
|
|
|
return user.models.User.get_or_create(settings.USER_ID)
|
2014-08-09 16:14:14 +00:00
|
|
|
|
|
|
|
from threading import local
|
|
|
|
db = local()
|