From 0a6328227fff19f0a6c24c23060aae7affbb0620 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 22 Nov 2026 11:01:48 +0100 Subject: [PATCH] Bug fixed: find_one implicitly sets _limit to 1, avoid redundant specification which also broke the function --- davtelepot/__init__.py | 2 +- davtelepot/administration_tools.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index a29c18f..d22ba67 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -11,7 +11,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __license__ = "GNU General Public License v3.0" -__version__ = "2.10.11" +__version__ = "2.10.12" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/davtelepot/administration_tools.py b/davtelepot/administration_tools.py index acd12c5..dbc19e9 100644 --- a/davtelepot/administration_tools.py +++ b/davtelepot/administration_tools.py @@ -892,8 +892,7 @@ async def get_new_versions(bot: Bot, "package %s", package.__name__) notification_record = bot.db['updates_notifications'].find_one( package=package.__name__, - order_by=['-id'], - _limit=1 + order_by=['-id'] ) if ( new_version != current_version