def player_notes(): notes = ps.load_notes() all_people = ps.load_people(order_by='p.mtgo_username') view = PlayerNotes(notes, all_people) return view.page()
def player_notes() -> str: notes = ps.load_notes() all_people = ps.load_people(order_by_name=True) view = PlayerNotes(notes, all_people) return view.page()
def person_notes(person_id: int) -> Response: return return_json({'notes': ps.load_notes(person_id)})