396
377
frozenset(['problemid','loginid','date','complete','attempt']),
399
def write_problem_save(self, login, exercisename, date, text, dry=False):
380
def write_problem_save(self, user, exercisename, date, text, dry=False):
400
381
"""Writes text to the problem_save table (for when the user saves an
401
382
exercise). Creates a new row, or overwrites an existing one if the
402
383
user has already saved that problem.
403
384
(Unlike problem_attempt, does not keep historical records).
405
386
problemid = self.get_problem_problemid(exercisename)