MOD:init:4731
Showing
5 changed files
with
5 additions
and
5 deletions
... | @@ -162,7 +162,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -162,7 +162,7 @@ class Command(BaseCommand, LoggerMixin): |
162 | 162 | ||
163 | @staticmethod | 163 | @staticmethod |
164 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): | 164 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): |
165 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S') | 165 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H_%M_%S') |
166 | new_name = '{0}_{1}'.format(time_stamp, name) | 166 | new_name = '{0}_{1}'.format(time_stamp, name) |
167 | img_save_path = os.path.join(img_output_dir, new_name) | 167 | img_save_path = os.path.join(img_output_dir, new_name) |
168 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | 168 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | ... | ... |
... | @@ -320,7 +320,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -320,7 +320,7 @@ class Command(BaseCommand, LoggerMixin): |
320 | true_file_set.add(os_error_filename_set.pop()) | 320 | true_file_set.add(os_error_filename_set.pop()) |
321 | for name in true_file_set: | 321 | for name in true_file_set: |
322 | time.sleep(10) | 322 | time.sleep(10) |
323 | unique_folder_name = '{0}_{1}'.format(datetime.now().strftime('%Y-%m-%d_%H:%M:%S'), name) | 323 | unique_folder_name = '{0}_{1}'.format(datetime.now().strftime('%Y-%m-%d_%H_%M_%S'), name) |
324 | path = os.path.join(input_dir, name) | 324 | path = os.path.join(input_dir, name) |
325 | 325 | ||
326 | try: | 326 | try: | ... | ... |
... | @@ -272,7 +272,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -272,7 +272,7 @@ class Command(BaseCommand, LoggerMixin): |
272 | 272 | ||
273 | @staticmethod | 273 | @staticmethod |
274 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir, seperate_dir_map): | 274 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir, seperate_dir_map): |
275 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S') | 275 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H_%M_%S') |
276 | new_name = '{0}_{1}'.format(time_stamp, name) | 276 | new_name = '{0}_{1}'.format(time_stamp, name) |
277 | img_save_path = os.path.join(img_output_dir, new_name) | 277 | img_save_path = os.path.join(img_output_dir, new_name) |
278 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | 278 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | ... | ... |
... | @@ -186,7 +186,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -186,7 +186,7 @@ class Command(BaseCommand, LoggerMixin): |
186 | 186 | ||
187 | @staticmethod | 187 | @staticmethod |
188 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): | 188 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): |
189 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S') | 189 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H_%M_%S') |
190 | new_name = '{0}_{1}'.format(time_stamp, name) | 190 | new_name = '{0}_{1}'.format(time_stamp, name) |
191 | img_save_path = os.path.join(img_output_dir, new_name) | 191 | img_save_path = os.path.join(img_output_dir, new_name) |
192 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | 192 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | ... | ... |
... | @@ -409,7 +409,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -409,7 +409,7 @@ class Command(BaseCommand, LoggerMixin): |
409 | 409 | ||
410 | @staticmethod | 410 | @staticmethod |
411 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): | 411 | def get_path(name, img_output_dir, wb_output_dir, pdf_output_dir): |
412 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S') | 412 | time_stamp = datetime.now().strftime('%Y-%m-%d_%H_%M_%S') |
413 | new_name = '{0}_{1}'.format(time_stamp, name) | 413 | new_name = '{0}_{1}'.format(time_stamp, name) |
414 | img_save_path = os.path.join(img_output_dir, new_name) | 414 | img_save_path = os.path.join(img_output_dir, new_name) |
415 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | 415 | pdf_save_path = os.path.join(pdf_output_dir, new_name) | ... | ... |
-
Please register or sign in to post a comment