def set_organism_condition(query: str, organism: str) ->str:
    """Replaces a placeholder in a query with a condition restricting results to a certain organism"""
    if not organism:
        modified_query = query.replace(':ORGANISM_CONDITION', 'TRUE')
    else:
        modified_query = query.replace(':ORGANISM_CONDITION',
            'abbreviation = :organism')
    return modified_query
