saved my self esteem @Oleting :(

This commit is contained in:
weckyy702
2021-01-24 21:54:08 +01:00
parent 27af64ec82
commit a41cc0369d

View File

@@ -57,11 +57,13 @@ class NassiShneidermanDiagram:
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 number_of_item = 1
for scope in self.function_scopes: for scope in self.function_scopes:
#this shizz is not my fault. Ole was the stupid one
number_of_item += 1 number_of_item += 1
try: try:
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-') 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)