mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This is a preparatory commit for using isort for sorting all of our imports, merging changes to files where we can easily review the changes as something we're happy with. These are also files with relatively little active development, which means we don't expect much merge conflict risk from these changes.
15 lines
334 B
Python
15 lines
334 B
Python
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()
|