Skip to content

Commit 66a94ae

Browse files
authored
Merge pull request #10 from team-MoPlus/develop
Develop
2 parents 3393b6a + cb88fe7 commit 66a94ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pdfmain.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def create_review_note(data: DetailResultApplication, file_name: str, buffer):
6666
c.drawString(280, height - 256, "내 등급")
6767

6868
# 내 풀이 시간
69-
match = re.match(pattern, data["solvingTime"])
69+
match = re.match(pattern, data.solvingTime)
7070
h, m = f'{match.group(1) if match and match.group(1) else 0}', f'{match.group(2) if match and match.group(2) else 0}'
7171
c.setFillColor(orange_color)
7272
c.setFont("Pretendard-Regular", 40)
@@ -142,7 +142,7 @@ def create_review_note(data: DetailResultApplication, file_name: str, buffer):
142142
text.textLine("넘어가야하는 문제들이예요.")
143143
c.drawText(text)
144144

145-
if len(data["forCurrentRating"]) == 0:
145+
if len(data.forCurrentRating) == 0:
146146
c.setFillColor(HexColor("#95E0BB"))
147147
c.setFont("Pretendard-Bold", 20)
148148
c.drawString(52, 348, "모두 맞았어요!")
@@ -191,7 +191,7 @@ def create_review_note(data: DetailResultApplication, file_name: str, buffer):
191191
text.textLine("다음 등급에서 맞춰야하는 문제들이예요.")
192192
c.drawText(text)
193193

194-
if len(data["forNextRating"]) == 0:
194+
if len(data.forNextRating) == 0:
195195
c.setFillColor(HexColor("#95E0BB"))
196196
c.setFont("Pretendard-Bold", 20)
197197
c.drawString(52, 230, "모두 맞았어요!")
@@ -204,7 +204,7 @@ def create_review_note(data: DetailResultApplication, file_name: str, buffer):
204204

205205
c.setFillColor(black_color)
206206
c.setFont("Pretendard-Regular", 18)
207-
p_num = f'{problem["problemNumber"]}번'
207+
p_num = f'{problem.problemNumber}번'
208208
c.drawString(45 + (i%5)*105, text_y, p_num)
209209

210210
p_num_width = c.stringWidth(p_num, "Pretendard-Regular", 18)
@@ -243,13 +243,13 @@ def create_review_note(data: DetailResultApplication, file_name: str, buffer):
243243
text.textLine("현재 등급 이상을 안정적으로 받기 위해 체크해볼 만한 문제예요.")
244244
c.drawText(text)
245245

246-
if len(data["forBeforeRating"]) == 0:
246+
if len(data.forBeforeRating) == 0:
247247
c.setFillColor(HexColor("#95E0BB"))
248248
c.setFont("Pretendard-Bold", 20)
249249
c.drawString(52, 83, "모두 맞았어요!")
250250
else:
251251
text_y = 90
252-
for i, problem in enumerate(data["forBeforeRating"]):
252+
for i, problem in enumerate(data.forBeforeRating):
253253
if i%5 == 0 and i > 0:
254254
text_y -= 30
255255

0 commit comments

Comments
 (0)