Add button for loading projections from database in Data Load tab
14840d6
James McCoolcommited on
Enhance projections file upload functionality by adding a selection option for sourcing projections from either 'User Upload' or 'Paydirt DB'. Update init_nfl_baselines function to accept additional parameters for site and slate, and filter projections based on these parameters, improving data handling and user experience.
b44c733
James McCoolcommited on
Update portfolio loading logic to ensure 'portfolio_loaded' state is only set to False when no portfolio file is present in session state. This change enhances the clarity of the loading process and maintains data integrity during uploads.
4fdebbd
James McCoolcommited on
ping
2e2d30e
James McCoolcommited on
Remove redundant database check for clearing session state objects, ensuring that portfolio and export portfolio are always deleted to optimize memory management.
6d724c8
James McCoolcommited on
Refactor portfolio loading logic to remove redundant checks and optimize memory management. The code now clears session state objects only when not sourced from the database, ensuring necessary data persistence while improving overall efficiency.
1b35a81
James McCoolcommited on
Sure
2b8ea88
James McCoolcommited on
ping
44c87c6
James McCoolcommited on
Enhance load_file function to ensure proper handling of unnamed columns by checking if the column name is a string before dropping. This improves data integrity during file uploads.
b8a722a
James McCoolcommited on
Enhance load_file function to check if the upload is already a DataFrame, improving handling of file uploads. This change simplifies the logic for processing uploaded data and ensures compatibility with existing DataFrame objects.
8781f64
James McCoolcommited on
Refactor portfolio file loading to streamline assignment of DataFrames. The load_file function now returns both export and portfolio DataFrames in a single call, improving code clarity and efficiency.
e887235
James McCoolcommited on
added some database persistence
9e77e56
James McCoolcommited on
Improve portfolio data handling by adding dropna and reset_index methods to clean and standardize DataFrames after loading. This ensures that empty rows are removed and indices are reset for both export and portfolio DataFrames.
46bf4d1
James McCoolcommited on
Refactor portfolio loading status management to use session state. This change ensures consistent tracking of the portfolio loading status across different upload sources, enhancing the overall data loading functionality.
46c890f
James McCoolcommited on
portfolio bool
3cdab9b
James McCoolcommited on
Enhance data loading functionality by introducing a flag to track portfolio loading status. This allows for better handling of session state when loading from Paydirt DB, ensuring the portfolio is correctly managed in the session.
d80e5ce
James McCoolcommited on
I think this should work
c880551
James McCoolcommited on
Add print statements to display the first 10 rows of portfolio DataFrames for both Draftkings and Fanduel lineups during data load.
8f50be4
James McCoolcommited on
coinvert to df first, then csv
00737ec
James McCoolcommited on
checking more
fc0fbd1
James McCoolcommited on
checking
4c7f0de
James McCoolcommited on
reg to calssic
bef746a
James McCoolcommited on
Adding button
d57c3c2
James McCoolcommited on
adding secrets
bf84db5
James McCoolcommited on
Adding some database support
d323d4b
James McCoolcommited on
chaning for to while for lineup add
ff6fb00
James McCoolcommited on
Update salary input fields in Manage Portfolio section to allow for a wider range of values, enhancing user flexibility in setting exposure parameters.
42075ca
James McCoolcommited on
Update salary field references in exposure_spread.py to ensure consistency in salary eligibility checks for player replacements.
7361afe
James McCoolcommited on
adjusting salary declaration in exposure increase
c645802
James McCoolcommited on
Add update-pm-files.ps1 script for EC2 Instance Connect file updates and enhance exposure_spread.py with salary eligibility checks for player replacements
b7931c0
James McCoolcommited on
Lets try this
b31b495
James McCoolcommited on
checking again
ba0ffb8
James McCoolcommited on
checking to see if this fixes the exposure increase issue
286b8a7
James McCoolcommited on
Refactor SE Score calculation in predict_dupes function to adjust the order of operations, ensuring player diversity is factored in after the score computation. This change enhances the accuracy of the SE Score while maintaining code clarity.
4bde0fc
James McCoolcommited on
Refactor SE Score calculation in predict_dupes function to incorporate player diversity, enhancing the accuracy of the score. Removed redundant print statement for cleaner output.
d2deb1d
James McCoolcommited on
Update excluded_cols list in app.py to include 'SE Score' for improved data handling in portfolio management.
920b00d
James McCoolcommited on
Add print statement to display the top 10 SE Scores in predict_dupes function for debugging purposes
2650424
James McCoolcommited on
Adding SE score
a1c389d
James McCoolcommited on
ping
8d70403
James McCoolcommited on
Refactor exposure_spread function to improve player replacement logic by implementing a while loop for better handling of row selections and ensuring replacements are made only when necessary. This enhances the clarity and efficiency of the code.
066fad7
James McCoolcommited on
Enhance exposure_spread function by refining replacement logic for players based on exposure targets. This update improves the handling of player replacements, ensuring that changes are only applied when necessary and maintaining clarity in the code structure.
fca5d51
James McCoolcommited on
Remove unnecessary break statement in exposure_spread function to enhance lineup modification logic and improve code clarity.
556da92
James McCoolcommited on
Refactor exposure_spread function to streamline lineup modification logic, ensuring that changes are applied correctly based on the current change counter and improving overall code clarity.
db012c7
James McCoolcommited on
Refactor exposure_spread function to improve list comparison for comparable_player_list, ensuring clarity and consistency in checks for non-empty lists.
5eac9be
James McCoolcommited on
fixing exposure management
72d1643
James McCoolcommited on
FLEX to UTIL for NHL stacking on FD
5637f7e
James McCoolcommited on
Refactor stacking logic in app.py to conditionally apply calculations for 'Stack' and 'Size' columns based on their existence in the DataFrame. This change improves code robustness and prevents potential errors during data processing.
a20fb3f
James McCoolcommited on
Add MMA stacking configuration and enhance error handling in position export logic in app.py. This update introduces new player positions for MMA and improves the robustness of the data processing by adding exception handling for sorting and deduplication operations.