Use options correctly

The age for notes and revisions was swapped
This commit is contained in:
Stefan Bethke 2024-05-20 13:01:51 +02:00
parent 5575cc9156
commit d73c5f8a52

View file

@ -288,8 +288,8 @@ def main():
args = parser.parse_args() args = parser.parse_args()
config = Config() config = Config()
config.note_age = timedelta(days=args.revisions) config.note_age = timedelta(days=args.notes)
config.revision_age = timedelta(days=args.notes) config.revision_age = timedelta(days=args.revisions)
config.verbose = args.verbose config.verbose = args.verbose
mail = EmailSender(config.smtp_hostname, config.smtp_port, config.smtp_username, config.smtp_password, mail = EmailSender(config.smtp_hostname, config.smtp_port, config.smtp_username, config.smtp_password,
config.smtp_from) config.smtp_from)