Fix order handling of bearbeiter.txt

This commit is contained in:
sqozz 2017-06-29 18:53:40 +02:00
parent 8af63207d8
commit f24b6b5136

View file

@ -74,13 +74,13 @@ def staticContent(filename):
def initTool():
global employees
employees = {}
employees = []
with open("bearbeiter.txt", "r") as f:
for line in f.readlines():
name, room = line.strip().split("|")
status = False
employeeId = name.strip().replace(" ", "_")
employees[employeeId] = (name, room, status)
employees.append((name, room, status))
pass