コード例 #1
0
def clean_slate(candidate):
    candidate.remove_problems()
    try:
        pset = candidate.path.hid.problems
    except:
        pset = ProblemSet()
        pset.host = candidate.path.hid
        pset.save()
    return pset