Spaces:
Running
Running
tracinginsights
commited on
Commit
·
4407ef6
1
Parent(s):
8d0d900
Create WDC_Contenders.py
Browse files- pages/WDC_Contenders.py +13 -0
pages/WDC_Contenders.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from repo_directory import WDC_Contenders
|
3 |
+
from repo_directory import button
|
4 |
+
|
5 |
+
|
6 |
+
# Get the current drivers standings
|
7 |
+
driver_standings = WDC_Contenders.get_drivers_standings()
|
8 |
+
|
9 |
+
# Get the maximum amount of points
|
10 |
+
points = WDC_Contenders.calculate_max_points_for_remaining_season()
|
11 |
+
|
12 |
+
# Print which drivers can still win
|
13 |
+
WDC_Contenders.calculate_who_can_win(driver_standings, points)
|