Merge pull request #1385 from SkynetLabs/airtable-trim-skylink

Add Airtable skylinks whitespace trimming
This commit is contained in:
Ivaylo Novakov 2021-11-18 13:16:54 +01:00 committed by GitHub
commit 124695c17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
- Add trimming Airtable skylinks from Takedown Request table.

View File

@ -100,8 +100,8 @@ async def block_skylinks_from_airtable():
entry["fields"].get(AIRTABLE_FIELD, "") for entry in data["records"]
]
skylinks = [
skylink for skylink in skylinks if skylink
] # filter empty skylinks, most likely empty rows
skylink.strip() for skylink in skylinks if skylink
] # filter empty skylinks, most likely empty rows, trim whitespace
offset = data.get("offset")