See #6570. Add a button to refresh an imported csv file

Now the imported csv filepath is stored so it is possible to refresh the cost schedule without the need of reimporting it
This commit is contained in:
Massimo Fabbro
2025-04-18 08:07:16 +02:00
committed by Massimo Fabbro
parent 0608f92bc4
commit f8e52c8a12
8 changed files with 117 additions and 4 deletions
+4
View File
@@ -127,6 +127,10 @@ class Csv2Ifc:
self.parse_csv()
self.create_ifc()
def refresh(self) -> None:
self.parse_csv()
self.create_cost_items(self.cost_items)
def parse_csv(self) -> None:
"""Fill ``headers`` and ``cost_items`` based on data from csv file."""
self.cost_items = []