From 55bd3332caf6d79cd7f1f08a698c8c292286c6dc Mon Sep 17 00:00:00 2001 From: monoid Date: Wed, 25 May 2022 03:35:36 +0900 Subject: [PATCH] fix: typo --- gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen.py b/gen.py index abc79ba..9625649 100644 --- a/gen.py +++ b/gen.py @@ -88,7 +88,7 @@ def isDiffGreaterThan(a:pd.Series,b:pd.Series, nday:int) -> bool: def prepareCollector(collector: OutputCollector) -> None: import pages for item in pages.GenLists: - collector.addResult(item.name, item.description) + collector.addResult(item["name"], item["description"]) def collect(data: DataStore, collector: OutputCollector, corp: database.KRXCorp , nday: int) -> None: @@ -183,6 +183,7 @@ if __name__ == "__main__": days = v.corpListByDate.keys() days = list(days) + days.append(datetime.date.today().isoformat()) days.sort(reverse=True) days = days[:5]