|
@@ -44,7 +44,7 @@ def create(config_file: str = "database/CARLO.json"):
|
|
continue
|
|
continue
|
|
|
|
|
|
f.write(f"del {cfg.logs_dir}\\{current_table['dest']}*.* /Q /F >nul 2>nul\n\n")
|
|
f.write(f"del {cfg.logs_dir}\\{current_table['dest']}*.* /Q /F >nul 2>nul\n\n")
|
|
- f.write('if "%1"=="" goto :increment\n')
|
|
|
|
|
|
+ f.write('if not "%1"=="" goto :increment\n')
|
|
f.write("\n:full\n")
|
|
f.write("\n:full\n")
|
|
f.write(f' call sql_query.bat "TRUNCATE TABLE {full_table_name}"\n')
|
|
f.write(f' call sql_query.bat "TRUNCATE TABLE {full_table_name}"\n')
|
|
|
|
|