From 535a10815a236d69cea1f088dfe1fb07a4e99a9f Mon Sep 17 00:00:00 2001 From: Naelson Douglas Date: Sun, 17 Oct 2021 17:11:40 -0300 Subject: [PATCH] Removed a manual indexer pitfall --- make_sample.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/make_sample.py b/make_sample.py index d6d4c53..9341725 100644 --- a/make_sample.py +++ b/make_sample.py @@ -112,8 +112,7 @@ def make_sample(): print(date) label_dir = get_label(date, typeid) labels, dirs = solve_lable_dir(label_dir) - for i in range(len(labels)): - label = labels[i] + for i, label in enumerate(labels): label = label.replace('|','#') dir = dirs[i] set_label(label, dir, typeid, i, date)