Skip to content

Commit 14e256f

Browse files
Fix when cached build exists
1 parent fc1731c commit 14e256f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/tools/meeting_dates.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ class MeetingDatesDirective(SphinxDirective):
4040
has_content = False
4141

4242
def run(self):
43-
today = dt.date.today()
44-
self.env.meeting_dates = upcoming_meetings(today)
45-
4643
bullets = nodes.bullet_list()
47-
for date, hour in self.env.meeting_dates:
44+
for date, hour in upcoming_meetings(dt.date.today()):
4845
item = nodes.list_item()
4946
text = f"{date.strftime('%B %d, %Y')} - {hour:02d}:00 UTC"
5047
url = f"https://arewemeetingyet.com/UTC/{date.isoformat()}/{hour}:00/Docs Community Meeting"
@@ -67,7 +64,7 @@ def generate_ics(app, exception):
6764
"VERSION:2.0",
6865
"PRODID:-//Python Docs Community//Meeting Dates//EN",
6966
]
70-
for date, hour in app.env.meeting_dates:
67+
for date, hour in upcoming_meetings(dt.date.today()):
7168
start = dt.datetime(date.year, date.month, date.day, hour, 0, 0)
7269
end = start + dt.timedelta(hours=1)
7370
lines += [

0 commit comments

Comments
 (0)