[Mpuls-commits] r5387 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 22 18:33:50 CEST 2011
Author: bh
Date: 2011-09-22 18:33:49 +0200 (Thu, 22 Sep 2011)
New Revision: 5387
Modified:
base/trunk/mpulsweb/controllers/meta.py
Log:
The meta account was deactivated if the if remaining_searches is < 0.
If it's equal to zero, the next failed search will deactivate the
meta-account, unless its reset first, by uploading a new case or a
successful search.
Modified: base/trunk/mpulsweb/controllers/meta.py
===================================================================
--- base/trunk/mpulsweb/controllers/meta.py 2011-09-22 08:32:21 UTC (rev 5386)
+++ base/trunk/mpulsweb/controllers/meta.py 2011-09-22 16:33:49 UTC (rev 5387)
@@ -254,7 +254,7 @@
c.result, c.remaining_searches = \
get_meta_client().search_cases_by_hash(hash)
c.show_create = True
- if c.remaining_searches <= 0:
+ if c.remaining_searches < 0:
return error(header=_("Meta user disabled!"),
text=_("The meta user has been disabled "
"to prevent misuse of the meta-search. "
More information about the Mpuls-commits
mailing list