concatenate string

This commit is contained in:
Karol Wypchlo 2021-07-18 08:55:29 +02:00
parent 96ade5f36d
commit fdee9b46ee
2 changed files with 14 additions and 1 deletions

View File

@ -31,7 +31,7 @@ async def block_skylinks_from_airtable():
offset = None offset = None
retry = 0 retry = 0
while len(skylinks) == 0 or offset: while len(skylinks) == 0 or offset:
print("Requesting a batch of records from Airtable with " + (offset if offset else "empty") + " offset" + (" (retry " + retry + ")" if retry else "")) print("Requesting a batch of records from Airtable with " + (offset if offset else "empty") + " offset" + (" (retry " + str(retry) + ")" if retry else ""))
query = "&".join(["fields%5B%5D=" + AIRTABLE_FIELD, ("offset=" + offset) if offset else ""]) query = "&".join(["fields%5B%5D=" + AIRTABLE_FIELD, ("offset=" + offset) if offset else ""])
response = requests.get( response = requests.get(
"https://api.airtable.com/v0/" + AIRTABLE_BASE + "/" + AIRTABLE_TABLE + "?" + query, "https://api.airtable.com/v0/" + AIRTABLE_BASE + "/" + AIRTABLE_TABLE + "?" + query,

View File

@ -0,0 +1,13 @@
/home/user/skynet-webportal/docker/data/nginx/logs/*.log {
hourly
dateext
rotate 3650
missingok
notifempty
nocompress
create 640 root root
sharedscripts
postrotate
docker exec nginx sh -c '! test -f /usr/local/openresty/nginx/logs/nginx.pid' || docker exec nginx sh -c 'kill -USR1 $(cat /usr/local/openresty/nginx/logs/nginx.pid)'
endscript
}