Skip to content

Commit 411ea6e

Browse files
CopilotMishkatIT
andcommitted
Fix: use explicit None check for Codeforces key highlights update
Co-authored-by: MishkatIT <125080003+MishkatIT@users.noreply.github.com>
1 parent 2f7922a commit 411ea6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

update_readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def update_readme(stats):
136136
)
137137

138138
# Update key highlights if Codeforces is the top platform
139-
if stats.get('Codeforces'):
139+
if stats.get('Codeforces') is not None:
140140
cf_count = stats['Codeforces']
141141
readme_content = re.sub(
142142
r'(\| )\d+( Problems \|)',

0 commit comments

Comments
 (0)