Skip to content
Snippets Groups Projects
Commit 86d9569e authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Fix invalid format specifier

parent 5ecfce58
No related branches found
No related tags found
6 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!51Fix acct create wait,!39WIP:Feat cod rmq,!38WIP: Feat cod rmq,!24Add notify user agent
......@@ -48,7 +48,7 @@ def notify_user(ch, method, properties, body):
if args.dry_run:
logger.info(f'smtp = smtplib.SMTP({mail_cfg.Server})')
logger.info(f'smtp.sendmail({mail_cfg.Sender}, {receiver}, message)')
logger.info(f"table.insert({'username': {username}, 'count': 1, 'sent_at': {datetime.now()}})")
logger.info(f"table.insert({{'username': {username}, 'count': 1, 'sent_at': datetime.now()}})")
else:
smtp = smtplib.SMTP(mail_cfg.Server)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment