File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ def refresh():
119
119
md = metadata_handler ( filename )
120
120
md .associate_to_db (etho_db )
121
121
md .save ()
122
+ meta_db .refresh_all_info ()
122
123
return {'success' : True , 'message' : 'Metadata succefully associated.' }
123
124
124
125
@@ -169,6 +170,12 @@ def close(exit_status=0):
169
170
#DB_PATH points to the SQLlite db files. It can (should) be mounted as readonly as this never writes there
170
171
#MD_PATH points to the metadata files. This will also contain the csv file with a summary of the SQLite dbs. Must be writable.
171
172
173
+
174
+ try :
175
+ os .makedirs (os .path .join (MD_PATH , "db/unnamed" ))
176
+ except FileExistsError :
177
+ logging .info ("The folder structure is correct." )
178
+
172
179
etho_db = db_organiser (DB_PATH , refresh = REFRESH_DB , csv_path = MD_PATH )
173
180
meta_db = metadata_crawler (path = MD_PATH )
174
181
You can’t perform that action at this time.
0 commit comments