mirror of https://github.com/zulip/zulip.git
delete_old_unclaimed_attachments: Update docs on default max age.
42f1cb3444
updated the default up, from 1 week to 5 weeks, but did
not adjust the documentation.
This commit is contained in:
parent
ef5fee4778
commit
f3cd1c4b08
|
@ -13,7 +13,7 @@ from zerver.models import ArchivedAttachment, Attachment, get_old_unclaimed_atta
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = """Remove unclaimed attachments from storage older than a supplied
|
help = """Remove unclaimed attachments from storage older than a supplied
|
||||||
numerical value indicating the limit of how old the attachment can be.
|
numerical value indicating the limit of how old the attachment can be.
|
||||||
One week is taken as the default value."""
|
The default is five weeks."""
|
||||||
|
|
||||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -22,7 +22,7 @@ class Command(BaseCommand):
|
||||||
dest="delta_weeks",
|
dest="delta_weeks",
|
||||||
default=5,
|
default=5,
|
||||||
type=int,
|
type=int,
|
||||||
help="Limiting value of how old the file can be.",
|
help="How long unattached attachments are preserved; defaults to 5 weeks.",
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
Loading…
Reference in New Issue