smaller batch fix

This commit is contained in:
Karol Wypchlo 2021-07-18 09:25:23 +02:00
parent ed19736e22
commit 7f448fb31f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ async def block_skylinks_from_airtable():
batch_size = 500
for i in range(0, len(skylinks), batch_size):
cached_files_command = (
"find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + batch_size + " grep -Els '^Skynet-Skylink: ("
"find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + str(batch_size) + " grep -Els '^Skynet-Skylink: ("
+ "|".join(skylinks[i:i+batch_size])
+ ")'"
)