Revize 2d129043
Přidáno uživatelem Petr Hlaváč před asi 4 roky(ů)
modules/crawler/DatasetProcessing/JISProcessor.py | ||
---|---|---|
17 | 17 |
False if not implemented |
18 | 18 |
True when implemented |
19 | 19 |
""" |
20 |
with open(filename, "r", encoding="utf-8") as file:
|
|
20 |
date_dict = dict()
|
|
21 | 21 |
|
22 |
date_dict = dict()
|
|
22 |
with open(filename, "r", encoding="utf-8") as file:
|
|
23 | 23 |
|
24 | 24 |
for line in file: |
25 | 25 |
|
... | ... | |
35 | 35 |
if name in date_dict[date]: |
36 | 36 |
date_dict[date][name].occurrence += int(occurrence) |
37 | 37 |
else: |
38 |
date_dict[date][name] = CSVDataLine.CSVDataLine(name, date, int(occurrence))
|
|
38 |
date_dict[date][name] = CSVDataLine.CSVDataLine(name, date, occurrence)
|
|
39 | 39 |
|
40 |
CSVutils.export_data_to_csv(filename, date_dict) |
|
41 |
return True |
|
40 |
return date_dict |
|
42 | 41 |
|
Také k dispozici: Unified diff
Re #7939
- upravena struktura processorů v pipeline
- pridani kontroly validity dat