remove dead code
This commit is contained in:
@@ -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)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user