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
a077317cb4
Added retry mechanism for getting assets
2017-11-01 18:38:31 +01:00
ce2888d441
Added colors for loglevels
2017-11-01 12:45:35 +01:00
f2a78f4a52
Add message body to log
2017-11-01 11:27:01 +01:00
64d4b09468
Fix for handling messages of different types than 'message'
2017-08-06 09:22:38 +02:00
5f9f290ba4
Fix for message comment.
...
If comment is sent by the user, different structure of the data is sent.
First of all, the type of this message is "message", but it contain
dictionary under 'comment' key, which can be confusing, which contain
needed data (like user id). For this kind of messages, in case of lack
of 'user' in main dict, dict['comment']['user'] will be used for getting
user identifier, while dict['text'] remains as a message text.
2017-02-13 19:57:31 +01:00
Roman Dobosz
08a0a82435
Changed absolute to relative for filepaths stored in File objects
2016-12-03 18:43:49 +01:00
Roman Dobosz
a42506dff9
Fix for new fnames in case of already existing ones
2016-12-03 18:14:28 +01:00
Roman Dobosz
0d7607cf3c
Added log for updating specific channel messages
2016-12-02 17:46:27 +01:00
9ddd470b54
Move commands functions to its own module
2016-11-28 19:05:26 +01:00
feb773956c
Fix for extension of config file
2016-11-28 18:25:41 +01: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
6d5f3746a2
Superfast fix for non-existed config parameter in cmdline options
2016-11-28 17:20:14 +01:00
7ccc2bddaa
Added section about config in readme
2016-11-28 16:54:48 +01:00
c1c4581248
Added config file
2016-11-27 20:39:20 +01:00
b5e9c150ed
Merge to head
2016-11-26 19:23:03 +01:00
af7f24e9a9
Dropping Python 2 support
2016-11-26 19:13:12 +01:00
c8c1dd4bfe
Small fixes, version bump, alpha stage, added emoji map.
2016-11-26 18:03:29 +01:00
c79d8ae0e1
Small fixes, version bump, alpha stage, added emoji map.
2016-11-26 17:57:58 +01:00
832b76fc84
Added forgotten utils module
2016-11-26 16:10:45 +01:00
137f9bbac6
Fix for files object db store
2016-11-26 15:13:43 +01:00
2c6979f2b5
Fix for one-to-one relationship between message and file objects
2016-11-26 15:11:12 +01:00
352a88dcce
Implementation of TextReporter
2016-11-26 15:10:19 +01:00
ac9dee9e5d
Fix returned channel list
2016-11-25 09:37:29 +01:00
267341d6a8
added warning for in-memory db
2016-11-25 07:48:09 +01:00
97069e0a83
Added reporters module
2016-11-25 07:45:37 +01:00
9c616b8da6
Update messages to call for download assets
2016-11-24 08:50:15 +01:00
ea423a523f
Added download logic
2016-11-24 08:49:08 +01:00
15c48ccb87
Added Attachement object, fixed some sqlite-specific issues
2016-11-24 08:44:18 +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
f7fb9d32a8
Added message model, moving updates of users and channels as public methods
2016-11-21 14:03:19 +01:00
79cf5f1620
added email field to Profile
2016-11-21 09:36:12 +01:00
c3ae7607eb
Renamed get_hostory to update_history
2016-11-21 09:35:30 +01:00
25d4de0ca3
Refactoring _update_channels method
2016-11-20 16:09:10 +01:00
cf93a85268
Removed primary key for other fields than id in Topic and Purpose objects
2016-11-20 16:07:11 +01:00
9d0582a82f
Updates to channel creation
2016-11-20 15:15:01 +01:00
2476af0555
Adjusted get_history method
2016-11-20 15:13:47 +01:00
07f1b12fa0
Removed IdMap, added slackid column
2016-11-20 15:12:47 +01:00
71c0866699
Removed shebang
2016-11-20 15:11:56 +01:00
b1969e6f6b
Added Channel and corresponding relations
2016-11-20 09:48:20 +01:00
162010ac1e
Implemented storage and update of User data
2016-11-19 10:38:45 +01:00
810b7bf002
Removed not needed fields
2016-11-19 09:28:04 +01:00
e1adfd7a57
Tweaked mapping for topic and purpose
2016-11-19 09:12:55 +01:00
3055edd0de
Added db connection
2016-11-19 09:12:01 +01:00
ab65f84f5f
Started to convert objects to SA db objects
2016-11-19 07:51:10 +01:00
d7af2b51ab
Added db module
2016-11-19 07:50:05 +01:00
1e1d5cb38c
Added executable script and client class
2016-11-18 19:11:12 +01:00
1d90ee6d9f
Added Messages object and started Reactions object
2016-11-18 19:08:29 +01:00
15568ef593
Added undocumented fields for User object
2016-11-18 19:07:17 +01:00