From d73c5f8a52bf08943df6fa55f775ddd4351b3226 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 20 May 2024 13:01:51 +0200 Subject: [PATCH] Use options correctly The age for notes and revisions was swapped --- hedgedoc-expire.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hedgedoc-expire.py b/hedgedoc-expire.py index f6e3c74..98fc9ae 100644 --- a/hedgedoc-expire.py +++ b/hedgedoc-expire.py @@ -288,8 +288,8 @@ def main(): args = parser.parse_args() config = Config() - config.note_age = timedelta(days=args.revisions) - config.revision_age = timedelta(days=args.notes) + config.note_age = timedelta(days=args.notes) + config.revision_age = timedelta(days=args.revisions) config.verbose = args.verbose mail = EmailSender(config.smtp_hostname, config.smtp_port, config.smtp_username, config.smtp_password, config.smtp_from)