tracinginsights commited on
Commit
4730c65
1 Parent(s): ecc732f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -1,7 +1,15 @@
1
- import clone
2
- clone.clone_repo()
 
 
 
 
 
 
 
 
3
  import repo_directory.app as app
4
 
5
- app.plot_circuits()
6
- app.plot_recent_overtakes()
7
- app.plot_full_season()
 
1
+ from git import Repo
2
+ import os
3
+
4
+ GITHUB_PAT = os.environ['GITHUB']
5
+
6
+ if os.path.exists('repo_directory'):
7
+ None
8
+ else:
9
+ return Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/Charts.git', 'repo_directory' )
10
+
11
  import repo_directory.app as app
12
 
13
+ # app.plot_circuits()
14
+ # app.plot_recent_overtakes()
15
+ # app.plot_full_season()