mirror of
https://github.com/karl0ss/downgrangefixtures_ical.git
synced 2025-05-10 00:41:31 +01:00
fixed continue code
This commit is contained in:
parent
12c01e45a5
commit
bfad1f2512
@ -4,7 +4,7 @@ POS,Team,P,W,D,L,PTS,Unnamed: 7
|
||||
3.0,Down Grange Pumas,3.0,3.0,0.0,0.0,9.0,
|
||||
4.0,Fernhurst Sports Terriers,4.0,3.0,0.0,1.0,9.0,
|
||||
5.0,Tongham U12,5.0,2.0,1.0,2.0,7.0,
|
||||
6.0,Petersfield Town Revolution,5.0,1.0,0.0,4.0,3.0,
|
||||
7.0,Mytchett Athletic Hawks,7.0,1.0,0.0,6.0,3.0,
|
||||
6.0,Mytchett Athletic Hawks,8.0,2.0,0.0,6.0,6.0,
|
||||
7.0,Petersfield Town Revolution,6.0,1.0,0.0,5.0,3.0,
|
||||
8.0,Curley Park Rangers Mambas,5.0,0.0,1.0,4.0,1.0,
|
||||
,,,,,,,
|
||||
|
|
14
fixtures.csv
14
fixtures.csv
@ -1 +1,13 @@
|
||||
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,TBC,Down Grange U12 Pumas,,VS,,Mytchett Athletic U12 Hawks,DOWN GRANGE SPORTS COMPLEX #2,U12 Division 8 - No Heading Trial,Postponed
|
||||
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,TBC,Curley Park Rangers U12 Mambas,,VS,,Down Grange U12 Pumas,LIGHTWATER RECREATION GROUND,U12 Division 8 - No Heading Trial,Postponed
|
||||
Cup,24/02/24 08:00,Bourne Blades U12 Whites,,VS,,Down Grange U12 Pumas,WAVERLEY ABBEY JUNIOR SCHOOL #2,U12 League Shield (No Deliberate Heading)_2023 - 2024,
|
||||
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,
|
||||
|
|
2
main.py
2
main.py
@ -92,6 +92,8 @@ def create_ical_file(df:pd.DataFrame, cal:Calendar, table:pd.DataFrame)->None:
|
||||
away_team = str(row['Away Team.1']).replace(" U12","")
|
||||
venue = str(row['Venue'])
|
||||
print(row['Date / Time'], home_team, away_team, venue)
|
||||
if row['Date / Time'] == 'TBC':
|
||||
continue
|
||||
start_date_time = datetime.strptime(row['Date / Time'], '%d/%m/%y %H:%M')
|
||||
# Set default 8am start time to normal 930 kickoff time.
|
||||
if start_date_time.hour == 8:
|
||||
|
@ -4,6 +4,6 @@ POS,Team,P,W,D,L,PTS
|
||||
3,Down Grange Pumas,3,3,0,0,9
|
||||
4,Fernhurst Sports Terriers,4,3,0,1,9
|
||||
5,Tongham U12,5,2,1,2,7
|
||||
6,Petersfield Town Revolution,5,1,0,4,3
|
||||
7,Mytchett Athletic Hawks,7,1,0,6,3
|
||||
6,Mytchett Athletic Hawks,8,2,0,6,6
|
||||
7,Petersfield Town Revolution,6,1,0,5,3
|
||||
8,Curley Park Rangers Mambas,5,0,1,4,1
|
||||
|
|
Loading…
x
Reference in New Issue
Block a user