fix: typo

This commit is contained in:
monoid 2022-05-25 03:35:36 +09:00
parent cd7722ac5b
commit 55bd3332ca

3
gen.py
View File

@ -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]