hfaran / slack-export-viewer

A Slack Export archive viewer that allows you to easily view and share your Slack team's export
https://pypi.python.org/pypi/slack-export-viewer
MIT License
908 stars 192 forks source link

"single-file export" CLI command broken #103

Closed hfaran closed 5 years ago

hfaran commented 5 years ago

Reported by @rmacklin in https://github.com/hfaran/slack-export-viewer/pull/93#issuecomment-514863219

I think this broke the "single-file export" CLI command added in https://github.com/hfaran/slack-export-viewer/pull/79

Traceback (most recent call last):
  File "/Users/rmacklin/.pyenv/versions/2.7.13/bin/slack-export-viewer-cli", line 11, in <module>
    load_entry_point('slack-export-viewer==0.9.0', 'console_scripts', 'slack-export-viewer-cli')()
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/rmacklin/.pyenv/versions/2.7.13/lib/python2.7/site-packages/slackviewer/cli.py", line 43, in export
    [{"channel_name": k, "messages": v} for (k,v) in r.compile_channels().iteritems()],
TypeError: compile_channels() takes exactly 2 arguments (1 given)