mirror of
https://github.com/karl0ss/downgrangefixtures_ical.git
synced 2025-05-10 00:41:31 +01:00
remove postponed games from ical
This commit is contained in:
parent
4f7e7131ea
commit
12c01e45a5
14
fixtures.csv
14
fixtures.csv
@ -1,13 +1 @@
|
|||||||
Type,Date / Time,Home Team,Home Team.1,Unnamed: 4,Away Team,Away Team.1,Venue,Competition,Status / Notes
|
Type,Date / Time,Home Team,Home Team.1,Unnamed: 4,Away Team,Away Team.1,Venue,Competition,Status / Notes
|
||||||
L,27/01/24 08:00,Down Grange U12 Pumas,,VS,,Mytchett Athletic U12 Hawks,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,Postponed
|
|
||||||
Cup,27/01/24 08:00,Beacon Hill U12 Rockets,,VS,,Down Grange U12 Pumas,HINDHEAD PLAYING FIELDS (HINDHEAD CC) 1,U12 League Shield (No Deliberate Heading)_2023 - 2024,
|
|
||||||
L,03/02/24 08:00,Fernhurst Sports U12 Terriers,,VS,,Down Grange U12 Pumas,FERNHURST RECREATION GROUND,U12 Division 8 - No Heading Trial,
|
|
||||||
L,10/02/24 08:00,Down Grange U12 Pumas,,VS,,Aldershot B&G U12 Lions,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,
|
|
||||||
L,17/02/24 08:00,Down Grange U12 Pumas,,VS,,Petersfield Town U12 Revolution,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,Match Notes: Double Header - Matches to be played at Down Grange's ground
|
|
||||||
L,17/02/24 08:00,Petersfield Town U12 Revolution,,VS,,Down Grange U12 Pumas,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,Match Notes: Double Header - Matches to be played at Down Grange's ground
|
|
||||||
L,24/02/24 08:00,Curley Park Rangers U12 Mambas,,VS,,Down Grange U12 Pumas,LIGHTWATER RECREATION GROUND,U12 Division 8 - No Heading Trial,
|
|
||||||
L,02/03/24 08:00,Tongham U12,,VS,,Down Grange U12 Pumas,POYLE ROAD RECREATION GROUND #2,U12 Division 8 - No Heading Trial,
|
|
||||||
L,09/03/24 08:00,Down Grange U12 Pumas,,VS,,Farnham Town U12 Panthers,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,
|
|
||||||
L,16/03/24 08:00,Down Grange U12 Pumas,,VS,,Fernhurst Sports U12 Terriers,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,
|
|
||||||
L,06/04/24 08:00,Down Grange U12 Pumas,,VS,,Tongham U12,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,
|
|
||||||
L,23/04/24 08:00,Down Grange U12 Pumas,,VS,,Curley Park Rangers U12 Mambas,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,
|
|
|
35
fixtures.ics
35
fixtures.ics
@ -2,24 +2,11 @@ BEGIN:VCALENDAR
|
|||||||
VERSION:2.0
|
VERSION:2.0
|
||||||
PRODID:Down Grange Pumas Fixtures
|
PRODID:Down Grange Pumas Fixtures
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
SUMMARY:(League) Down Grange Pumas (3rd) VS Mytchett Athletic Hawks (7th)
|
|
||||||
DTSTART:20240127T093000
|
|
||||||
DTEND:20240127T113000
|
|
||||||
DTSTAMP:20240127T093000Z
|
|
||||||
UID:3d7b5dd0-1726-4473-b6ec-cd89a246863d
|
|
||||||
DESCRIPTION:Arrive by - 2024-01-27 09:00:00\nPostponed\nTable -\nhttps://f
|
|
||||||
ulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision=1656
|
|
||||||
01607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ftsTabl
|
|
||||||
ePageContent.fixtureAnalysisForm.standingsTableMonth=0&ftsTablePageContent
|
|
||||||
.fixtureAnalysisForm.standingsTableYear=2024&activeTab=1
|
|
||||||
LOCATION:DOWN GRANGE SPORTS COMPLEX #2
|
|
||||||
END:VEVENT
|
|
||||||
BEGIN:VEVENT
|
|
||||||
SUMMARY:(Cup) Beacon Hill Rockets VS Down Grange Pumas
|
SUMMARY:(Cup) Beacon Hill Rockets VS Down Grange Pumas
|
||||||
DTSTART:20240127T093000
|
DTSTART:20240127T093000
|
||||||
DTEND:20240127T113000
|
DTEND:20240127T113000
|
||||||
DTSTAMP:20240127T093000Z
|
DTSTAMP:20240127T093000Z
|
||||||
UID:30d7a4ee-f6c2-442f-a1ba-ddf2d6bc1621
|
UID:ff52cf96-0252-4061-9523-b2c42d1e72f8
|
||||||
DESCRIPTION:Arrive by - 2024-01-27 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-01-27 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -33,7 +20,7 @@ SUMMARY:(League) Fernhurst Sports Terriers (4th) VS Down Grange Pumas (3rd
|
|||||||
DTSTART:20240203T093000
|
DTSTART:20240203T093000
|
||||||
DTEND:20240203T113000
|
DTEND:20240203T113000
|
||||||
DTSTAMP:20240203T093000Z
|
DTSTAMP:20240203T093000Z
|
||||||
UID:9e948583-7b35-49e4-a8dd-165024943472
|
UID:69d4052e-a14f-4707-abc8-f2b0e5000fdb
|
||||||
DESCRIPTION:Arrive by - 2024-02-03 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-02-03 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -46,7 +33,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Aldershot B&G Lions (2nd)
|
|||||||
DTSTART:20240210T093000
|
DTSTART:20240210T093000
|
||||||
DTEND:20240210T113000
|
DTEND:20240210T113000
|
||||||
DTSTAMP:20240210T093000Z
|
DTSTAMP:20240210T093000Z
|
||||||
UID:5b8aff8e-3908-4830-8e20-5910dd25bcdc
|
UID:2c89dc41-cca6-4a31-bac2-3cacc5bd2b43
|
||||||
DESCRIPTION:Arrive by - 2024-02-10 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-02-10 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -60,7 +47,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Petersfield Town Revolution (6
|
|||||||
DTSTART:20240217T093000
|
DTSTART:20240217T093000
|
||||||
DTEND:20240217T113000
|
DTEND:20240217T113000
|
||||||
DTSTAMP:20240217T093000Z
|
DTSTAMP:20240217T093000Z
|
||||||
UID:aba27d1e-3b02-4955-a999-97145b566da5
|
UID:3b1eb2e1-e467-4141-81a9-60c9d99c3684
|
||||||
DESCRIPTION:Arrive by - 2024-02-17 09:00:00\nMatch Notes: Double Header -
|
DESCRIPTION:Arrive by - 2024-02-17 09:00:00\nMatch Notes: Double Header -
|
||||||
Matches to be played at Down Grange's ground\nTable -\nhttps://fulltime.t
|
Matches to be played at Down Grange's ground\nTable -\nhttps://fulltime.t
|
||||||
hefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&fts
|
hefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&fts
|
||||||
@ -75,7 +62,7 @@ SUMMARY:(League) Petersfield Town Revolution (6th) VS Down Grange Pumas (3
|
|||||||
DTSTART:20240217T093000
|
DTSTART:20240217T093000
|
||||||
DTEND:20240217T113000
|
DTEND:20240217T113000
|
||||||
DTSTAMP:20240217T093000Z
|
DTSTAMP:20240217T093000Z
|
||||||
UID:1e345c72-32f4-4677-bb5f-c76011f5b4b8
|
UID:026317f5-c028-4634-88e3-b85f851a20b4
|
||||||
DESCRIPTION:Arrive by - 2024-02-17 09:00:00\nMatch Notes: Double Header -
|
DESCRIPTION:Arrive by - 2024-02-17 09:00:00\nMatch Notes: Double Header -
|
||||||
Matches to be played at Down Grange's ground\nTable -\nhttps://fulltime.t
|
Matches to be played at Down Grange's ground\nTable -\nhttps://fulltime.t
|
||||||
hefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&fts
|
hefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&fts
|
||||||
@ -90,7 +77,7 @@ SUMMARY:(League) Curley Park Rangers Mambas (8th) VS Down Grange Pumas (3r
|
|||||||
DTSTART:20240224T093000
|
DTSTART:20240224T093000
|
||||||
DTEND:20240224T113000
|
DTEND:20240224T113000
|
||||||
DTSTAMP:20240224T093000Z
|
DTSTAMP:20240224T093000Z
|
||||||
UID:bbadbadc-c58a-4d19-b19b-828c8809f0b6
|
UID:f96b5774-5dfc-4526-8cc0-4ce21696a9e2
|
||||||
DESCRIPTION:Arrive by - 2024-02-24 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-02-24 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -103,7 +90,7 @@ SUMMARY:(League) Tongham U12 (5th) VS Down Grange Pumas (3rd)
|
|||||||
DTSTART:20240302T093000
|
DTSTART:20240302T093000
|
||||||
DTEND:20240302T113000
|
DTEND:20240302T113000
|
||||||
DTSTAMP:20240302T093000Z
|
DTSTAMP:20240302T093000Z
|
||||||
UID:1963d827-04f9-4e8a-9d2e-9fb5e3730d5e
|
UID:751f3c5d-d7f2-4e09-b6ea-b7c2c5950de3
|
||||||
DESCRIPTION:Arrive by - 2024-03-02 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-03-02 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -116,7 +103,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Farnham Town Panthers (1st)
|
|||||||
DTSTART:20240309T093000
|
DTSTART:20240309T093000
|
||||||
DTEND:20240309T113000
|
DTEND:20240309T113000
|
||||||
DTSTAMP:20240309T093000Z
|
DTSTAMP:20240309T093000Z
|
||||||
UID:dbc40115-332b-4b44-814d-2794e8d0d0f9
|
UID:59914d79-9527-41e2-adbb-b7ac1f96d680
|
||||||
DESCRIPTION:Arrive by - 2024-03-09 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-03-09 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -130,7 +117,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Fernhurst Sports Terriers (4th
|
|||||||
DTSTART:20240316T093000
|
DTSTART:20240316T093000
|
||||||
DTEND:20240316T113000
|
DTEND:20240316T113000
|
||||||
DTSTAMP:20240316T093000Z
|
DTSTAMP:20240316T093000Z
|
||||||
UID:07c32ea4-e01c-4b2f-8abd-5386624ae06b
|
UID:c8909924-fbc7-43fa-aa77-f4d907855e9c
|
||||||
DESCRIPTION:Arrive by - 2024-03-16 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-03-16 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -143,7 +130,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Tongham U12 (5th)
|
|||||||
DTSTART:20240406T093000
|
DTSTART:20240406T093000
|
||||||
DTEND:20240406T113000
|
DTEND:20240406T113000
|
||||||
DTSTAMP:20240406T093000Z
|
DTSTAMP:20240406T093000Z
|
||||||
UID:d4eb3faf-269e-48d9-aabb-ede344d4ad68
|
UID:635a215d-3b13-4a69-90d7-f3448ad2ce80
|
||||||
DESCRIPTION:Arrive by - 2024-04-06 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-04-06 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
@ -157,7 +144,7 @@ SUMMARY:(League) Down Grange Pumas (3rd) VS Curley Park Rangers Mambas (8t
|
|||||||
DTSTART:20240423T093000
|
DTSTART:20240423T093000
|
||||||
DTEND:20240423T113000
|
DTEND:20240423T113000
|
||||||
DTSTAMP:20240423T093000Z
|
DTSTAMP:20240423T093000Z
|
||||||
UID:180561b1-f2d0-40e9-9095-ad527981688f
|
UID:240dd3b4-b407-40be-9b8f-2ee6b4797719
|
||||||
DESCRIPTION:Arrive by - 2024-04-23 09:00:00\nNo Match Notes\nTable -\nhttp
|
DESCRIPTION:Arrive by - 2024-04-23 09:00:00\nNo Match Notes\nTable -\nhttp
|
||||||
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
s://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision
|
||||||
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ft
|
||||||
|
2
main.py
2
main.py
@ -106,6 +106,8 @@ def create_ical_file(df:pd.DataFrame, cal:Calendar, table:pd.DataFrame)->None:
|
|||||||
notes = row['Status / Notes']
|
notes = row['Status / Notes']
|
||||||
if pd.isna(notes):
|
if pd.isna(notes):
|
||||||
notes = 'No Match Notes'
|
notes = 'No Match Notes'
|
||||||
|
elif notes == 'Postponed':
|
||||||
|
continue
|
||||||
event.add('description', "Arrive by - " + str(arrival_time) + "\n" + notes + "\nTable -\n" + "https://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ftsTablePageContent.fixtureAnalysisForm.standingsTableMonth=0&ftsTablePageContent.fixtureAnalysisForm.standingsTableYear=2024&activeTab=1")
|
event.add('description', "Arrive by - " + str(arrival_time) + "\n" + notes + "\nTable -\n" + "https://fulltime.thefa.com/table.html?selectedSeason=19010414&selectedDivision=165601607&ftsTablePageContent.fixtureAnalysisForm.standingsTableDay=14&ftsTablePageContent.fixtureAnalysisForm.standingsTableMonth=0&ftsTablePageContent.fixtureAnalysisForm.standingsTableYear=2024&activeTab=1")
|
||||||
event.add('dtstart', start_date_time)
|
event.add('dtstart', start_date_time)
|
||||||
# End 2 hours after start_date_time
|
# End 2 hours after start_date_time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user