mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+Benutzer filter, u. Spalte
This commit is contained in:
@@ -55,7 +55,15 @@ func CleanupExpired(app core.App) {
|
||||
for _, record := range records {
|
||||
filename := record.GetString(dbmodels.EXPORT_FILENAME_FIELD)
|
||||
if filename == "" {
|
||||
filename = record.Id + ".xml"
|
||||
exportType := record.GetString(dbmodels.EXPORT_TYPE_FIELD)
|
||||
if exportType == "" {
|
||||
exportType = dbmodels.EXPORT_TYPE_DATA
|
||||
}
|
||||
kind := "data"
|
||||
if exportType == dbmodels.EXPORT_TYPE_FILES {
|
||||
kind = "files"
|
||||
}
|
||||
filename = buildExportFilename(kind, record.Id)
|
||||
}
|
||||
filename = filepath.Base(filename)
|
||||
_ = os.Remove(filepath.Join(exportDir, filename))
|
||||
|
||||
Reference in New Issue
Block a user