Relative days

[skip ci]
This commit is contained in:
shamoon
2024-04-23 01:33:00 -07:00
parent e58c2d4bbf
commit e4092d2ad1
6 changed files with 24 additions and 6 deletions

View File

@@ -1559,6 +1559,8 @@ class UiSettingsView(GenericAPIView):
"backend_setting": settings.ENABLE_UPDATE_CHECK,
}
ui_settings["trash_delay"] = settings.EMPTY_TRASH_DELAY
general_config = GeneralConfig()
ui_settings["app_title"] = settings.APP_TITLE

View File

@@ -1166,4 +1166,4 @@ if DEBUG: # pragma: no cover
###############################################################################
# Soft Delete
###############################################################################
EMPTY_TRASH_DELAY = max(__get_int("PAPERLESS_SOFT_DELETE_DELAY", 30), 1)
EMPTY_TRASH_DELAY = max(__get_int("PAPERLESS_EMPTY_TRASH_DELAY", 30), 1)