Fix log format

This commit is contained in:
Yax 2015-09-20 12:39:09 +02:00
parent 5f97260b7b
commit c461c5fa49
2 changed files with 4 additions and 4 deletions

View file

@ -121,7 +121,7 @@ def report():
def accept_comment():
try:
id = request.args.get('comment', 0)
id = request.args.get('comment', '')
secret = request.args.get('secret', '')
if secret != config.SECRET:
@ -141,7 +141,7 @@ def accept_comment():
def reject_comment():
try:
id = request.args.get('comment', 0)
id = request.args.get('comment', '')
secret = request.args.get('secret', '')
if secret != config.SECRET:

View file

@ -175,7 +175,7 @@ def late_reject_comment(id):
# delete Comment row
comment.delete_instance()
logger.info('late reject comment: %d' % id)
logger.info('late reject comment: %s' % id)
def late_accept_comment(id):
@ -190,7 +190,7 @@ def late_accept_comment(id):
comment.published = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
comment.save()
logger.info('late accept comment: %d' % id)
logger.info('late accept comment: %s' % id)
def get_email_metadata(message):