Skip to content

Commit 25006f2

Browse files
authored
Merge pull request #167 from AlgorithmStudy-Allumbus/minjeong
fix: ๋”•์…”๋„ˆ๋ฆฌ ํ‚ค ์ ‘๊ทผ ์—๋Ÿฌ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด scoreboard์˜ ๊ตฌ์กฐ๋ฅผ ์ผ๊ด€๋˜๊ฒŒ "users" ํ•˜์œ„๋กœ ๊ด€๋ฆฌํ•˜๋„๋ก ์ˆ˜์ •
2 parents 0d2a2e4 + 4819af8 commit 25006f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

โ€Ž_MonthlyChallenges/update_scoreboard.pyโ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,18 @@ def main():
6262
continue
6363

6464
print(f"username: {username}, algorithm: {algorithm}, problem_id: {problem_id}")
65-
65+
print(f"users: {users}")
6666
# ์ฑŒ๋ฆฐ์ง€ ์œ ํ˜•์— ํฌํ•จ๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ (์˜ˆ: "๊ทธ๋ž˜ํ”„", "DP")
6767
if algorithm not in CHALLENGE_TYPES:
6868
continue # ์ฑŒ๋ฆฐ์ง€ ๋Œ€์ƒ์ด ์•„๋‹ˆ๋ฉด ๋ฌด์‹œ
6969

7070
# ์‚ฌ์šฉ์ž์˜ ๊ธฐ๋ก์ด ์—†์œผ๋ฉด ์ดˆ๊ธฐํ™”
71+
print("์‚ฌ์šฉ์ž์˜ ๊ธฐ๋ก์ด ์—†์œผ๋ฉด ์ดˆ๊ธฐํ™”")
7172
if username not in users:
72-
scoreboard[username] = initialize_user()
73+
users[username] = initialize_user()
7374

7475
# ํ•ด๋‹น ์œ ํ˜• ๋ฌธ์ œ ๋ฒˆํ˜ธ๋ฅผ ์ค‘๋ณต ์—†์ด ์ถ”๊ฐ€
76+
print("ํ•ด๋‹น ์œ ํ˜• ๋ฌธ์ œ ๋ฒˆํ˜ธ๋ฅผ ์ค‘๋ณต ์—†์ด ์ถ”๊ฐ€")
7577
if problem_id not in users[username].get(algorithm, []):
7678
users[username][algorithm].append(problem_id)
7779

โ€Žminjeong/test.txtโ€Ž

Whitespace-only changes.

0 commit comments

Comments
ย (0)