Skip to content

Commit

Permalink
Merge pull request #74 from Rahulsharma45/patch-2
Browse files Browse the repository at this point in the history
Stats Error Fixed
  • Loading branch information
TheTeamAlexa committed Jun 18, 2023
2 parents bc06e39 + 7c1b2a3 commit 92780e1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions AlexaMusic/plugins/tools/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,6 @@ async def overall_stats(client, CallbackQuery, _):
storage = call["storageSize"] / 1024
objects = call["objects"]
collections = call["collections"]
status = db.command("serverStatus")
query = status["opcounters"]["query"]
mongouptime = status["uptime"] / 86400
mongouptime = str(mongouptime)
served_chats = len(await get_served_chats())
served_users = len(await get_served_users())
total_queries = await get_queries()
Expand Down Expand Up @@ -373,12 +369,10 @@ async def overall_stats(client, CallbackQuery, _):
🌹 **sᴜᴅᴏᴇʀs:** {sudoers}
<b><u>🌹 ᴍᴏɴɢᴏ ᴅᴀᴛᴀʙᴀsᴇ</b><u/>
🌹 **ᴜᴩᴛɪᴍᴇ:** {mongouptime[:4]} ᴅᴀʏs
🌹 **sɪᴢᴇ:** {datasize[:6]} ᴍʙ
🌹 **sᴛᴏʀᴀɢᴇ:** {storage} ᴍʙ
🌹 **ᴄᴏʟʟᴇᴄᴛɪᴏɴs:** {collections}
🌹 **ᴋᴇʏs:** {objects}
🌹 **ǫᴜᴇʀɪᴇs:** `{query}`
🌹 **ʙᴏᴛ ǫᴜᴇʀɪᴇs:** `{total_queries}`
"""
med = InputMediaPhoto(media=config.STATS_IMG_URL, caption=text)
Expand Down

0 comments on commit 92780e1

Please sign in to comment.