mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
committed by
Tim Abbott
parent
79945622bc
commit
be179b2b6b
@@ -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(
|
||||||
|
Reference in New Issue
Block a user