mmnode-ticker: backport fix for Python 3.9

This commit is contained in:
The MMGen Project 2024-02-10 15:15:18 +00:00
commit 7c7c2c7da8
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 5 additions and 4 deletions

View file

@ -440,7 +440,8 @@ def gen_data(data):
d['percent_change_7d'] = d['quotes']['USD']['percent_change_7d']
d['percent_change_30d'] = d['quotes']['USD']['percent_change_30d']
d['percent_change_1y'] = d['quotes']['USD']['percent_change_1y']
d['last_updated'] = int(datetime.datetime.fromisoformat(d['last_updated']).timestamp())
# .replace('Z','+00:00') -- Python 3.9 backport
d['last_updated'] = int(datetime.datetime.fromisoformat(d['last_updated'].replace('Z','+00:00')).timestamp())
yield (d['id'],d)
found[k].add(d[k])
wants[k].remove(d[k])

View file

@ -1 +1 @@
3.3.dev1
3.3.dev2

View file

@ -24,11 +24,11 @@ classifiers =
Development Status :: 5 - Production/Stable
[options]
python_requires = >=3.8
python_requires = >=3.9
include_package_data = True
install_requires =
mmgen-wallet>=14.1.dev2
mmgen-wallet>=14.1.dev8
pyyaml
yahooquery