Bug fixed: find_one implicitly sets _limit to 1, avoid redundant specification which also broke the function
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -11,7 +11,7 @@ __author__ = "Davide Testa"
|
|||||||
__email__ = "davide@davte.it"
|
__email__ = "davide@davte.it"
|
||||||
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
|
||||||
__license__ = "GNU General Public License v3.0"
|
__license__ = "GNU General Public License v3.0"
|
||||||
__version__ = "2.10.6"
|
__version__ = "2.10.7"
|
||||||
__maintainer__ = "Davide Testa"
|
__maintainer__ = "Davide Testa"
|
||||||
__contact__ = "t.me/davte"
|
__contact__ = "t.me/davte"
|
||||||
|
|
||||||
|
|||||||
@@ -881,8 +881,7 @@ async def get_new_versions(bot: Bot,
|
|||||||
"package %s", package.__name__)
|
"package %s", package.__name__)
|
||||||
notification_record = bot.db['updates_notifications'].find_one(
|
notification_record = bot.db['updates_notifications'].find_one(
|
||||||
package=package.__name__,
|
package=package.__name__,
|
||||||
order_by=['-id'],
|
order_by=['-id']
|
||||||
_limit=1
|
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
new_version != current_version
|
new_version != current_version
|
||||||
|
|||||||
Reference in new issue
Block a user