From 5c6a0e9fabafe5808ade79baff606d191961ce79 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 4 Jun 2022 18:17:38 +0200 Subject: [PATCH] ICONS: Fix workaround for the old LIST format --- gen-set.py | 10 ---------- 1 file changed, 10 deletions(-) mode change 100644 => 100755 gen-set.py diff --git a/gen-set.py b/gen-set.py old mode 100644 new mode 100755 index 4d98fa8..b0deac8 --- a/gen-set.py +++ b/gen-set.py @@ -244,16 +244,6 @@ def get_listfile_lasthash() -> Tuple[str, List[str]]: last_entry_values = listfile_entries[-1].split(LIST_DELIM) - if len(last_entry_values) == 1 or len(last_entry_values) == 2: - # remove this if/else after LIST file is committed with FIRST_HASH and just use else print/quit() - if len(listfile_entries) == 1: - print("WARNING: Workaround - fixing first line of LIST file! Pls remove this fix after the first run") - last_entry_values.append(FIRST_HASH) - listfile_entries[0] = listfile_entries[0].rstrip() + "," + FIRST_HASH - else: - print("Wrong LIST entry format - please add inputDate argument yyyymmdd and run the script again") - sys.exit(1) - return last_entry_values[2], listfile_entries