@@ -52,9 +52,7 @@ def process_xls(target_file) -> Dict[str, Any]:
5252 content [sheet_name ].append (new_row )
5353 row_count += 1
5454
55- LOGGER .debug (
56- T ("coal.services.dataset.sheet_processed" ).format (sheet_name = sheet_name , rows = row_count )
57- )
55+ LOGGER .debug (T ("coal.services.dataset.sheet_processed" ).format (sheet_name = sheet_name , rows = row_count ))
5856 return content
5957
6058
@@ -87,9 +85,7 @@ def process_csv(target_file) -> Dict[str, Any]:
8785 content [current_filename ].append (new_row )
8886 row_count += 1
8987
90- LOGGER .debug (
91- T ("coal.services.dataset.csv_processed" ).format (file_name = current_filename , rows = row_count )
92- )
88+ LOGGER .debug (T ("coal.services.dataset.csv_processed" ).format (file_name = current_filename , rows = row_count ))
9389 return content
9490
9591
@@ -107,9 +103,7 @@ def process_json(target_file) -> Dict[str, Any]:
107103 else :
108104 item_count = 1
109105
110- LOGGER .debug (
111- T ("coal.services.dataset.json_processed" ).format (file_name = current_filename , items = item_count )
112- )
106+ LOGGER .debug (T ("coal.services.dataset.json_processed" ).format (file_name = current_filename , items = item_count ))
113107 return content
114108
115109
@@ -121,9 +115,7 @@ def process_txt(target_file) -> Dict[str, Any]:
121115 content [current_filename ] = "" .join (line for line in _file )
122116
123117 line_count = content [current_filename ].count ("\n " ) + 1
124- LOGGER .debug (
125- T ("coal.services.dataset.text_processed" ).format (file_name = current_filename , lines = line_count )
126- )
118+ LOGGER .debug (T ("coal.services.dataset.text_processed" ).format (file_name = current_filename , lines = line_count ))
127119 return content
128120
129121
@@ -140,6 +132,7 @@ def timed_read_file(file_name, file):
140132 else :
141133 content .update (process_txt (file ))
142134 return content
135+
143136 return timed_read_file (file_name , file )
144137
145138
0 commit comments