def METHOD_NAME(v: User, key: str, val: str) -> None:
    record = VolunteerJanitorRecord()
    record.user_id = v.id
    record.comment_id = key
    record.result = VolunteerJanitorResult(int(val))
    g.db.add(record)
    update_comment_badness(g.db, key)
    g.db.commit()