eve-val/evelink

Question: why isn't Char.character_sheet().result['skills'] a dict?

hbbtstar opened this issue · 2 comments

out of curiosity, why is that a list and not a dict? For example, wouldn't it be easier to do:

character_sheet.result['skills'][1212]['name']

instead of having to iterate over a list to find a name? (unless I'm an utter dunce and not seeing something obvious).

I'm sure there's a good reason for it, but I just can't see it so I was just asking.

Actually I don't think there's a good reason for it - I don't know why it would be a list either. That can change in the next compatibility-breaking update.

I guess best would be a dictionary with namedtuple values ? btw, there is no 'name' in the skills list in the character sheet :)