Merge pull request #1385 from SkynetLabs/airtable-trim-skylink
Add Airtable skylinks whitespace trimming
This commit is contained in:
commit
124695c17e
|
@ -0,0 +1 @@
|
||||||
|
- Add trimming Airtable skylinks from Takedown Request table.
|
|
@ -100,8 +100,8 @@ async def block_skylinks_from_airtable():
|
||||||
entry["fields"].get(AIRTABLE_FIELD, "") for entry in data["records"]
|
entry["fields"].get(AIRTABLE_FIELD, "") for entry in data["records"]
|
||||||
]
|
]
|
||||||
skylinks = [
|
skylinks = [
|
||||||
skylink for skylink in skylinks if skylink
|
skylink.strip() for skylink in skylinks if skylink
|
||||||
] # filter empty skylinks, most likely empty rows
|
] # filter empty skylinks, most likely empty rows, trim whitespace
|
||||||
|
|
||||||
offset = data.get("offset")
|
offset = data.get("offset")
|
||||||
|
|
||||||
|
|
Reference in New Issue