diff --git a/.github/workflows/analyze-wishlist.yml b/.github/workflows/analyze-wishlist.yml index 7e005cdb..1f7a6f9e 100644 --- a/.github/workflows/analyze-wishlist.yml +++ b/.github/workflows/analyze-wishlist.yml @@ -27,9 +27,7 @@ jobs: pip install -r requirements.txt - name: execute py script - run: | - python swc.py -i=${{ secrets.STEAM_ID }} -d=True - sed -i 's/LAST-MODIFIED/DTSTAMP/g' output/wishlist.ics + run: python swc.py -i=${{ secrets.STEAM_ID }} -d=True - name: check changes id: check_changes diff --git a/requirements.txt b/requirements.txt index f2172ee8..35f2b77e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ dateparser>=1.2.0 -ics>=0.7.2 -matplotlib>=3.8.2 -requests>=2.31.0 -regex==2023.12.25 +ics==0.8.0.dev0 +matplotlib>=3.9.0 +requests>=2.32.0 +regex==2024.5.15 diff --git a/swc.py b/swc.py index 5a890533..8605ee6b 100644 --- a/swc.py +++ b/swc.py @@ -133,12 +133,12 @@ def last_day_of_next_month(dt): if value['type'] == 'DLC' and not args.include_dlc: continue - event = Event(uid=key, name=game_name, + event = Event(uid=key, summary=game_name, description='https://store.steampowered.com/app/' + key + description_suffix, - begin=release_date, last_modified=now, + begin=release_date, last_modified=now, dtstamp=now, categories=['game_release']) event.make_all_day() - cal.events.add(event) + cal.events.append(event) time.sleep(3)