From bafe448aa278caa3adad21b0bfc130a47b6ab2f7 Mon Sep 17 00:00:00 2001 From: Piotr Dec Date: Wed, 30 Apr 2025 00:17:38 +0200 Subject: [PATCH] exporter-ng: output directory resolves to 'out' by default --- exporter-ng.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)