summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/AccountManager.py2
-rw-r--r--module/web/pyload/views.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py
index 202032052..70f694fcc 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -39,7 +39,7 @@ class AccountManager():
self.initAccountPlugins()
- self.accountInfoCache = []
+ self.accountInfoCache = {}
self.loadAccounts()
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index cfcd43061..ec690db1a 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -11,6 +11,7 @@ from urllib import unquote
from itertools import chain
from datetime import datetime
from time import localtime, strftime
+from copy import deepcopy
from django.conf import settings
from django.contrib.auth.decorators import login_required
@@ -341,7 +342,7 @@ def config(request):
else:
messages.append(_("All options were set correctly."))
- accs = settings.PYLOAD.get_accounts()
+ accs = deepcopy(settings.PYLOAD.get_accounts())
for accounts in accs.itervalues():
for data in accounts:
if data["trafficleft"] == -1: