Spaces:
Build error
Build error
fix header
Browse files
app.py
CHANGED
|
@@ -92,13 +92,14 @@ def process(file_name, embed_html_all):
|
|
| 92 |
num_results = 0
|
| 93 |
header = False
|
| 94 |
for top in tops:
|
| 95 |
-
if not header:
|
| 96 |
-
writer.writerow(list(top.keys()))
|
| 97 |
if num_results > max_output:
|
| 98 |
break
|
| 99 |
|
| 100 |
file = os.path.splitext(os.path.basename(top))[0]
|
| 101 |
if file in dict_catalog:
|
|
|
|
|
|
|
|
|
|
| 102 |
writer.writerow(dict_catalog[file].values())
|
| 103 |
else:
|
| 104 |
writer.writerow([file, "no metadata provided"])
|
|
|
|
| 92 |
num_results = 0
|
| 93 |
header = False
|
| 94 |
for top in tops:
|
|
|
|
|
|
|
| 95 |
if num_results > max_output:
|
| 96 |
break
|
| 97 |
|
| 98 |
file = os.path.splitext(os.path.basename(top))[0]
|
| 99 |
if file in dict_catalog:
|
| 100 |
+
if not header:
|
| 101 |
+
writer.writerow(list(dict_catalog[file].keys()))
|
| 102 |
+
header = True
|
| 103 |
writer.writerow(dict_catalog[file].values())
|
| 104 |
else:
|
| 105 |
writer.writerow([file, "no metadata provided"])
|