elastic search fixes

This commit is contained in:
Alex
2023-09-30 15:25:31 +01:00
parent 347cfe253f
commit d85eb83ea2
2 changed files with 14 additions and 12 deletions

View File

@@ -21,7 +21,9 @@ except FileExistsError:
def metadata_from_filename(title):
return {'title': title}
store = title.split('/')
store = store[1] + '/' + store[2]
return {'title': title, 'store': store}
def generate_random_string(length):