Fix order handling of bearbeiter.txt
This commit is contained in:
parent
8af63207d8
commit
f24b6b5136
1 changed files with 2 additions and 2 deletions
4
ampel.py
4
ampel.py
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue