Update change_level.py
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
@ -32,7 +32,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
if app_list[app_id]["state"] == "working":
|
if app_list[app_id]["state"] == "working":
|
||||||
app_list[app_id]["level"] = int(level)
|
app_list[app_id]["level"] = int(level)
|
||||||
else:
|
elif "level" in app_list[app_id]:
|
||||||
print "Warning: app '%s' is currently not marked as working, the level is removed" % app_id
|
print "Warning: app '%s' is currently not marked as working, the level is removed" % app_id
|
||||||
del app_list[app_id]["level"]
|
del app_list[app_id]["level"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user