fixed continue code

This commit is contained in:
Karl Hudgell 2024-01-29 08:14:12 +00:00
parent 12c01e45a5
commit bfad1f2512
4 changed files with 19 additions and 5 deletions

View File

@ -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,
,,,,,,,

1 POS Team P W D L PTS Unnamed: 7
4 3.0 Down Grange Pumas 3.0 3.0 0.0 0.0 9.0
5 4.0 Fernhurst Sports Terriers 4.0 3.0 0.0 1.0 9.0
6 5.0 Tongham U12 5.0 2.0 1.0 2.0 7.0
7 6.0 Petersfield Town Revolution Mytchett Athletic Hawks 5.0 8.0 1.0 2.0 0.0 4.0 6.0 3.0 6.0
8 7.0 Mytchett Athletic Hawks Petersfield Town Revolution 7.0 6.0 1.0 0.0 6.0 5.0 3.0
9 8.0 Curley Park Rangers Mambas 5.0 0.0 1.0 4.0 1.0
10

View File

@ -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,

1 Type Date / Time Home Team Home Team.1 Unnamed: 4 Away Team Away Team.1 Venue Competition Status / Notes
2 L TBC Down Grange U12 Pumas VS Mytchett Athletic U12 Hawks DOWN GRANGE SPORTS COMPLEX #2 U12 Division 8 - No Heading Trial Postponed
3 L 03/02/24 08:00 Fernhurst Sports U12 Terriers VS Down Grange U12 Pumas FERNHURST RECREATION GROUND U12 Division 8 - No Heading Trial
4 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
5 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
6 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
7 L TBC Curley Park Rangers U12 Mambas VS Down Grange U12 Pumas LIGHTWATER RECREATION GROUND U12 Division 8 - No Heading Trial Postponed
8 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
9 L 02/03/24 08:00 Tongham U12 VS Down Grange U12 Pumas POYLE ROAD RECREATION GROUND #2 U12 Division 8 - No Heading Trial
10 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
11 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
12 L 06/04/24 08:00 Down Grange U12 Pumas VS Tongham U12 DOWN GRANGE SPORTS COMPLEX #2 U12 Division 8 - No Heading Trial
13 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

View File

@ -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:

View File

@ -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

1 POS Team P W D L PTS
4 3 Down Grange Pumas 3 3 0 0 9
5 4 Fernhurst Sports Terriers 4 3 0 1 9
6 5 Tongham U12 5 2 1 2 7
7 6 Petersfield Town Revolution Mytchett Athletic Hawks 5 8 1 2 0 4 6 3 6
8 7 Mytchett Athletic Hawks Petersfield Town Revolution 7 6 1 0 6 5 3
9 8 Curley Park Rangers Mambas 5 0 1 4 1