Skip to content

Commit

Permalink
Fixed updating queue, typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bth123 committed Nov 23, 2024
1 parent 9b4ed10 commit 9ad3f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/minecraft/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from utils.shortcuts import no_color, no_ping

db = MongoClient(MONGO_URI).antbot.minecraft_data
versions_pathes = MongoClient(MONGO_URI).antbot.versons_pathes
versions_pathes = MongoClient(MONGO_URI).antbot.versions_pathes
files = {}
latest_version = ""
logs_channel = None
Expand Down Expand Up @@ -61,8 +61,8 @@ async def update_files_list(self):
await logs_channel.send("files already exist")
else:
await logs_channel.send("files are not exist rn")
await self.update_versions_hashes(newer_version)
files = await self.get_files_list()
await self.update_versions_hashes(newer_version)
latest_version = newer_version
await logs_channel.send("all the stuff finished yeaa")
versions_pathes.insert_one({"_id": latest_version.replace('.', '_'), "_": files})
Expand Down

0 comments on commit 9ad3f5d

Please sign in to comment.