Fix:impossible de modifier des configs existantes
This commit is contained in:
parent
d06d925e27
commit
3e4cd27b61
@ -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 :
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user