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

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.
This commit is contained in:
2018-05-22 22:10:34 +02:00
parent 007fe04c08
commit 71355b1c4a
3 changed files with 20 additions and 12 deletions

View File

@@ -63,7 +63,8 @@ class TestConfig(unittest.TestCase):
'user': None,
'password': None,
'team': None,
'token': None})
'token': None,
'url_file_to_attachement': False})
args = argparse.Namespace()
args.config = self.confname
@@ -97,7 +98,8 @@ class TestConfig(unittest.TestCase):
'team': 'myteam',
'token': 'xxxx-1111111111-'
'222222222222-333333333333-'
'r4nd0ms7uff'})
'r4nd0ms7uff',
'url_file_to_attachement': False})
# override some conf options with commandline
args = argparse.Namespace()
@@ -124,4 +126,5 @@ class TestConfig(unittest.TestCase):
'user': 'joe',
'password': 'ultricies',
'team': '',
'token': 'the token'})
'token': 'the token',
'url_file_to_attachement': False})