remove dead code

This commit is contained in:
Yax 2022-11-29 15:56:13 +01:00
parent 9912ead516
commit 1df8d3f8a4

View file

@ -78,14 +78,7 @@ def submit_new_comment(comment):
subject = f"STACOSYS {site_name}" subject = f"STACOSYS {site_name}"
if mailer.send(subject, email_body): if mailer.send(subject, email_body):
logger.debug("new comment processed") logger.debug("new comment processed")
# save notification datetime # save notification datetime
dao.notify_comment(comment) dao.notify_comment(comment)
else: else:
logger.warning("rescheduled. send mail failure %s", subject) logger.warning("rescheduled. send mail failure %s", subject)
@background.callback
def submit_new_comment_callback(future):
# TODO use future to log submit status
logger.debug(future)