Skip to content

Commit d3eac34

Browse files
authored
Merge pull request #9 from Vinfall/main
Security & Format update
2 parents 7154e54 + 3463028 commit d3eac34

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/analyze-wishlist.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ jobs:
2727
pip install -r requirements.txt
2828
2929
- name: execute py script
30-
run: |
31-
python swc.py -i=${{ secrets.STEAM_ID }} -d=True
32-
sed -i 's/LAST-MODIFIED/DTSTAMP/g' output/wishlist.ics
30+
run: python swc.py -i=${{ secrets.STEAM_ID }} -d=True
3331

3432
- name: check changes
3533
id: check_changes

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dateparser>=1.2.0
2-
ics>=0.7.2
3-
matplotlib>=3.8.2
4-
requests>=2.31.0
5-
regex==2023.12.25
2+
ics==0.8.0.dev0
3+
matplotlib>=3.9.0
4+
requests>=2.32.0
5+
regex==2024.5.15

swc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def last_day_of_next_month(dt):
133133
if value['type'] == 'DLC' and not args.include_dlc:
134134
continue
135135

136-
event = Event(uid=key, name=game_name,
136+
event = Event(uid=key, summary=game_name,
137137
description='https://store.steampowered.com/app/' + key + description_suffix,
138-
begin=release_date, last_modified=now,
138+
begin=release_date, last_modified=now, dtstamp=now,
139139
categories=['game_release'])
140140
event.make_all_day()
141-
cal.events.add(event)
141+
cal.events.append(event)
142142

143143
time.sleep(3)
144144

0 commit comments

Comments
 (0)