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
python ./manage.py updatecurrencies oxr
raise TypeError: 'decimal.Decimal' object cannot be interpreted as an integer
on file: \venv\lib\site-packages\currencies\management\commands_openexchangerates.py", line 84, in get_ratetimestamp
return datetime.fromtimestamp(self.rates["timestamp"])
I fix this by replacing self.rates["timestamp"] to float(self.rates["timestamp"])
The text was updated successfully, but these errors were encountered:
python ./manage.py updatecurrencies oxr
raise TypeError: 'decimal.Decimal' object cannot be interpreted as an integer
on file: \venv\lib\site-packages\currencies\management\commands_openexchangerates.py", line 84, in get_ratetimestamp
return datetime.fromtimestamp(self.rates["timestamp"])
I fix this by replacing self.rates["timestamp"] to float(self.rates["timestamp"])
The text was updated successfully, but these errors were encountered: