Skip to content

Commit 88c6efd

Browse files
CopilotMishkatIT
andcommitted
Improve code comments for clarity
Co-authored-by: MishkatIT <125080003+MishkatIT@users.noreply.github.com>
1 parent c7695ed commit 88c6efd

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
@@ -285,7 +285,7 @@ def update_readme(stats, last_known_info=None, update_source=None):
285285
readme_content = re.sub(progress_pattern, progress_replacement, readme_content, flags=re.DOTALL)
286286

287287
# Update the "Updated On" column for each platform
288-
# Show date and mode badge (without the word "Mode")
288+
# Show date and per-platform mode badge with color coding (green=automatic, orange=manual)
289289
updated_on_pattern = rf'({platform_name}.*?Progress-{percentage}%25.*?<td align="center">).*?</td>'
290290
updated_on_replacement = rf'\g<1>{date_str} <img src="https://img.shields.io/badge/{mode_display}-{mode_color}?style=flat" alt="{mode_display}"/></td>'
291291
readme_content = re.sub(updated_on_pattern, updated_on_replacement, readme_content, flags=re.DOTALL)

0 commit comments

Comments
 (0)