removed script
This commit is contained in:
@@ -42,7 +42,7 @@ class Command(BaseCommand):
|
||||
|
||||
|
||||
#fetching the file list
|
||||
directory = input_with_timeout(f"Please enter the path to the directory containing the csv files [{previous_choice}]: ", 30)
|
||||
directory = input_with_timeout(f"[{current_time()}] Please enter the path to the directory containing the csv files [{previous_choice}]: ", 30)
|
||||
if not directory:
|
||||
directory = previous_choice
|
||||
|
||||
@@ -53,8 +53,8 @@ class Command(BaseCommand):
|
||||
|
||||
|
||||
csv_files = glob.glob(os.path.join(directory, '*csv*'))
|
||||
self.stdout.write(f"Files found: {len(csv_files)}.")
|
||||
self.stdout.write("Populating the file database...")
|
||||
self.stdout.write(f"[{current_time()}] Files found: {len(csv_files)}.")
|
||||
self.stdout.write(f"[{current_time()}] Populating the file database...")
|
||||
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ class Command(BaseCommand):
|
||||
if created:
|
||||
new_files_count += 1
|
||||
#show how many duplicates were already in db
|
||||
self.stdout.write(f"File database populated. \n{len(csv_files) - new_files_count} were already in the database.")
|
||||
self.stdout.write(f"[{current_time()}] File database populated. \n{len(csv_files) - new_files_count} were already in the database.")
|
||||
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class Command(BaseCommand):
|
||||
for catalog_file in catalog_files:
|
||||
|
||||
if catalog_file.status == 'INGESTED':
|
||||
self.stdout.write(f"[{current_time()}]Skipping {catalog_file.name} as it is already ingested.")
|
||||
self.stdout.write(f"[{current_time()}] Skipping {catalog_file.name} as it is already ingested.")
|
||||
continue
|
||||
|
||||
file_path = os.path.join(directory, catalog_file.name)
|
||||
|
Reference in New Issue
Block a user