Skip to content

Commit

Permalink
Merge pull request #360 from jef-n/fix-356
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux authored Jul 22, 2024
2 parents 389b4f2 + f865e0b commit 8a97e85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/update-feeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
pipenv run pip freeze
pipenv run ./fetch_feeds.py
- name: '📅 Update roadmap'
run: |
cd ./qgis-hugo
pipenv run pip freeze
pipenv run python ./scripts/update-schedule.py
- name: '✉️ Commit'
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/update-schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
$ python scripts/update-schedule.py
will update data/conf.json and scripts/schedule.ics
will update data/conf.json and content/schedule.ics
'''

from urllib.request import urlopen
Expand Down Expand Up @@ -42,7 +42,7 @@

now = datetime.now(timezone.utc)

ocal = Calendar.from_ical(open("scripts/schedule.ics").read())
ocal = Calendar.from_ical(open("content/schedule.ics").read())

oevents = {}
for e in ocal.walk('VEVENT'):
Expand Down Expand Up @@ -268,6 +268,6 @@ def adduid(ev, uid):
"weekly_msi": "https://download.osgeo.org/qgis/windows/weekly/?C=M&O=D",
}, f, indent=4)

o = open("scripts/schedule.ics", "wb")
o = open("content/schedule.ics", "wb")
o.write(cal.to_ical())
o.close()

0 comments on commit 8a97e85

Please sign in to comment.