Update app.py
Browse files
app.py
CHANGED
|
@@ -2057,8 +2057,8 @@ def from_allow():
|
|
| 2057 |
else:
|
| 2058 |
pr5_data = {}
|
| 2059 |
|
| 2060 |
-
if del_flag == '1':
|
| 2061 |
-
pr5_data
|
| 2062 |
elif module and status:
|
| 2063 |
pr5_data[module] = status
|
| 2064 |
|
|
|
|
| 2057 |
else:
|
| 2058 |
pr5_data = {}
|
| 2059 |
|
| 2060 |
+
if del_flag == '1' and module in pr5_data:
|
| 2061 |
+
del pr5_data[module]
|
| 2062 |
elif module and status:
|
| 2063 |
pr5_data[module] = status
|
| 2064 |
|