Philipp Hörist
1e380473cd
Refactor get_days_with_logs()
...
- use NATURAL JOIN in SQL query instead of multiple SELECT via
_build_contact_where
- make code more concise
- update method documentation
2017-07-21 16:58:04 +02:00
Philipp Hörist
fb7eb0718a
Refactor search_log()
...
- use NATURAL JOIN in SQL query instead of multiple SELECT via
_build_contact_where
- make code more concise
- update method documentation
2017-07-21 16:58:04 +02:00
Philipp Hörist
950f763220
Refactor get_conversation_for_date()
...
- use NATURAL JOIN in SQL query instead of multiple SELECT via
_build_contact_where
- make code more concise
- update method documentation
- Fix a bug where messages were displayed in wrong order when
they had the same timestamp
2017-07-21 16:58:04 +02:00
Philipp Hörist
40ba449f47
Refactor get_last_conversation_lines()
...
- use NATURAL JOIN in SQL query instead of multiple SELECT via
_build_contact_where
- make code more concise
- update method documentation
2017-07-21 16:58:04 +02:00
Philipp Hörist
ef38afcf90
Use namedtuples for results from the DB
...
This makes the code much easier to read, and much less error prone.
2017-07-12 22:34:55 +02:00
Philipp Hörist
b625199c47
Allow for a no limit option on restore_timeout
2017-07-10 18:26:17 +02:00
Philipp Hörist
5a8965791c
Commit to DB before shutdown
...
Because some operations use the _timeout_commit() it happens that a timeout
is active while we shutdown.
This makes sure everything is commited before shutdown.
2017-07-10 16:25:26 +02:00
André Apitzsch
125ce523e4
Rename src directory
2017-07-02 17:25:47 +02:00