fix: typo
This commit is contained in:
parent
cd7722ac5b
commit
55bd3332ca
3
gen.py
3
gen.py
@ -88,7 +88,7 @@ def isDiffGreaterThan(a:pd.Series,b:pd.Series, nday:int) -> bool:
|
|||||||
def prepareCollector(collector: OutputCollector) -> None:
|
def prepareCollector(collector: OutputCollector) -> None:
|
||||||
import pages
|
import pages
|
||||||
for item in pages.GenLists:
|
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
|
def collect(data: DataStore, collector: OutputCollector, corp: database.KRXCorp
|
||||||
, nday: int) -> None:
|
, nday: int) -> None:
|
||||||
@ -183,6 +183,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
days = v.corpListByDate.keys()
|
days = v.corpListByDate.keys()
|
||||||
days = list(days)
|
days = list(days)
|
||||||
|
days.append(datetime.date.today().isoformat())
|
||||||
days.sort(reverse=True)
|
days.sort(reverse=True)
|
||||||
days = days[:5]
|
days = days[:5]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user