コード例 #1
0
def update_attended_staff(meeting: Meeting, staff: Staff):
    """
    Updates the Database with staff members who have attended the meeting
    """
    if staff.id not in meeting.attended_staff:
        meeting.attended_staff.append(staff.id)
        db.update_meeting(meeting.id, meeting.to_json_dict())