tracinginsights commited on
Commit
40bffd7
1 Parent(s): 31a23f9

Create Overtakes.py

Browse files
Files changed (1) hide show
  1. Overtakes.py +18 -0
Overtakes.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from git import Repo
2
+ import os
3
+ import streamlit as st
4
+
5
+
6
+ GITHUB_PAT = os.environ['GITHUB']
7
+
8
+ if not os.path.exists('repo_directory'):
9
+ Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
10
+
11
+ from repo_directory import button
12
+ from repo_directory import Overtakes
13
+
14
+ option = Overtakes.select_gp()
15
+ app.plot_recent_overtakes(option)
16
+ app.plot_full_season()
17
+ app.plot_circuits()
18
+