X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/921cc233890705d6a916fa415b51fdd88fa8fe11..54995a86ab7274ccf4fb2e73ecb443426ed462f4:/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: