mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Update prune.py
This commit is contained in:
parent
13100ab9b3
commit
262848d647
1 changed files with 2 additions and 0 deletions
|
|
@ -749,6 +749,8 @@ async def prune_data(form_data: PruneDataForm, dry_run: bool = True, user=Depend
|
||||||
If dry_run=True (default), returns preview counts without deleting anything.
|
If dry_run=True (default), returns preview counts without deleting anything.
|
||||||
If dry_run=False, performs actual deletion and returns True on success.
|
If dry_run=False, performs actual deletion and returns True on success.
|
||||||
"""
|
"""
|
||||||
|
log.info(f"DEBUG: dry_run parameter = {dry_run}")
|
||||||
|
log.info(f"DEBUG: form_data.dry_run = {form_data.dry_run}")
|
||||||
try:
|
try:
|
||||||
if dry_run:
|
if dry_run:
|
||||||
log.info("Starting data pruning preview (dry run)")
|
log.info("Starting data pruning preview (dry run)")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue