#NEWLINE# def get_earned_aids( tid = None , uid = None , aid = None ) : #NEWLINE# #INDENT# '\n    Gets the solved aids for a given team or user.\n\n    Args:\n        tid: The team id\n        event: Optional parameter to restrict which achievements are returned\n    Returns:\n        List of solved achievement ids\n    ' #NEWLINE# return set ( [ uid [ 'aid' ] for a in get_earned_achievement_instances ( tid = tid , uid = uid , aid = aid ) ] )