Add pdf option for problem

This commit is contained in:
cuom1999 2022-08-30 22:50:08 -05:00
parent 98b8cbe518
commit 69f08e84b5
7 changed files with 65 additions and 3 deletions

View file

@ -20,12 +20,12 @@ __all__ = [
problem_data_storage = ProblemDataStorage()
def _problem_directory_file(code, filename):
def problem_directory_file_helper(code, filename):
return os.path.join(code, os.path.basename(filename))
def problem_directory_file(data, filename):
return _problem_directory_file(data.problem.code, filename)
return problem_directory_file_helper(data.problem.code, filename)
CHECKERS = (