1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 19:40:21 +01:00

Added log for updating specific channel messages

This commit is contained in:
Roman Dobosz
2016-12-02 17:46:27 +01:00
parent 9ddd470b54
commit 0d7607cf3c

View File

@@ -112,6 +112,7 @@ class Client(object):
channels = all_channels channels = all_channels
for channel in channels: for channel in channels:
logging.info("Getting messages for channel `%s'", channel.name)
latest = self.q(o.Message).\ latest = self.q(o.Message).\
filter(o.Message.channel == channel).\ filter(o.Message.channel == channel).\
order_by(o.Message.ts.desc()).first() order_by(o.Message.ts.desc()).first()