MLB_DFS_ROO / app.py

Commit History

Update DK and FD lineup functions in app.py to include a limit parameter for enhanced lineup generation control. This change allows users to specify the maximum number of lineups generated, improving customization and flexibility in lineup creation.
03d254e
Running

James McCool commited on

Refactor FD lineup data retrieval in app.py to streamline logic for handling priority variables and slate types. This update consolidates the data fetching process, ensuring consistent DataFrame creation and enhancing overall code readability and maintainability.
0fd7f83

James McCool commited on

Refactor lineup data retrieval in app.py to streamline DataFrame creation by ensuring consistent indentation and structure. This change enhances code readability and maintains clarity in the data processing for both DK and FD lineup functions.
fc6e107

James McCool commited on

Refactor lineup data retrieval in app.py to replace direct cursor concatenation with DataFrame conversion for improved data handling. This change enhances the clarity and structure of the data being processed in both DK and FD lineup functions.
f3c1ced

James McCool commited on

Refactor lineup data retrieval in app.py to use math.ceil for limit calculations in DK and FD functions. This change ensures accurate rounding for the number of records fetched based on the priority mix, enhancing data integrity in lineup generation.
26280cf

James McCool commited on

Enhance DK and FD lineup functions in app.py by introducing a priority mix parameter for improved lineup customization. This update allows users to specify a mix of projection and ownership when no priority variable is selected, enhancing the flexibility and effectiveness of lineup generation.
d7b7b52

James McCool commited on

Add priority variable selection to optimals tab in app.py for enhanced lineup customization. This update allows users to choose between 'proj' and 'Own' as priority variables, improving the flexibility of lineup configurations.
890c163

James McCool commited on

Enhance lineup initialization in app.py by adding a priority variable to the DK and FD lineup functions. This update allows for sorting of lineup data based on user-defined priorities, improving lineup customization and data retrieval efficiency.
e0abf86

James McCool commited on

Update salary calculation in app.py by adjusting the Salary column values to be divided by 1.5. This change improves the accuracy of salary data in the application.
63701da

James McCool commited on

Implement error handling for tab selection in app.py by wrapping the segmented control in a try-except block. This enhancement ensures that the application remains functional even if an error occurs during tab selection, improving overall stability and user experience.
be9e51d

James McCool commited on

Refactor tab navigation in app.py by replacing tabbed interface with a segmented control for improved user experience. This change allows users to select between "Scoring Percentages", "Player ROO", "Optimals", and "Handbuilder" more intuitively, enhancing the overall layout and accessibility of the application.
b93c5bb

James McCool commited on

Update FanDuel stack input limits in app.py to allow a maximum of 5 stacks, enhancing user flexibility in lineup configuration. This change aligns the input options with those available for DraftKings, improving consistency across platforms.
d7ddbd0

James McCool commited on

Enhance salary input functionality in app.py by adding conditional logic for minimum and maximum salary based on slate type for FanDuel. This update allows users to set different salary ranges for Regular and Showdown slates, improving flexibility in lineup management.
9d781f9

James McCool commited on

Update fd_sd_columns in app.py to include FLEX5, enhancing data structure for saved lineups. This change ensures consistency across column definitions for better functionality in lineup management.
88faeca

James McCool commited on

Add clear saved lineups functionality in app.py by introducing a new button to delete saved lineups from session state. This update enhances user control over saved data and improves overall user experience by providing a clearer interface for managing lineups.
f3aa777

James McCool commited on

Update lineup saving logic in app.py to use lineup_display_df for storing player data. This change ensures consistency in saved lineups and improves the overall functionality of the save feature.
2c1b48a

James McCool commited on

Update column layout in app.py to adjust button spacing and enhance visual clarity. Add conditional display for saved lineups, improving user feedback when no lineups are available. This update streamlines the user experience by providing clearer information on lineup status.
b44c615

James McCool commited on

Add handbuilder lineup export functionality in app.py by introducing a new export button. This allows users to download saved lineups as a CSV file, enhancing data management and user experience. Additionally, new column definitions for DraftKings and FanDuel handbuilder exports have been added for improved clarity.
2b816c4

James McCool commited on

Add clear and save lineup buttons in app.py to enhance user interaction. The clear button resets the lineup, while the save button allows users to store their lineups in session state, improving overall functionality and user experience.
a591260

James McCool commited on

Add informational tooltip in app.py for optimals filters to enhance user guidance. Adjust column layout for download buttons to streamline the export process, improving overall user experience.
3d22992

James McCool commited on

Enhance data export functionality in app.py by adding a fourth column for stack inputs and implementing filters for minimum and maximum salary and stack counts. This update improves user experience by allowing more granular control over exported data for both DraftKings and FanDuel.
98b4070

James McCool commited on

Add new convert_pm_df function for Portfolio Manager exports in app.py. Update download buttons to utilize this new function, enhancing data export functionality and ensuring consistent CSV formatting for both IDs and Names.
0ea88cb

James McCool commited on

Refactor data export logic in app.py to remove unnecessary index settings for columns in DraftKings and FanDuel exports. This change enhances data clarity by ensuring only relevant columns are dropped, streamlining the export process for both Portfolio Manager options.
f2e277e

James McCool commited on

Refactor data export logic in app.py to ensure consistent column dropping and index setting for DraftKings and FanDuel across slate types. This update improves data clarity and maintains a streamlined export process for both Portfolio Manager options.
e9b7641

James McCool commited on

Refactor data export logic in app.py to streamline column dropping and index setting for DraftKings and FanDuel. This update enhances the clarity of exported data by ensuring consistent handling across different slate types, improving overall user experience.
fdf5897

James McCool commited on

Enhance data export functionality in app.py by implementing conditional column dropping and index setting based on selected site and slate type for both DraftKings and FanDuel. This update ensures accurate data formatting for Portfolio Manager exports, improving user experience and data clarity.
5175e51

James McCool commited on

Refactor data export handling in app.py by removing unnecessary index setting in download button data. This change simplifies the export process for both Portfolio Manager options, ensuring cleaner data output.
85ba957

James McCool commited on

Refactor download button layout in app.py to improve organization and accessibility of export options. Adjusted column widths for Regular and Portfolio Manager exports, ensuring a more user-friendly interface for data downloads.
ea7e744

James McCool commited on

Remove unused variable pm_export in app.py to clean up code and improve clarity in data handling for slate types.
912aba9

James McCool commited on

Refactor download button data handling in app.py to use convert_df_to_csv for ROO exports. This change improves data export functionality for both Regular and Portfolio Manager options, ensuring consistent file formatting.
4642ddb

James McCool commited on

Add download buttons for ROO exports in app.py based on slate type. Implemented separate export options for Regular and Showdown slates, enhancing user functionality and data accessibility.
755f1e4

James McCool commited on

Remove unused gspread import from app.py to streamline dependencies and improve code clarity.
7d00df7

James McCool commited on

Update scoring percentages calculation in app.py to include separate metrics for DraftKings and FanDuel. This change enhances the data structure by introducing 'DK_Runs/$' and 'FD_Runs/$', while also refining the handling of average salary columns for each platform, improving overall data accuracy for player selection.
84cda72

James McCool commited on

Update app.py to include 'FLEX5' in player selection for various slate types. This change enhances the data structure for player lineups, ensuring compatibility with expanded player options in the application.
4f7c6f3

James McCool commited on

Refactor player selection logic in app.py to improve handling of 'Top (1-5)' and 'Mid (4-8)' conditions. This update introduces additional player selection when the count is less than auto_size_var, ensuring accurate sorting and selection of players, thereby enhancing the application's functionality.
1d52481

James McCool commited on

Enhance player selection logic in app.py by adding display of selected players for 'Mid (4-8)' condition. This update improves user feedback by showing the selected players when the count is less than the specified auto_size_var, thereby enhancing the application's usability.
026ef43

James McCool commited on

Update player selection logic in app.py to correctly handle additional player selection for 'Mid (4-8)' condition. This change ensures that the logic accommodates the specified auto_size_var, enhancing the accuracy of player selection in the application.
146d4c4

James McCool commited on

Enhance player selection logic in app.py to ensure accurate handling of auto_size_var for 'Top (1-5)' and 'Mid (4-8)' conditions. This update improves player selection by allowing for an additional player when the selected count is less than the specified size, thereby enhancing the application's functionality.
12300bb

James McCool commited on

Fix player selection logic in app.py to correctly handle auto_size_var for 'Mid (4-8)' condition. This adjustment ensures accurate player selection based on the specified size, enhancing the functionality of the application.
d4b74a6

James McCool commited on

Refactor player selection logic in app.py to accommodate dynamic auto size
53b3878

James McCool commited on

Refactor player data mapping in app.py to improve position-based logic
fe4a9c1

James McCool commited on

Enhance data handling in app.py by expanding player data mapping
4b41aad

James McCool commited on

Comment out redundant player index setting in app.py to prevent potential errors during data display. This change maintains the existing functionality while improving error handling in the data presentation logic.
e091f4e

James McCool commited on

Refactor player count logic in app.py to enhance clarity
8912250

James McCool commited on

Refactor opponent and team total mapping in app.py for improved data handling
67bd128

James McCool commited on

Refactor data mapping in app.py to simplify opponent assignment
68a67eb

James McCool commited on

Remove redundant CSS rule for portal element in app.py to streamline styling
806469b

James McCool commited on

Update CSS in app.py to further adjust font size for portal element
92a38a7

James McCool commited on

Update CSS in app.py to adjust font size for portal element
51177bc

James McCool commited on

Add CSS rule in app.py to set font size for table rows
03c5140

James McCool commited on