Skip to content

Commit

Permalink
Umm
Browse files Browse the repository at this point in the history
Signed-off-by: ˹ᴧɴσɴʏᴍσᴜs ꭙ˼ <[email protected]>
  • Loading branch information
AnonymousX1025 authored Apr 5, 2023
1 parent 218dd6f commit e8de800
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions AnonX/plugins/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,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 @@ -384,12 +380,10 @@ async def overall_stats(client, CallbackQuery, _):
**sᴜᴅᴏᴇʀs:** {sudoers}
<b><u>ᴍᴏɴɢᴏ ᴅᴀᴛᴀʙᴀsᴇ</b><u/>
**ᴜᴩᴛɪᴍᴇ:** {mongouptime[:4]} Days
**sɪᴢᴇ:** {datasize[:6]} Mb
**sᴛᴏʀᴀɢᴇ:** {storage} Mb
**ᴄᴏʟʟᴇᴄᴛɪᴏɴs:** {collections}
**ᴋᴇʏs:** {objects}
**ǫᴜᴇʀɪᴇs:** `{query}`
**ʙᴏᴛ ǫᴜᴇʀɪᴇs:** `{total_queries} `
"""
med = InputMediaPhoto(media=config.STATS_IMG_URL, caption=text)
Expand Down

0 comments on commit e8de800

Please sign in to comment.