Skip to content

Commit 9b798fc

Browse files
authored
Update update_scoreboard.py
1 parent 2efc771 commit 9b798fc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_MonthlyChallenges/update_scoreboard.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize_user():
2121
}
2222

2323
def main():
24-
# 1. pr_data.json 파일 로드
24+
# 3. pr_data.json 파일 로드
2525
print("[Step 3] Loading PR data file...")
2626
if not os.path.exists(PR_DATA_FILE):
2727
print(f"[Step 3] PR data file not found: {PR_DATA_FILE}")
@@ -31,15 +31,15 @@ def main():
3131
pr_data = json.load(f)
3232

3333
print(f"[Step 3] Loaded PR data: {pr_data!r}")
34-
35-
# 현재 달 문자열
36-
for entry in pr_data:
34+
35+
for entry in pr_data:
3736
print(f"entry: {entry}")
3837
current_month = entry["created_at"]
39-
print(f"current_month: {current_month})
40-
current_month = current_month.strftime("%Y-%m")
41-
print(f"current_month: {current_month})
42-
38+
39+
print(f"current_month: {current_month}")
40+
current_month = current_month.strftime("%Y-%m")
41+
print(f"current_month: {current_month}")
42+
4343
# 1. 기존 스코어보드 로드 (없으면 빈 dict로 초기화)
4444
print("[Step 1] Loading scoreboard file...")
4545
if os.path.exists(SCOREBOARD_FILE):

0 commit comments

Comments
 (0)