From cbf1fe083dbc0e3a357135255b5c9b7fc35049a4 Mon Sep 17 00:00:00 2001 From: nsantacruz Date: Thu, 20 Jun 2024 14:18:20 +0300 Subject: [PATCH] fix: strip curated column before checking len --- experiments/topic_source_curation/curator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/topic_source_curation/curator.py b/experiments/topic_source_curation/curator.py index 30f3ada..eee6403 100644 --- a/experiments/topic_source_curation/curator.py +++ b/experiments/topic_source_curation/curator.py @@ -32,7 +32,7 @@ def get_topics_to_curate(): with open(TOPICS_TO_CURATE_CSV_PATH, "r") as fin: cin = csv.DictReader(fin) for row in cin: - if len(row['curated']) > 0: + if len(row['curated'].strip()) > 0: continue slug = row['slug'].strip() try: