Open jeffreycroman opened 5 months ago
0.2.7
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")
self.date = datetime.strptime(data["cells"][1]["content"], "%a %b %d, %Y, %I:%M%p")
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.
could you link the transaction page thats causing this error and ill try and get it fixed
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.