Skip to content

Commit

Permalink
Merge pull request #12 from tle-ko:hepheir/issue5
Browse files Browse the repository at this point in the history
ProblemDTO 관련된 문제 분석 오류가 발생합니다.  Fixes #5
  • Loading branch information
hepheir authored Sep 4, 2024
2 parents aa3ded2 + fd4588f commit d7a0be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/apps/problems/analyzers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def auto_analyze(sender, instance: Problem, created: bool, **kwargs):
@tasks.background
def schedule_analyze(problem_id: int):
logger.info(f'PK={problem_id} 문제의 분석 준비중.')
problem = Problem.objects.get(pk=problem_id)
problem_dto = ProblemDTO.from_model(problem)
problem: Problem = Problem.objects.get(pk=problem_id)
problem_dto = problem.as_dto()
logger.info('문제 분석기를 불러오는 중.')
analyzer = get_analyzer()
logger.info(f'{problem_dto} 문제의 분석 시작.')
Expand Down

0 comments on commit d7a0be6

Please sign in to comment.