Skip to content

Commit

Permalink
register csv import handler
Browse files Browse the repository at this point in the history
  • Loading branch information
zuntrax committed Jun 24, 2017
1 parent c884464 commit c43d6da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion handlers/directory.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import Type

from .base import ImportHandler, ExportHandler
from .import_handlers import FakeImportHandler
from .import_handlers import FakeImportHandler, CSVImportHandler
from .export_handlers import BasicXMLExportHandler, ExtendedXMLExportHandler

import_handlers = {
"csv": CSVImportHandler,
"fake": FakeImportHandler,
}

Expand Down
1 change: 1 addition & 0 deletions handlers/import_handlers/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from .csv import CSVImportHandler
from .fake import FakeImportHandler
2 changes: 1 addition & 1 deletion handlers/import_handlers/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def run(self):
day_count=int(self.global_config.get('conference', 'day_count')),
start=parse_date(self.global_config.get('conference', 'start')),
end=parse_date(self.global_config.get('conference', 'end')),
time_slot_duration=parse_duration(self.global_config.get('conference', 'timeslot'))
time_slot_duration=parse_duration(self.global_config.get('conference', 'time_slot_duration'))
)
slug = StandardSlugGenerator(conference)
schedule = Schedule(conference=conference)
Expand Down

0 comments on commit c43d6da

Please sign in to comment.