From f2a72d8934631b84436cdf89eaeaff81e1b63958 Mon Sep 17 00:00:00 2001 From: ErnestaP Date: Tue, 23 Apr 2024 16:41:41 +0200 Subject: [PATCH] OA: type conversion --- dags/open_access/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/open_access/utils.py b/dags/open_access/utils.py index 786e317..9b9d73a 100644 --- a/dags/open_access/utils.py +++ b/dags/open_access/utils.py @@ -37,7 +37,7 @@ def get_total_results_count(data): match = TOTAL_RECORDS_COUNT.search(comment_line) try: total_records_count = match.group(1) - return total_records_count + return int(total_records_count) except AttributeError: return 0