refactor: fix type error

(cherry picked from commit dd923332cb)
This commit is contained in:
ruthra kumar
2025-01-21 12:15:08 +05:30
committed by Mergify
parent 05e42558d1
commit 05e5e43c06

View File

@@ -115,6 +115,8 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
value = value[format_ces_api(str(res_key.key), req_params)]
cache.setex(name=key, time=21600, value=flt(value))
# Support AED conversion through pegged USD
value = flt(value)
if to_currency == "AED":
value *= 3.6725
if from_currency == "AED":