Fix:impossible de modifier des configs existantes #3

Closed
augustin64 wants to merge 3 commits from (deleted):fix-edit-config into master
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 3e4cd27b61 - Show all commits

View File

@ -342,7 +342,7 @@ def config_post():
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile)
if action["data"] == "delete":
if action["action"] == "delete":
print(action["config"])
configs.pop(action["config"])
else :

View File

@ -129,10 +129,10 @@
<table>
<tr>
<td>
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button" style="width:97%;"/>
<input type="submit" class="confirm" name="action" id="submit" value="Create !" class="button" style="width:97%;"/>
</td>
<td class="left-button">
<input type="submit" name="data" id="delete" value="delete" class="ban" style="visibility: hidden;"/>
<input type="submit" name="action" id="delete" value="delete" class="ban" style="visibility: hidden;"/>
</td>
</tr>
</table>