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: with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
configs = json.load(inFile) configs = json.load(inFile)
if action["data"] == "delete": if action["action"] == "delete":
print(action["config"]) print(action["config"])
configs.pop(action["config"]) configs.pop(action["config"])
else : else :

View File

@ -129,10 +129,10 @@
<table> <table>
<tr> <tr>
<td> <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>
<td class="left-button"> <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> </td>
</tr> </tr>
</table> </table>