If no ids run set_settings
This commit is contained in:
@@ -32,8 +32,8 @@ async def main():
|
|||||||
e.active(True)
|
e.active(True)
|
||||||
async for mac, msg in e:
|
async for mac, msg in e:
|
||||||
data = json.loads(msg)
|
data = json.loads(msg)
|
||||||
print(data)
|
#print(data)
|
||||||
if settings["id"] in data["ids"] or settings["id"] == 0:
|
if "ids" not in data or settings["id"] in data["ids"]:
|
||||||
settings.set_settings(data["settings"], patterns, data.get("save", False))
|
settings.set_settings(data["settings"], patterns, data.get("save", False))
|
||||||
print("should not print")
|
print("should not print")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user