From aee69767349da9ec32de86f26fe64d57347a43ff Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 5 Mar 2021 23:45:44 +0100 Subject: [PATCH] xrange --- setup-scripts/blocklist-airtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/blocklist-airtable.py b/setup-scripts/blocklist-airtable.py index 52906712..74f38d0d 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -76,7 +76,7 @@ async def block_skylinks_from_airtable(): print("Searching nginx cache for blocked files") cached_files_count = 0 - for i in xrange(0, len(skylinks), 1000): + for i in range(0, len(skylinks), 1000): cached_files_command = ( "/usr/bin/find /data/nginx/cache/ -type f | /usr/bin/xargs --no-run-if-empty -n1000 /bin/grep -Els '^KEY: .*(" + "|".join(skylinks[i:i+1000])