Erkennung, wenn mehrere Tonnen am selben Tag abgeholt werden
This commit is contained in:
parent
54367f5289
commit
dbcb0a5af7
@ -149,9 +149,14 @@ if __name__ == '__main__':
|
|||||||
index = set();
|
index = set();
|
||||||
for row in antwort_liste:
|
for row in antwort_liste:
|
||||||
try:
|
try:
|
||||||
pos = row.index(tomorrow)
|
if (row.count(tomorrow) > 1):
|
||||||
if pos < 4:
|
for i in range(len(row)):
|
||||||
index.add(pos)
|
if (row[i] == tomorrow and i < 4):
|
||||||
|
index.add(i)
|
||||||
|
else:
|
||||||
|
pos = row.index(tomorrow)
|
||||||
|
if pos < 4:
|
||||||
|
index.add(pos)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user