.
This commit is contained in:
@@ -55,15 +55,11 @@ class NassiShneidermanDiagram:
|
|||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
|
def convert_to_image(self, output_path: str, on_conflict: Overwrite_behaviour=OB.SKIP) -> bool:
|
||||||
number_of_item = 1
|
i = 0
|
||||||
for scope in self.function_scopes:
|
for scope in self.function_scopes:
|
||||||
#this shizz is not my fault. Ole was the stupid one
|
cancel = one_line_progress_meter('Progress', i+1, len(self.function_scopes), '-PROGRESSBAR-')
|
||||||
number_of_item += 1
|
|
||||||
try:
|
|
||||||
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
|
|
||||||
if not cancel:
|
if not cancel:
|
||||||
return False
|
return False
|
||||||
#I am the one responsible from here on
|
|
||||||
|
|
||||||
filepath = f"{output_path}/{scope.name}"
|
filepath = f"{output_path}/{scope.name}"
|
||||||
filepath = self.check_conflicts(filepath, on_conflict)
|
filepath = self.check_conflicts(filepath, on_conflict)
|
||||||
@@ -78,6 +74,7 @@ class NassiShneidermanDiagram:
|
|||||||
except:
|
except:
|
||||||
logging.error(f"Failed to save image {filepath}. Unknown error")
|
logging.error(f"Failed to save image {filepath}. Unknown error")
|
||||||
raise
|
raise
|
||||||
|
i+=1
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def load_from_file(self, filepath:str, itp_custom_tags: Optional[Dict[str, List[str]]]):
|
def load_from_file(self, filepath:str, itp_custom_tags: Optional[Dict[str, List[str]]]):
|
||||||
|
|||||||
Reference in New Issue
Block a user