]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/cron_ipanalyse.py
write correct ban list out
[nominatim.git] / utils / cron_ipanalyse.py
index 4dddb1cf35447d8e20612574293843650cf14709..f214af761bb63f458e16151a1290fd17faa838ff 100755 (executable)
@@ -349,7 +349,7 @@ if __name__ == '__main__':
             elif wasbulked:
                 debulked.append(k)
     for i in bl.blacklist:
             elif wasbulked:
                 debulked.append(k)
     for i in bl.blacklist:
-        fd.write("%s ban\n" % k)
+        fd.write("%s ban\n" % i)
     fd.close()
 
     # TODO write logs (need to collect some statistics)
     fd.close()
 
     # TODO write logs (need to collect some statistics)