Version 1.1

This commit is contained in:
2026-02-18 08:24:54 -05:00
parent 4318c8f642
commit fdba869a8d
33 changed files with 2142 additions and 1942 deletions

35
.env.example Normal file
View File

@@ -0,0 +1,35 @@
# ============================================================
# Lottery Tracker — Environment Configuration
# ============================================================
# Copy this file to .env and adjust values as needed.
# cp .env.example .env
# ============================================================
# --- Flask ---
FLASK_DEBUG=false
FLASK_HOST=0.0.0.0
FLASK_PORT=5000
# CORS: comma-separated origins, or * for all
ALLOWED_ORIGINS=*
# --- Tax rates ---
LUMP_SUM_RATE=0.52
FEDERAL_TAX_RATE=0.37
DEFAULT_STATE_TAX_RATE=0.055
USD_CAD_RATE=1.35
INVESTMENT_INCOME_TAX_RATE=0.5353
PERSONAL_WITHDRAWAL_PCT=0.10
# --- Investment defaults ---
DEFAULT_INVEST_PCT=0.90
DEFAULT_ANNUAL_RETURN=0.045
DEFAULT_CYCLES=8
# --- Scraper URLs (override only if sites change) ---
# SCRAPER_URL_POWERBALL=https://www.lotto.net/powerball
# SCRAPER_URL_MEGA_MILLIONS=https://www.lotto.net/mega-millions
# SCRAPER_URL_OLG=https://www.olg.ca/
# --- Cache TTL (seconds, default 6 hours) ---
CACHE_TTL_SECONDS=21600