Skip to content
Snippets Groups Projects
Commit 78fb9c1f authored by Clemens Hutter's avatar Clemens Hutter
Browse files

tiny bug

parent 5adb626f
No related branches found
No related tags found
1 merge request!24Bug duplicated linebbox
Pipeline #9366 failed
...@@ -16,7 +16,7 @@ AB_main_folder_database = os.path.join(data_folder, "AB") ...@@ -16,7 +16,7 @@ AB_main_folder_database = os.path.join(data_folder, "AB")
########################### ###########################
log_file_for_duplicated_textlines = os.path.join(data_folder, "logs", "removed_duplicated_textlines.csv") log_file_for_duplicated_textlines = os.path.join(data_folder, "logs", "removed_duplicated_textlines.csv")
class XML_Versions: class XML_Versions:
four_corrected_xml = datetime(year=2019, month=11, day=19) four_corrected_xml = datetime(year=2019, month=11, day=20)
############ ############
## Trained classification related constants ## Trained classification related constants
......
...@@ -268,7 +268,7 @@ def addto_tar(input_file, folder_database, name_file): ...@@ -268,7 +268,7 @@ def addto_tar(input_file, folder_database, name_file):
year = input_file.split('/')[1] year = input_file.split('/')[1]
name_tar = folder_database + '/' + str(year) +'/' + name_file + '.tar.gz' name_tar = folder_database + '/' + str(year) +'/' + name_file + '.tar.gz'
if os.path.isfile(name_tar): if os.path.isfile(name_tar):
list_files_intar = get_contained_file_names(year, folder_database, name_file)[0] list_files_intar = get_contained_file_names(year, folder_database, name_file)
# Just to check if the file exists already inside the tar. In that case, we # Just to check if the file exists already inside the tar. In that case, we
# first extract everything, except for it, and tar everything again # first extract everything, except for it, and tar everything again
if input_file in list_files_intar: if input_file in list_files_intar:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment