You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I've been testing greed. Great project by the way.
There is a problem with that line when a Manager tries to retreive the Transactions list and there is a refund for a customer. It causes the program to crash.
Error: Exception in <Worker 763512861>: 'Localization' object is not subscriptable File "/home/telegram/greed/database.py", line 193, in text string += f" | {w.loc['emoji_refunded']}" TypeError: 'Localization' object is not subscriptable
Original line string += f" | {w.loc['emoji_refunded']}"
I changed it to string += f" | {w.loc.get('emoji_refunded')}"
and apparently fixed the problem. I'm not a python developer, so I'm not sure if this is the right way to fix the problem.
The text was updated successfully, but these errors were encountered:
Problematic line:
greed/database.py
Line 193 in 69dfbc1
Hi there, I've been testing greed. Great project by the way.
There is a problem with that line when a Manager tries to retreive the Transactions list and there is a refund for a customer. It causes the program to crash.
Error:
Exception in <Worker 763512861>: 'Localization' object is not subscriptable File "/home/telegram/greed/database.py", line 193, in text string += f" | {w.loc['emoji_refunded']}" TypeError: 'Localization' object is not subscriptable
Original line
string += f" | {w.loc['emoji_refunded']}"
I changed it to
string += f" | {w.loc.get('emoji_refunded')}"
and apparently fixed the problem. I'm not a python developer, so I'm not sure if this is the right way to fix the problem.
The text was updated successfully, but these errors were encountered: