henrydatei / wikifolio-api

A Python API-Wrapper for the unofficial wikifolio API
GNU General Public License v3.0
17 stars 4 forks source link

wf.trader has been changed #14

Closed samohtx closed 9 months ago

samohtx commented 9 months ago

seems that Wikifolio is changing a lot :-(

Traceback (most recent call last): File "E:\Documents_TH\Wikifolio\Python\TestWikifolio.py", line 125, in print('Trader Name komplett:',wf.trader) ^^^^^^^^^ File "E:\Documents_TH\Wikifolio\Python\wikifolio.py", line 313, in trader return Trader(**self.rawData["props"]["pageProps"]["data"]["trader"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Trader.init() got an unexpected keyword argument 'firstName'

Best regards, Thomas

henrydatei commented 9 months ago

fixed

samohtx commented 9 months ago

they changed it again :-( File "E:\Documents_TH\Wikifolio\Python\wikifolio.py", line 314, in trader return Trader(**self.rawData["props"]["pageProps"]["data"]["trader"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Trader.init() missing 1 required positional argument: 'fullName'

henrydatei commented 9 months ago

I've seen this when I fixed it the first time and wondered why they return firstName, lastName and fullName but now they removed the fullName. Fixed it