diff options
author | Hoai-Thu Vuong <thuvh@users.noreply.github.com> | 2014-07-08 07:50:41 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-08 17:07:20 +0200 |
commit | ddd31e85e99599ed1304ba45ec46550f73ade113 (patch) | |
tree | 868897b83fa0b80c890aaacb4215738b1c107934 | |
parent | Use Base log methods (diff) | |
download | pyload-ddd31e85e99599ed1304ba45ec46550f73ade113.tar.xz |
Update Account.py
I running and received error no define of login_timeout, after adding self. it work perfectly
-rw-r--r-- | module/plugins/Account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index f6c59ae25..847a686ec 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -287,7 +287,7 @@ class Account(Base): def checkLogin(self, user): """ checks if user is still logged in """ if user in self.timestamps: - if self.login_timeout > 0 and self.timestamps[user] + login_timeout * 60 > time(): + if self.login_timeout > 0 and self.timestamps[user] + self.login_timeout * 60 > time(): self.logDebug("Reached login timeout for %s" % user) return self.relogin(user) else: |