Skip to content

Use intro info in position 1 as community image#92

Merged
noahpistilli merged 3 commits into
masterfrom
fix/dynamic-first-intro-info
Jun 26, 2026
Merged

Use intro info in position 1 as community image#92
noahpistilli merged 3 commits into
masterfrom
fix/dynamic-first-intro-info

Conversation

@noahpistilli

Copy link
Copy Markdown
Member

Previously the photo id was hardcoded to ID 1, while in most cases this is probably true as we never edited the original intro image, this is bad practice.

@noahpistilli noahpistilli requested a review from a team June 17, 2026 02:29
Comment thread url1/event_today.py Outdated
Comment on lines +22 to +23
idx = random.randint(0, len(photos) - 1)
photo_name = photos[idx]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe random.choice can be used here instead

@noahpistilli noahpistilli merged commit 3b72aa9 into master Jun 26, 2026
2 checks passed
@noahpistilli noahpistilli deleted the fix/dynamic-first-intro-info branch June 26, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants