-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated tailwind from npm dependancy
- Loading branch information
Showing
12 changed files
with
72 additions
and
1,361 deletions.
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ build | |
*.egg-info | ||
|
||
#tailwind and prettier stuff | ||
node_modules | ||
tailwindcss | ||
*prettier* | ||
|
||
#vscode stuff | ||
|
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
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
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
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
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,13 +1,19 @@ | ||
import os | ||
from .database_update import update_usports_bball_db | ||
from dotenv import load_dotenv | ||
from data_pipeline.database_update import update_usports_bball_db | ||
from config import DevelopmentConfig, ProductionConfig | ||
|
||
# Load environment variables from .env file | ||
from dotenv import load_dotenv | ||
load_dotenv() | ||
|
||
# Retrieve the environment variable | ||
password = os.getenv("USPORT_BBALL_PASSWORD") | ||
# Determine the environment and select the appropriate database URL | ||
environment = os.getenv("FLASK_ENV", "development") | ||
|
||
if environment == "production": | ||
database_url = ProductionConfig.SQLALCHEMY_DATABASE_URI | ||
else: | ||
database_url = DevelopmentConfig.SQLALCHEMY_DATABASE_URI | ||
|
||
def update_db(): | ||
""" Update Database""" | ||
update_usports_bball_db(password) | ||
""" Update Database """ | ||
update_usports_bball_db(database_url) |
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
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
5 changes: 3 additions & 2 deletions
5
usport_flask_app/static/tailwind.config.js → tailwind.config.js
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,8 +1,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["../templates/**/*.html"], | ||
content: ["./usport_flask_app/templates/**/*.html"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
}; | ||
} | ||
|
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
Oops, something went wrong.