exporter-ng: output directory resolves to 'out' by default
This commit is contained in:
parent
0d22af2470
commit
bafe448aa2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue