Skip to content

Commit 596fb78

Browse files
committed
fixed last bug when exporting the files. this refs #241
1 parent 08e43eb commit 596fb78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

notebooks/__code/rename_files/rename_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def demo_output_file_name(self):
323323
new_name = self.box6.children[1].value
324324
self.output_ui_3.children[1].value = new_name
325325

326+
self.ready_to_output = True
327+
326328
return
327329

328330
old_index_separator = self.get_old_index_separator()
@@ -424,8 +426,7 @@ def generate_new_file_name(self, old_file_name,
424426
# _index = int(_name_separated[-1]) + offset
425427
# print(f"Parsed index: {_index}")
426428
if suffix_flag:
427-
new_name = prefix + new_index_separator + \
428-
'{:0{}}'.format(file_index, new_number_of_digits) + \
429+
new_name = prefix + \
429430
new_index_separator + suffix + ext
430431
else:
431432
new_name = prefix + new_index_separator + \

0 commit comments

Comments
 (0)