fix: testing a fix for update
This commit is contained in:
parent
fa48b3a924
commit
1bf60cef81
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Reference in a new issue