From 9a571a4ad7bb2628c4572c8d6209f73736b6ffa1 Mon Sep 17 00:00:00 2001 From: Lunaresk Date: Sat, 4 Dec 2021 11:42:54 +0100 Subject: [PATCH] fix: no more iterating through manipulated list --- client/src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.py b/client/src/main.py index a503667..7b6b179 100644 --- a/client/src/main.py +++ b/client/src/main.py @@ -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: