2017-06-03 20:50:14 +00:00
|
|
|
from threading import local
|
|
|
|
|
2015-11-30 23:26:35 +00:00
|
|
|
bandwidth = None
|
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
|
2016-01-12 15:00:51 +00:00
|
|
|
node = False
|
2014-05-04 17:26:43 +00:00
|
|
|
online = False
|
2015-11-26 00:26:10 +00:00
|
|
|
tasks = False
|
2016-01-05 16:16:50 +00:00
|
|
|
downloads = False
|
2019-01-13 07:21:38 +00:00
|
|
|
sync_enabled = True
|
2015-11-26 00:26:10 +00:00
|
|
|
tor = False
|
2016-01-12 15:00:51 +00:00
|
|
|
update = False
|
2016-01-31 16:45:14 +00:00
|
|
|
shutdown = False
|
2015-11-26 00:26:10 +00:00
|
|
|
websockets = []
|
2019-01-21 04:58:08 +00:00
|
|
|
uisockets = []
|
2016-02-10 14:02:32 +00:00
|
|
|
peers = {}
|
2014-05-04 17:26:43 +00:00
|
|
|
|
2017-06-03 20:50:14 +00:00
|
|
|
changelog_size = None
|
|
|
|
|
2014-05-17 00:14:15 +00:00
|
|
|
activity = {}
|
2016-01-14 13:36:07 +00:00
|
|
|
removepeer = {}
|
2017-06-03 20:50:14 +00:00
|
|
|
db = local()
|
2014-05-17 00:14:15 +00:00
|
|
|
|
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
|
|
|
|