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

19 Commits

Author SHA1 Message Date
fe1e2dd230 Adjusting test data/tests for new file attachment way. 2019-01-05 17:30:57 +01:00
93b0bc2dd7 Added raw-dir option
This option can be used to debug slack API responses - if set,
slack-backup will dump all of the data as a JSON in provided direcotry.
2018-07-16 16:11:27 +02: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
71355b1c4a Added new option - url_file_to_attachement
Currently, if message contain shared file, slack-backup will try to
download it. If it fail, than empty file will remain, which will be at
least confusing. This will mostly happen for shares which are not
uploaded to the slack servers.

New option will be used to indicate if slack-backup should convert such
share as an attachment, or to save the list of URL and their
destination in local file system to be download manually by the user.
2018-05-22 22:26:53 +02:00
8b133ab16a Fix tox and tests 2018-03-10 18:39:50 +01: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
3f95986981 Fix the tests.
For some reason, database key was treated differently in configparser object
in python 3.4.2. In Python 3.4.5 everything is fine. Fixed the defaults to
make sure all string options are treated equally.
2016-11-28 18:14:47 +01:00
c1c4581248 Added config file 2016-11-27 20:39:20 +01: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
352a88dcce Implementation of TextReporter 2016-11-26 15:10:19 +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
f3173b9cc9 Added more test data to the tests 2016-11-21 14:04:15 +01:00
07f1b12fa0 Removed IdMap, added slackid column 2016-11-20 15:12:47 +01:00
5c6dc72d7c added some tests 2016-11-20 09:46:38 +01:00