zulip/zerver/management/commands/archive_messages.py

14 lines
333 B
Python
Raw Normal View History

from __future__ import absolute_import
from typing import Any
from django.core.management.base import BaseCommand
from zerver.lib.retention import archive_messages, clean_archived_data
class Command(BaseCommand):
def handle(self, *args: Any, **options: str) -> None:
clean_archived_data()
archive_messages()