mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -14,23 +14,23 @@ class Command(BaseCommand):
|
||||
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
parser.add_argument(
|
||||
'-w',
|
||||
'--weeks',
|
||||
dest='delta_weeks',
|
||||
"-w",
|
||||
"--weeks",
|
||||
dest="delta_weeks",
|
||||
default=5,
|
||||
type=int,
|
||||
help="Limiting value of how old the file can be.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'-f',
|
||||
'--for-real',
|
||||
action='store_true',
|
||||
"-f",
|
||||
"--for-real",
|
||||
action="store_true",
|
||||
help="Actually remove the files from the storage.",
|
||||
)
|
||||
|
||||
def handle(self, *args: Any, **options: Any) -> None:
|
||||
delta_weeks = options['delta_weeks']
|
||||
delta_weeks = options["delta_weeks"]
|
||||
print(f"Deleting unclaimed attached files older than {delta_weeks} weeks")
|
||||
|
||||
# print the list of files that are going to be removed
|
||||
|
||||
Reference in New Issue
Block a user