X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5502c223756ed755edae9670497f1456e528d3f0..54ab72a939e5bb83edc50244c5918223629f9085:/utils/cron_banip.py 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: