mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-29 00:54:18 +00:00
Another bug fixed
This commit is contained in:
parent
dedd1695eb
commit
0adbbcc019
1 changed files with 2 additions and 2 deletions
|
@ -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:]:
|
||||||
|
|
Loading…
Reference in a new issue