Commit History

ah yeah
649f608

James McCool commited on

Add button for loading projections from database in Data Load tab
14840d6

James McCool commited 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 McCool commited 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 McCool commited on

ping
2e2d30e

James McCool commited 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 McCool commited 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 McCool commited on

Sure
2b8ea88

James McCool commited on

ping
44c87c6

James McCool commited 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 McCool commited 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 McCool commited 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 McCool commited on

added some database persistence
9e77e56

James McCool commited 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 McCool commited 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 McCool commited on

portfolio bool
3cdab9b

James McCool commited 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 McCool commited on

I think this should work
c880551

James McCool commited on

Add print statements to display the first 10 rows of portfolio DataFrames for both Draftkings and Fanduel lineups during data load.
8f50be4

James McCool commited on

coinvert to df first, then csv
00737ec

James McCool commited on

checking more
fc0fbd1

James McCool commited on

checking
4c7f0de

James McCool commited on

reg to calssic
bef746a

James McCool commited on

Adding button
d57c3c2

James McCool commited on

adding secrets
bf84db5

James McCool commited on

Adding some database support
d323d4b

James McCool commited on

chaning for to while for lineup add
ff6fb00

James McCool commited 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 McCool commited on

Update salary field references in exposure_spread.py to ensure consistency in salary eligibility checks for player replacements.
7361afe

James McCool commited on

adjusting salary declaration in exposure increase
c645802

James McCool commited 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 McCool commited on

Lets try this
b31b495

James McCool commited on

checking again
ba0ffb8

James McCool commited on

checking to see if this fixes the exposure increase issue
286b8a7

James McCool commited 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 McCool commited 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 McCool commited on

Update excluded_cols list in app.py to include 'SE Score' for improved data handling in portfolio management.
920b00d

James McCool commited on

Add print statement to display the top 10 SE Scores in predict_dupes function for debugging purposes
2650424

James McCool commited on

Adding SE score
a1c389d

James McCool commited on

ping
8d70403

James McCool commited 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 McCool commited 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 McCool commited on

Remove unnecessary break statement in exposure_spread function to enhance lineup modification logic and improve code clarity.
556da92

James McCool commited 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 McCool commited 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 McCool commited on

fixing exposure management
72d1643

James McCool commited on

FLEX to UTIL for NHL stacking on FD
5637f7e

James McCool commited 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 McCool commited 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.
5dedddf

James McCool commited on

recent changes
ed824ef

James McCool commited on