mirror of
				https://github.com/RolandWH/SIPPCompare.git
				synced 2025-11-04 12:02:11 +00:00 
			
		
		
		
	additional comments
This commit is contained in:
		@@ -80,6 +80,7 @@ class DBHandler:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return plat_name_list
 | 
					        return plat_name_list
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Write updated platform data to DB when changes are saved
 | 
				
			||||||
    def write_platforms(self, plat_list: list[Platform]):
 | 
					    def write_platforms(self, plat_list: list[Platform]):
 | 
				
			||||||
        for i in range(len(plat_list)):
 | 
					        for i in range(len(plat_list)):
 | 
				
			||||||
            platforms_data = [
 | 
					            platforms_data = [
 | 
				
			||||||
@@ -242,10 +243,12 @@ class DBHandler:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return user_details_dict
 | 
					        return user_details_dict
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Toggle whether fees for this platform should be calculated
 | 
				
			||||||
    def toggle_platform_state(self, index: int, state: bool):
 | 
					    def toggle_platform_state(self, index: int, state: bool):
 | 
				
			||||||
        self.cur.execute("UPDATE tblPlatforms SET IsEnabled = ? WHERE PlatformID = ?", [state, index])
 | 
					        self.cur.execute("UPDATE tblPlatforms SET IsEnabled = ? WHERE PlatformID = ?", [state, index])
 | 
				
			||||||
        self.conn.commit()
 | 
					        self.conn.commit()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Remove a platform from the DB - update the IDs to keep them sequential
 | 
				
			||||||
    def remove_platform(self, index: int):
 | 
					    def remove_platform(self, index: int):
 | 
				
			||||||
        tbl_list = ["tblPlatforms", "tblFlatPlatFees", "tblFlatDealFees", "tblFundPlatFee"]
 | 
					        tbl_list = ["tblPlatforms", "tblFlatPlatFees", "tblFlatDealFees", "tblFundPlatFee"]
 | 
				
			||||||
        for tbl in tbl_list:
 | 
					        for tbl in tbl_list:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user