diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-15 05:33:20 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:26:54 +0100 |
commit | 9c0119e0b6c268ed3a96ad1e6fe510de4f43392c (patch) | |
tree | 015c995aec4d1686982d7e33981aa525c1e500d2 | |
parent | Update hosters (1) (diff) | |
download | pyload-9c0119e0b6c268ed3a96ad1e6fe510de4f43392c.tar.xz |
[Account] Fix reset method
-rw-r--r-- | module/plugins/internal/Account.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index b02538c68..7c614f579 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -6,7 +6,7 @@ import threading import time from module.plugins.internal.Plugin import Plugin, Skip -from module.plugins.internal.utils import compare_time, isiterable, lock, parse_size, safe_format +from module.plugins.internal.misc import compare_time, isiterable, lock, parse_size, safe_format class Account(Plugin): @@ -85,7 +85,7 @@ class Account(Plugin): return True - def start_periodical(self, interval=None, threaded=False, delay=None): + def start_periodical(self, interval=None, threaded=False, delay=0): if interval is not None and self.set_interval(interval) is False: return False else: @@ -209,7 +209,7 @@ class Account(Plugin): self.sync() clear = lambda x: {} if isinstance(x, dict) else [] if isiterable(x) else None - self.info['data'] = dict((k, clear(v)) for k, v in self.info['data']) + self.info['data'] = dict((k, clear(v)) for k, v in self.info['data'].items()) self.info['data']['options'] = {'limitdl': ['0']} self.syncback() |