concatenate string
This commit is contained in:
parent
96ade5f36d
commit
fdee9b46ee
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
Reference in New Issue