From 0adbbcc01940629163861be3462549c37c26a5f4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jun 2018 16:36:13 +0200 Subject: [PATCH] Another bug fixed --- worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker.py b/worker.py index 1cab6bd..c8c7744 100644 --- a/worker.py +++ b/worker.py @@ -831,9 +831,9 @@ class ChatWorker(threading.Thread): # Edit the record with the new values product.name = name if not isinstance(name, CancelSignal) else product.name product.description = description if not isinstance(description, CancelSignal) else product.description - product.price = price if not isinstance(price, CancelSignal) else product.price + product.price = int(price) if not isinstance(price, CancelSignal) else product.price # If a photo has been sent... - if isinstance(photo_list, telegram.PhotoSize): + if isinstance(photo_list, list): # Find the largest photo id largest_photo = photo_list[0] for photo in photo_list[1:]: