fix: no more iterating through manipulated list
This commit is contained in:
parent
9d404e0dae
commit
9a571a4ad7
@ -44,7 +44,7 @@ def main() -> None:
|
||||
result['date'] = str(date.today())
|
||||
TEMP.append(result)
|
||||
if TEMP:
|
||||
for bought in TEMP:
|
||||
for bought in list(TEMP):
|
||||
result = connection.send_scan(bought['user'], bought['items'], bought['date'])
|
||||
TEMP.remove(bought)
|
||||
if result != True:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user