1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 11:30:25 +01:00

Merge to head

This commit is contained in:
2016-11-26 19:23:03 +01:00
2 changed files with 3 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ Slack backup
.. image:: https://img.shields.io/pypi/v/slack-backup.svg
:target: https://pypi.python.org/pypi/slack-backup
This project aim is to collect conversations from Slack using its API and
The project aim is to collect conversations from Slack using its API and
optionally user account information, and provides convenient way to represent
as a log.

View File

@@ -204,7 +204,6 @@ class TextReporter(Reporter):
"""return formatter for file"""
groups = self._slackid_pat[0].match(msg.text).groupdict()
text = msg.text.replace(groups['replace'], '')
text = self._filter_slackid(msg.text)
filename = msg.file.filepath
if filename:
filename = os.path.relpath(msg.file.filepath, start=self.out)
@@ -212,9 +211,8 @@ class TextReporter(Reporter):
filename = msg.file.url
if not filename:
logging.warning("There is have a file object, but nothing has "
"found. Name of the file object is `%s'",
msg.file.name)
logging.warning("There is a file object, but without filename."
"Name of the file object is `%s'", msg.file.name)
filename = msg.file.name
text = self._filter_slackid(text)