Philipp Hörist pushed to branch master at gajim / gajim
Commits:
89361f61 by Daniel Brötzmann at 2020-04-24T17:26:40+02:00
Logger: Make get_last_conversation_lines account-specific
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
@@ -776,15 +776,18 @@ class Logger:
KindConstant.ERROR])
jids = self._get_family_jids(account, jid)
+ account_id = self.get_account_id(account)
sql = '''
SELECT time, kind, message, error as "error [common_error]",
subject, additional_data, marker as "marker [marker]",
message_id
- FROM logs NATURAL JOIN jids WHERE jid IN ({jids}) AND
- kind IN ({kinds}) AND time > get_timeout()
+ FROM logs NATURAL JOIN jids WHERE jid IN ({jids})
+ AND account_id = {account_id} AND kind IN ({kinds})
+ AND time > get_timeout()
ORDER BY time DESC, log_line_id DESC LIMIT ? OFFSET ?
'''.format(jids=', '.join('?' * len(jids)),
+ account_id=account_id,
kinds=', '.join(kinds))
try:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/89361f61eb6c106009d09cdc45325be2…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/89361f61eb6c106009d09cdc45325be2…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2fd6bbb9 by Daniel Brötzmann at 2020-04-21T19:01:07+02:00
History: Reverse result order for search query
Reverses history search results to show the last entry first. This way,
recent history is displayed first.
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
@@ -876,7 +876,7 @@ class Logger:
additional_data, log_line_id
FROM logs NATURAL JOIN jids WHERE jid IN ({jids})
AND message LIKE like(?) {date_search}
- ORDER BY time, log_line_id
+ ORDER BY time DESC, log_line_id
'''.format(jids=', '.join('?' * len(jids)),
date_search=between if date else '')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2fd6bbb9c4a6d2c1f7217ad030f265de…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/2fd6bbb9c4a6d2c1f7217ad030f265de…
You're receiving this email because of your account on dev.gajim.org.