Skip to content
Snippets Groups Projects
Commit 9a9129f7 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

machines: add room sanity check

parent 2a8aaaf2
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,8 @@ if __name__ == "__main__":
print(f"{k}: wrong user {v['utilisateur']}")
continue
user = users_data[v["utilisateur"]]
if user["room"] != v["room"]:
print(f"{k}: wrong user's room {user['room']} != {v['room']}")
if user["st"] in ["JAMAIS", "NON-PERTINENT"]:
continue
d, m, y = (int(i) for i in user["st"].split("/"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment