2015-12-01 00:26:35 +01:00
|
|
|
bandwidth = None
|
2015-11-26 01:26:10 +01:00
|
|
|
host = None
|
2014-05-04 19:26:43 +02:00
|
|
|
main = None
|
2015-11-26 01:26:10 +01:00
|
|
|
nodes = False
|
2014-05-04 19:26:43 +02:00
|
|
|
online = False
|
2015-11-26 01:26:10 +01:00
|
|
|
tasks = False
|
2016-01-05 21:46:50 +05:30
|
|
|
scraping = False
|
|
|
|
downloads = False
|
2015-11-26 01:26:10 +01:00
|
|
|
tor = False
|
|
|
|
websockets = []
|
2014-05-04 19:26:43 +02:00
|
|
|
|
2014-05-17 02:14:15 +02:00
|
|
|
activity = {}
|
|
|
|
|
2014-05-04 19:26:43 +02:00
|
|
|
def user():
|
|
|
|
import settings
|
|
|
|
import user.models
|
|
|
|
return user.models.User.get_or_create(settings.USER_ID)
|
2014-08-09 18:14:14 +02:00
|
|
|
|
|
|
|
from threading import local
|
|
|
|
db = local()
|