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

10 Commits

Author SHA1 Message Date
fe1e2dd230 Adjusting test data/tests for new file attachment way. 2019-01-05 17:30:57 +01:00
db8527e9af Added implementation for url_file_attachment option.
Using url_file_attachment user can specify if he like to change objects
like 'file_share' marked as external (in Slack servers point of view)
to attachments, so the only value would be remembered URL for the
"uploaded" document as an attachment. Or, treat it as is, and let the
slack-backup to produce file which contain the URLs and corresponding
local file names for such files.
2018-07-16 15:20:45 +02:00
b2048b03e0 Changed behavoiur for duplicates
Till now, if we download certain files (like those attached to the
conversation) and we already have the file with the same name, number in
format '%03d' was added just before extension. That way there could be
possibility, that the very same file will be downloaded and stored
multiple times, like:

file.png
file.001.png
file.002.png
...

This commit prevents that by adding comparison between files we already
have and file which is downloaded from slack. Adding another file with
additional number will only have place when stored file and downloaded
have different content.
2017-11-01 18:40:52 +01:00
64d4b09468 Fix for handling messages of different types than 'message' 2017-08-06 09:22:38 +02:00
af7f24e9a9 Dropping Python 2 support 2016-11-26 19:13:12 +01:00
137f9bbac6 Fix for files object db store 2016-11-26 15:13:43 +01:00
966380a2f7 Fix for python2.7 environment
Python envs used till now python3 for testing, now version of python
depends on the environment - for py2* python 2.7 will be used, and for
py3* appropriate python3 version will be used.

Also, added mock module for python2 envs.
2016-11-24 08:30:10 +01:00
87f6eb4d3a Changing the way how arguments are passed 2016-11-23 22:02:49 +01:00
bea61d3b45 Added File objects, some fixes, and download module 2016-11-22 09:27:59 +01:00
85a42ef143 Renamed test_users to more suitable name 2016-11-21 14:05:53 +01:00