From 8f8da600f6a7cce68535a9d8716e028d27db1aa4 Mon Sep 17 00:00:00 2001 From: Jesse Schoepfer Date: Sun, 10 Sep 2023 00:41:14 -0400 Subject: [PATCH] fix: DB sort query --- CHANGELOG.md | 4 ++-- fedi_gatus/shared/db.py | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 028dcc5..732721e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ -n.n.n / 2023-09-09 +n.n.n / 2023-09-10 ================== - + * version bump v1.0.1 / 2023-09-09 =================== diff --git a/fedi_gatus/shared/db.py b/fedi_gatus/shared/db.py index 8820b95..7ba2606 100644 --- a/fedi_gatus/shared/db.py +++ b/fedi_gatus/shared/db.py @@ -81,7 +81,7 @@ def get_top_lemmy_instances(self, count=25) -> list[Model]: d = ( DbAccess.select() .where(DbAccess.software_name == "Lemmy") - .order_by(DbAccess.stats_monthly_active_users) + .order_by(DbAccess.stats_monthly_active_users.desc()) .limit(count) ) info = [] diff --git a/pyproject.toml b/pyproject.toml index 55cf6d1..d834a6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fedi_gatus" -version = "v1.0.0" +version = "v1.0.1" description = "" authors = ["Jesse Schoepfer "] readme = "README.md"