mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
- Add daily retention job that deletes old channel messages, DMs, and advertisements based on configurable age threshold - Add GET/POST /api/retention-settings endpoints - Extend cleanup_old_messages() to optionally include DMs and adverts - Wire up APScheduler in create_app() (also enables existing archiving and contact cleanup schedulers that were never started in v2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
421 B
Python
22 lines
421 B
Python
"""
|
|
Archive module - handles message archiving and management
|
|
"""
|
|
|
|
from app.archiver.manager import (
|
|
archive_messages,
|
|
list_archives,
|
|
get_archive_path,
|
|
schedule_daily_archiving,
|
|
schedule_retention,
|
|
init_retention_schedule
|
|
)
|
|
|
|
__all__ = [
|
|
'archive_messages',
|
|
'list_archives',
|
|
'get_archive_path',
|
|
'schedule_daily_archiving',
|
|
'schedule_retention',
|
|
'init_retention_schedule'
|
|
]
|