/prayertimes get location: (any) would not work if a user /prayertimes set_calculation_method. This is possibly because the database prayer times handler returns the datatype that is the calculation_method column datatype in the table (which is possibly a string data type). This raises an exception because when setting the footer of the embed, the calculation_method is used as the key to the dict[int, str]
/prayertimes get location: (any)
would not work if a user/prayertimes set_calculation_method
. This is possibly because the database prayer times handler returns the datatype that is thecalculation_method
column datatype in the table (which is possibly a string data type). This raises an exception because when setting the footer of the embed, thecalculation_method
is used as the key to thedict[int, str]
'5'
is anstr
while the keys in thecalculation_methods
dict are allint
That's if the table column wasn't already anINTEGER
.