exporter-ng: output directory resolves to 'out' by default

This commit is contained in:
Piotr Dec 2025-04-30 00:17:38 +02:00
parent 0d22af2470
commit bafe448aa2
No known key found for this signature in database
GPG key ID: D3B5A5D0150D147A

View file

@ -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)