diff --git a/exporter-ng.py b/exporter-ng.py index 4d00ab5..fc5f712 100644 --- a/exporter-ng.py +++ b/exporter-ng.py @@ -306,7 +306,7 @@ class SlackMessage: class SlackExporter: """Główna klasa eksportera""" - def __init__(self, config: SlackConfig, output_dir: str): + def __init__(self, config: SlackConfig, output_dir: str = 'out'): self.api = SlackAPI(config) self.timestamp = datetime.now().strftime("%Y-%m-%d_%H%M%S") self.output_dir = self._set_output_dir(output_dir) @@ -434,4 +434,4 @@ class SlackExporter: if __name__ == "__main__": config = SlackConfig.from_env() - exporter = SlackExporter(config, 'out') + exporter = SlackExporter(config)