#NEWLINE# def get_all_events( show_disabled = False ) : #NEWLINE# #INDENT# '\n    Gets the set of distinct achievement events.\n\n    Args:\n        show_disabled: Whether to include events that are only on disabled achievements\n    Returns:\n        The set of distinct achievement events.\n    ' #NEWLINE# db = api . common . get_conn ( ) #NEWLINE# match = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( not show_disabled ) : #NEWLINE# #INDENT# match . update ( { #NEWLINE# #INDENT# 'disabled' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return db . achievemets . find ( match ) . distinct ( 'event' )