def get_note_category(note):
    """get a note category"""
    if 'category' in note:
        category = note['category'] if note['category'] is not None else ''
    else:
        category = ''
    return category
