Vexed01 / Vex-Cogs

My cogs for Red.
https://cogdocs.vexcodes.com
GNU General Public License v3.0
28 stars 21 forks source link

Deprecations in Betteruptime cog #131

Closed Macleykun closed 6 months ago

Macleykun commented 7 months ago

What cog is this bug report for?

Betteruptime

What versions are you running?

The latest version as of writing (updated all cogs)

Describe the bug

Not so a bug nor a feature req, but wanted to create this issue where i noticed a few warnings in the console about deprecated methodes:

[08:36:33] WARNING  [py.warnings] /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/betteruptime/loop.py:35: FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
  pandas.read_json(json.dumps(await self.config.cog_loaded()), typ="series")

           WARNING  [py.warnings] /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/betteruptime/loop.py:39: FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
  pandas.read_json(json.dumps(await self.config.connected()), typ="series")

[08:37:46] WARNING  [py.warnings] /home/macley/.local/share/Red-DiscordBot/data/Deltabot/cogs/CogManager/cogs/betteruptime/utils.py:96: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '100.00' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
  new[date] = format(

That's all! Tottaly understand if this get's closed immediatly as it's just a minor thing.

If there's an error, paste it here

No response

Vexed01 commented 6 months ago

Thanks for reporting. They should be gone if you update. Let me know if you still see anything.

Macleykun commented 6 months ago

Awsome! thank you so much!