1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-25 07:14:18 +00:00

Another bug fixed

This commit is contained in:
Steffo 2018-06-10 16:36:13 +02:00
parent dedd1695eb
commit 0adbbcc019

View file

@ -831,9 +831,9 @@ class ChatWorker(threading.Thread):
# Edit the record with the new values # Edit the record with the new values
product.name = name if not isinstance(name, CancelSignal) else product.name product.name = name if not isinstance(name, CancelSignal) else product.name
product.description = description if not isinstance(description, CancelSignal) else product.description 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 a photo has been sent...
if isinstance(photo_list, telegram.PhotoSize): if isinstance(photo_list, list):
# Find the largest photo id # Find the largest photo id
largest_photo = photo_list[0] largest_photo = photo_list[0]
for photo in photo_list[1:]: for photo in photo_list[1:]: