deivit24 / python-steam-api

MIT License
25 stars 11 forks source link

Update apps.py #14

Closed UnreleasedDev closed 6 months ago

UnreleasedDev commented 7 months ago

The original code had a problem with trying to convert a string containing multiple app ids with commas into an integer, which Python's int() function cannot do. The updated code splits the string into individual strings each containing a single app id using .split(','). Then, it converts each of these substrings into an integer using list comprehension and int(). As a result, app["id"] now holds a list of integers instead of a single integer.

this does fix this issue #13

deivit24 commented 6 months ago

Sorry for taking forever on this. Been so busy with work!!

sgjholt commented 6 months ago

@UnreleasedDev Thanks for the fix, and @deivit24 no need to apologise! Thanks for making your code open and available for us to find problems with ;P.