summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-04-24 20:24:58 +0200
committerlouiz’ <louiz@louiz.org>2018-04-24 20:25:40 +0200
commit1236b8a03bee403fcaa59d882d8e7fb9058b2280 (patch)
tree9bef63df4f7dc2f257aba78fe00cfda576cbf2fb /src/database
parent61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24 (diff)
downloadbiboumi-1236b8a03bee403fcaa59d882d8e7fb9058b2280.tar.gz
biboumi-1236b8a03bee403fcaa59d882d8e7fb9058b2280.tar.bz2
biboumi-1236b8a03bee403fcaa59d882d8e7fb9058b2280.tar.xz
biboumi-1236b8a03bee403fcaa59d882d8e7fb9058b2280.zip
Only use the ID to order archives
fix #3343
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index a09dfe3..3b3e890 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -224,9 +224,9 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne
}
if (paging == Database::Paging::first)
- request.order_by() << Database::Date{} << " ASC, " << Id{} << " ASC ";
+ request.order_by() << Id{} << " ASC ";
else
- request.order_by() << Database::Date{} << " DESC, " << Id{} << " DESC ";
+ request.order_by() << Id{} << " DESC ";
if (limit >= 0)
request.limit() << limit;