Erkennung, wenn mehrere Tonnen am selben Tag abgeholt werden

This commit is contained in:
Hauke Zühl 2023-01-14 14:27:04 +01:00
parent 54367f5289
commit dbcb0a5af7
Signed by: hauke
GPG Key ID: 7E70BF5E52D4CA72

View File

@ -149,9 +149,14 @@ if __name__ == '__main__':
index = set();
for row in antwort_liste:
try:
pos = row.index(tomorrow)
if pos < 4:
index.add(pos)
if (row.count(tomorrow) > 1):
for i in range(len(row)):
if (row[i] == tomorrow and i < 4):
index.add(i)
else:
pos = row.index(tomorrow)
if pos < 4:
index.add(pos)
except ValueError:
pass