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

Fix for files object db store

This commit is contained in:
2016-11-26 15:13:43 +01:00
parent 2c6979f2b5
commit 137f9bbac6
2 changed files with 9 additions and 2 deletions

View File

@@ -188,6 +188,7 @@ class Client(object):
data['url_private_download'])
priv_url = data['url_private_download']
message.file.filepath = self.downloader.download(priv_url, 'file')
self.session.add(message.file)
def _att_data(self, message, data):
"""
@@ -229,7 +230,7 @@ class Client(object):
def _update_channel(self, channel, data):
"""Update a channel with provided data"""
logging.info("Update channel `%s' information in DB", channel.name)
logging.info("Update channel `%s' information in DB", data['name'])
channel.update(data)
channel.user = self.q(o.User).filter(o.User.slackid ==