X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b57dc6addfe6d91ad78642d1f6881d206b7e425a..f040d62402698480c18038f20374eaf687a08759:/utils/cron_banip.py?ds=inline diff --git a/utils/cron_banip.py b/utils/cron_banip.py index d716affb..af443444 100755 --- a/utils/cron_banip.py +++ b/utils/cron_banip.py @@ -182,6 +182,7 @@ if debulkcandidates: cur.execute(""" SELECT DISTINCT ipaddress FROM new_query_log WHERE ipaddress IN ('%s') AND starttime > now() - interval '%s' + AND starttime > date_trunc('day', now()) """ % ("','".join(debulkcandidates), BULKCOOLOFF_PERIOD)) for c in cur: