meisnate12 / FantraxAPI

Python Wrapper for the Frantrax API
MIT License
7 stars 6 forks source link

[Bug]: Transaction error when their is a bid #1

Open jeffreycroman opened 5 months ago

jeffreycroman commented 5 months ago

Version Number

0.2.7

Describe the Bug

When pulling a Transaction where there is a bug, I get a strptime error, because the attribute it is pulling is null.
There is an extra entry in the list when a bid is involved. I fixed it with the following change.

obs.py line 402: old: self.date = datetime.strptime(data["cells"][1]["content"], "%a %b %d, %Y, %I:%M%p") new: self.date = datetime.strptime(list(filter(lambda date: date['key'] == 'date', data['cells']))[0]['content'], "%a %b %d, %Y, %I:%M%p")

I discovered it is not always entry 1 in the list when a bid is involved in the transaction.

meisnate12 commented 1 month ago

could you link the transaction page thats causing this error and ill try and get it fixed