From ddd31e85e99599ed1304ba45ec46550f73ade113 Mon Sep 17 00:00:00 2001 From: Hoai-Thu Vuong Date: Tue, 8 Jul 2014 12:50:41 +0700 Subject: Update Account.py I running and received error no define of login_timeout, after adding self. it work perfectly --- module/plugins/Account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3