Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decimal type in datetime.fromtimestamp #96

Open
RuVl opened this issue Aug 22, 2023 · 0 comments · May be fixed by #99
Open

Fix decimal type in datetime.fromtimestamp #96

RuVl opened this issue Aug 22, 2023 · 0 comments · May be fixed by #99

Comments

@RuVl
Copy link

RuVl commented Aug 22, 2023

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"])

@dhendo dhendo linked a pull request Apr 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant