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(); | ||||
| 	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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user