MLB_DFS_ROO / app.py

Commit History

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

Update CSS selector in app.py to simplify box-sizing implementation
2eb1ce8

James McCool commited on

Update CSS selector in app.py to improve layout consistency
21ba2d1

James McCool commited on

Update CSS styles in app.py to enhance layout and box-sizing
00000b9

James McCool commited on

Update font size in app.py for improved readability
894e5c8

James McCool commited on

Enhance styling in app.py for improved readability
61a27a2

James McCool commited on

Refactor lineup display in app.py to improve styling and readability
e87901e

James McCool commited on

Enhance lineup building logic in app.py to support both Draftkings and Fanduel platforms
2f2fe43

James McCool commited on

Add error handling for opponent and team total mappings in app.py
3e7ecca

James McCool commited on

Adjust player selection logic in app.py for 'Mid' category to correct range calculation, ensuring accurate filtering of players based on updated order parameters. This change enhances the user experience in lineup creation.
ada3119

James McCool commited on

Update player selection logic in app.py to adjust range parameters for 'Mid' and 'Wrap' categories. Enhanced the selection criteria to ensure accurate player filtering based on updated order ranges, improving user experience in lineup creation.
2d30a95

James McCool commited on

Refactor player selection DataFrame in app.py to ensure consistent filtering by salary and position. Updated logic to apply filters correctly, enhancing data integrity and user experience in lineup creation.
2c354dd

James McCool commited on

Refactor player position selection logic in app.py to simplify user experience. Removed conditional check for 'Specific' position selection, allowing direct multiselect input for positions.
53de179

James McCool commited on

Update position selection key in player filters for consistency
0aa6473

James McCool commited on

Add player filters to app.py for enhanced selection options
c6c03f4

James McCool commited on

Update 'Team_Total' and 'Opp_Total' column mappings in app.py to reference RHH_Info instead of RHP_Info, ensuring accurate data retrieval for team and opponent totals and enhancing data integrity in player selection metrics.
ad4de6d

James McCool commited on

Correct 'Team_Total' and 'Opp_Total' column mappings in app.py to accurately reference 'Opp' and 'Team', respectively, ensuring improved data integrity in player selection metrics.
7ff22e0

James McCool commited on

Refactor 'Team_Total' and 'Opp_Total' column mappings in app.py to utilize drop_duplicates() for improved data accuracy and integrity in player selection metrics.
0062b10

James McCool commited on

Refactor 'Team_Total' and 'Opp_Total' column mappings in app.py to utilize the first value from the respective DataFrame, ensuring accurate data retrieval and enhancing the integrity of player selection metrics.
42a9b70

James McCool commited on

Update 'Team_Total' and 'Opp_Total' column mappings in app.py to use the first value from the respective DataFrame, ensuring accurate data retrieval and improving the integrity of player selection metrics.
5a354a6

James McCool commited on

Correct 'Opp_Total' column mapping in app.py to reference 'Opp' instead of 'Team', ensuring accurate data retrieval for opponent totals and improving data integrity in player selection metrics.
ad1bc8e

James McCool commited on

Correct 'Team_Total' column mapping in app.py to reference 'Team' instead of 'Player', ensuring accurate data retrieval for team totals and maintaining data integrity in player selection metrics.
cb50f0b

James McCool commited on

Fix 'Team_Total' column mapping in app.py to correctly reference 'Player' instead of 'Team'. This adjustment ensures accurate data retrieval for team totals, enhancing the integrity of player selection metrics.
7ee83bf

James McCool commited on

Enhance player data management in app.py by adding 'Team_Total' and 'Opp_Total' columns to the lineup. Updated DataFrame structures and quick fill options to incorporate these new metrics, improving the clarity and depth of player selection information.
a924502

James McCool commited on

Handle potential errors when inserting 'Order' column in roo_data within app.py. Added a try-except block to ensure compatibility with non-integer values, enhancing data integrity during player selection.
dbd6109

James McCool commited on

Refactor Handbuilder section in app.py to include a slate selection dropdown, allowing users to filter player data based on slate type. Updated team filtering logic to utilize the filtered handbuild_roo dataset for improved accuracy in player selection.
cb833a2

James McCool commited on

Update quick fill options in app.py to include detailed descriptions for player selection ranges. This change enhances clarity for users by specifying the player order ranges associated with each option.
db04e43

James McCool commited on