Skip to content

Commit

Permalink
fix(apps.problems.analyzers): 없는 메소드 참조 오류 수정: from_models()
Browse files Browse the repository at this point in the history
  • Loading branch information
hepheir committed Sep 4, 2024
1 parent aa3ded2 commit fd4588f
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 fd4588f

Please sign in to comment.