pythondotorg
pythondotorg copied to clipboard
Duplicate scheduled year for single day events whose scheduled year is rendered
Describe the bug
What
For single day events (events that start and end on the same day) that require year string to be displayed [which are]:
- Single day events scheduled for a future year
- Single day events that have passed rendered at the "You just missed..." section of the main events page {pythondotorg url}/events/
The year string is rendered multiple times.
Here are a couple of examples
1. Past event scenario
2. Future event scenario
To Reproduce
- Set up a single day event scheduled to start in the future year or scheduled in the past (e.g. event has just been concluded)
- Navigate to the main events page (http://localhost:8000/events) and observe the year string rendered multiple times.
Expected behavior
- Single day events (regardless of schedule year) should only render a single year string (if necessary) since the event is guaranteed to start and end within the same year.
Addressing "If necessary"
- Future single day event scheduled within the current year does not need to render the current year as there is no date/year ambiguity.
- Past single day events (Events just missed) would need to render the year string dispelling any ambiguity on year event took place.
URL to the issue
No response
Screenshots
No response
Browsers
Firefox, Chrome, Safari, Microsoft Edge, Other
Operating System
Linux
Browser Version
No response
Relevant log output
No response
Additional context
I've traced down the offending template logic: https://github.com/python/pythondotorg/blob/1bfeace44973dff8310f695ca15b40c277047cc7/templates/events/includes/time_tag.html#L1-L9
https://github.com/python/pythondotorg/pull/2627 should close this issue.
yes close this issue
for more info join our https://visiblecampus.com/courses/java-full-stack-developer-bangalore Learning in the Heart of Bangalore’s Tech Hub
Located in the heart of the city, connects students with the real pulse of the Bangalore tech scene. Whether it's Java, SQL Training , or even Azure DevOps , the ecosystem supports full-skill development — and that’s rare.
What I’d Tell Anyone Looking for a Java Institute in Bangalore
Look beyond just the course fee. Ask who’s teaching. What’s the placement rate? What projects will you build?
Visit the campus. Talk to alumni. Ask to attend a trial class.
Don’t settle for slides — look for hands-on learning.
If you’re starting out in tech or shifting careers into backend or full stack development, I’d strongly recommend checking out Java training in Bangalore
https://visiblecampus.com/courses/java-full-stack-developer-bangalore .
[Reported @hellovisiblecampus-prog as spam.]