mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Generated by `pyupgrade --py3-plus --keep-percent-format` on all our Python code except `zthumbor` and `zulip-ec2-configure-interfaces`, followed by manual indentation fixes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
13 lines
294 B
Python
13 lines
294 B
Python
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()
|