PGA_DFS_ROO / src /streamlit_app.py

Commit History

Update Streamlit app styling and layout by modifying tab and button styles for improved visual consistency. Adjust column layout for data loading options, enhancing user experience and interface clarity.
ada64ff
Running

James McCool commited on

Refactor Streamlit app layout and functionality to improve user experience. Introduced new columns for data loading and viewing options, added a segmented control for tab selection, and streamlined data reset logic. Enhanced site selection handling for Draftkings and Fanduel, ensuring consistent functionality across different views.
f02bae9

James McCool commited on

Enhance Dockerfile and Streamlit app configuration by adding user management and environment variable handling for MongoDB connection. Introduce secrets management for sensitive data and update requirements installation process. New secrets.toml file created for storing MongoDB URI.
6c387a5

James McCool commited on

Update mapping logic in Streamlit app to include 'FLEX6' for both Regular and Showdown slates in Fanduel and Draftkings, ensuring consistency in data exports.
9a655f5

James McCool commited on

Refactor player ID dictionary creation in Streamlit app to simplify Fanduel ID mapping by reusing Draftkings dictionary. Update download button filenames for ROO exports to reflect PGA context, enhancing clarity for users.
2e7e942

James McCool commited on

Add download options for ROO data in Streamlit app, allowing users to export both Regular and Portfolio Manager formats. Streamlined data preparation for exports based on selected slate type, enhancing user experience and data accessibility.
1e7a422

James McCool commited on

Refactor player ID dictionary creation in Streamlit app to filter by site (Draftkings and Fanduel), improving data accuracy and clarity in lineup initialization.
33e0f9f

James McCool commited on

Implement character normalization and enhance data export functionality in Streamlit app. Added a new function to convert accented characters to ASCII, ensuring cleaner data exports. Updated export logic to include options for both IDs and names, with filtering capabilities based on user-defined salary constraints.
92f395c

James McCool commited on

Fix variable name from 'slate_var1' to 'site_var1' in salary input logic for Draftkings and Fanduel in Streamlit app, ensuring correct functionality based on selected site.
5dc55b5

James McCool commited on

Enhance Streamlit app by adding salary input fields for Draftkings and Fanduel, allowing users to set minimum and maximum salary constraints. Adjusted layout to accommodate new input options in an additional column, improving overall user experience.
273bc13

James McCool commited on

Refactor Streamlit app layout to improve user experience by organizing input options into columns. Streamlined data loading logic for Draftkings and Fanduel based on selected slate type, enhancing clarity and usability.
70970a2

James McCool commited on

Update MongoDB connection in Streamlit app to use PGA_Database instead of MLB_Database.
5e3911e

James McCool commited on

Enhance Streamlit app with MongoDB integration and player frequency analysis. Added secret management for MongoDB URI in Dockerfile, updated requirements to include pymongo, and refactored streamlit_app.py to connect to MongoDB and display player statistics. Implemented data export functionality for player frequency and optimal lineups.
0fb1f15

James McCool commited on