This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAJOR UPDATE - Wrapup of Version 2. Repositioning project around paid…
… data sources and custom model development.
- Loading branch information
1 parent
27ddec7
commit 1173875
Showing
3,172 changed files
with
906,992 additions
and
79,541 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
load_dotenv() | ||
NBA_BETTING_BASE_DIR = os.getenv("NBA_BETTING_BASE_DIR") | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define the DAG | ||
dag = DAG( | ||
|
@@ -17,7 +18,7 @@ | |
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,23 @@ | |
import pendulum | ||
from airflow import DAG | ||
from airflow.decorators import task | ||
from dotenv import load_dotenv | ||
|
||
here = os.path.dirname(os.path.realpath(__file__)) | ||
sys.path.append(os.path.join(here, "../../")) | ||
|
||
from src.etl.main_etl import ETLPipeline | ||
|
||
load_dotenv() | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define default arguments | ||
default_args = { | ||
"owner": "Jeff", | ||
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,16 @@ | |
import pendulum | ||
from airflow import DAG | ||
from airflow.decorators import task | ||
from dotenv import load_dotenv | ||
|
||
here = os.path.dirname(os.path.realpath(__file__)) | ||
sys.path.append(os.path.join(here, "../../")) | ||
|
||
from src.data_sources.game.odds_api import update_game_data | ||
|
||
load_dotenv() | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define the DAG | ||
dag = DAG( | ||
"Odds_Api_Daily_Update", | ||
|
@@ -19,7 +23,7 @@ | |
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,23 @@ | |
import pendulum | ||
from airflow import DAG | ||
from airflow.decorators import task | ||
from dotenv import load_dotenv | ||
|
||
here = os.path.dirname(os.path.realpath(__file__)) | ||
sys.path.append(os.path.join(here, "../../")) | ||
|
||
from src.bet_management.bet_decisions import main_predictions | ||
|
||
load_dotenv() | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define default arguments | ||
default_args = { | ||
"owner": "Jeff", | ||
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
load_dotenv() | ||
NBA_BETTING_BASE_DIR = os.getenv("NBA_BETTING_BASE_DIR") | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define the DAG | ||
dag = DAG( | ||
|
@@ -17,7 +18,7 @@ | |
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
# Import necessary modules | ||
import os | ||
import sys | ||
from datetime import timedelta | ||
|
||
import pendulum | ||
from airflow import DAG | ||
from airflow.decorators import task | ||
from dotenv import load_dotenv | ||
|
||
# Get the current directory | ||
here = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
# Add the parent directory to the sys path | ||
sys.path.append(os.path.join(here, "../../")) | ||
|
||
# Import the function to update the betting account balance | ||
from src.bet_management.financials import update_betting_account_balance | ||
|
||
# Load environment variables from .env file | ||
load_dotenv() | ||
|
||
# Get the email address from the environment variables | ||
EMAIL_ADDRESS = os.getenv("EMAIL_ADDRESS") | ||
|
||
# Define the DAG | ||
dag = DAG( | ||
"Betting_Account_Balance_Daily_Update", | ||
|
@@ -18,12 +31,12 @@ | |
"retries": 0, | ||
"retry_delay": timedelta(minutes=5), | ||
"start_date": pendulum.datetime(2023, 5, 1), | ||
"email": ["[email protected]"], | ||
"email": [EMAIL_ADDRESS], | ||
"email_on_failure": True, | ||
"email_on_retry": True, | ||
}, | ||
description="A DAG to update betting account balance daily", | ||
schedule="0 6 * * *", # 12am MT | ||
schedule="0 6 * * *", # Run at 12am MT | ||
catchup=False, | ||
) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
BUNDLE_PATH: "vendor/bundle" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
gem 'github-pages', group: :jekyll_plugins | ||
gem 'webrick', '~> 1.7' |
Oops, something went wrong.