def get_customurls_on_machine(): steamusers = [] for steamid in usermanager.user_ids_on_this_machine(): try: steamusers.append(usermanager.name_from_communityid32(steamid)) except TypeError: steamusers.append("ID64:{0}".format(usermanager.communityid64_from_communityid32(steamid))) return steamusers
def associate_ids_with_users(): steamusers = [] for steamid in usermanager.user_ids_on_this_machine(): try: steamusers.append({'steamid32': steamid, 'customurl': usermanager.name_from_communityid32(steamid)}) except TypeError: steamusers.append({'steamid32': steamid, 'customurl': ''}) return steamusers
def get_customurls_on_machine(): steamusers = [] for steamid in usermanager.user_ids_on_this_machine(): try: steamusers.append(usermanager.name_from_communityid32(steamid)) except TypeError: steamusers.append("ID64:{0}".format( usermanager.communityid64_from_communityid32(steamid))) return steamusers
def associate_ids_with_users(): steamusers = [] for steamid in usermanager.user_ids_on_this_machine(): try: steamusers.append({ 'steamid32': steamid, 'customurl': usermanager.name_from_communityid32(steamid) }) except TypeError: steamusers.append({'steamid32': steamid, 'customurl': ''}) return steamusers