forked from CCCHH/hedgedoc-expire
Use options correctly
The age for notes and revisions was swapped
This commit is contained in:
parent
5575cc9156
commit
d73c5f8a52
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue