From 0304860bce66c4d5e348e05ec672efacd7d32f51 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Mon, 14 Mar 2022 11:10:51 +0100 Subject: [PATCH] Don't check status for empty URL rows --- auto_archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_archive.py b/auto_archive.py index 484b56f..e4d2020 100644 --- a/auto_archive.py +++ b/auto_archive.py @@ -109,7 +109,7 @@ def process_sheet(sheet, header=1, columns=GWorksheet.COLUMN_NAMES): for row in range(1 + header, gw.count_rows() + 1): url = gw.get_cell(row, 'url') original_status = gw.get_cell(row, 'status') - status = gw.get_cell(row, 'status', fresh=original_status in ['', None]) + status = gw.get_cell(row, 'status', fresh=original_status in ['', None] and url != '') if url != '' and status in ['', None]: gw.set_cell(row, 'status', 'Archive in progress')