jamsix / ib-edavki

Skripta, ki prevede XML poročilo trgovalnih poslov v platformi InteractiveBrokers v XML format primeren za uvoz v obrazce Doh-KDVP, D-IFI, Doh-Div in Doh-Obr v eDavkih Finančne uprave.
MIT License
173 stars 57 forks source link

Fixed: always check only for the first ib affiliates #127

Closed greymag closed 4 months ago

greymag commented 4 months ago

In the previous version of the code, getIbAffiliateInfo() returned empty data if the first entry in ibAffiliateInfos had a different code.

pronebird commented 4 months ago

Legit. 👍

lanzagar commented 4 months ago

I noticed this as well. My suggestion is to de-indent by one more step, so that it is outside the if os.path.isfile("ib-affiliates.xml") in case the file cannot be created for some reason.