From 1bf60cef819e66f7cd7552c4424ef4e499cdac29 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 14:29:07 -0400 Subject: [PATCH] fix: testing a fix for update --- pterodactyl/ptero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index f73221a..f4f09c3 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -105,7 +105,7 @@ class Pterodactyl(commands.Cog): ] if response_dict['attributes']['current_state'] == "offline": for data in updater_startup_vars: - await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, data=data) + await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, json=data) await session.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"}) await interaction_message.edit(content="Updater started...") await asyncio.sleep(1) @@ -119,7 +119,7 @@ class Pterodactyl(commands.Cog): await asyncio.sleep(1) continue for data in old_startup_vars: - await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, data=data) + await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, json=data) await interaction_message.edit(content="Updater finished.\nUpdate process completed!") elif response_dict['attributes']['current_state'] == "running" or response_dict['attributes']['current_state'] == "starting": passed_info = {