Fix:impossible de modifier des configs existantes #3
@ -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 :
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user