Reference prod database

This commit is contained in:
Cal Corum 2023-10-24 09:49:03 -05:00
parent 31a2fe8804
commit a07dc98373
3 changed files with 6 additions and 3 deletions

View File

@ -447,7 +447,10 @@ CLUB_LIST = {
'TEX': 'Texas Rangers', 'TEX': 'Texas Rangers',
'TOR': 'Toronto Blue Jays', 'TOR': 'Toronto Blue Jays',
'WSN': 'Washington Nationals', 'WSN': 'Washington Nationals',
'TOT': 'None' 'TOT': 'None',
'2 Tms': 'None',
'3 Tms': 'None',
'4 Tms': 'None'
} }

View File

@ -8,7 +8,7 @@ from typing import Literal, Optional
AUTH_TOKEN = {'Authorization': f'Bearer Tp3aO3jhYve5NJF1IqOmJTmk'} AUTH_TOKEN = {'Authorization': f'Bearer Tp3aO3jhYve5NJF1IqOmJTmk'}
DB_URL = 'https://pd.manticorum.com/api' DB_URL = 'https://pd.manticorum.com/api'
master_debug = True master_debug = True
alt_database = 'dev' alt_database = False
if alt_database == 'dev': if alt_database == 'dev':
DB_URL = 'https://pddev.manticorum.com/api' DB_URL = 'https://pddev.manticorum.com/api'

View File

@ -30,7 +30,7 @@ logging.basicConfig(
format='%(asctime)s - card-creation - %(levelname)s - %(message)s', format='%(asctime)s - card-creation - %(levelname)s - %(message)s',
level=log_level level=log_level
) )
CARD_BASE_URL = 'https://pddev.manticorum.com/api/v2/players' CARD_BASE_URL = 'https://pd.manticorum.com/api/v2/players'
def sanitize_name(start_name: str) -> str: def sanitize_name(start_name: str) -> str: