Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Duplicate scheduled year for single day events whose scheduled year is rendered

オープン
#2,626 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@iampujan がすでに取り組んでいます。

2026年2月22日 から。

  • #2627 @alvindera97 による — オープン
  • #2934 @iampujan による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
frontend, web-dev

調査の方向性

Start with templates/events/includes/time_tag.html, which the issue identifies as containing the offending template logic, and reproduce the case on the main events page with a single-day event in a future or past year. Done means each affected event renders at most one year string, with the current year omitted when it is unambiguous.

索引モデルが issue の本文から書いたものです。

説明

bug
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

image

2. Future event scenario

image

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

主要言語
Python
スター
1.7k
フォーク
702
平均マージ
2日 4時間
マージ済み PR(30日)
18

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/pythondotorg のほかの issue

python/pythondotorg の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。