Commit 773226ef authored by lixiaofang's avatar lixiaofang

添加日志

parent 511fd39d
......@@ -361,7 +361,6 @@ def judge_offset_partition_have_consum(card_info=None, offset=0, partition=0):
def get_current_card_content_level(card_info=[]):
try:
# 判断当前卡片的等级
if card_info['card_status'] == 'answer':
sql = 'select level from api_answer where id = %s ' % (card_info['card_id'])
......@@ -383,6 +382,8 @@ def get_current_card_content_level(card_info=[]):
return int(data[0][0])
else:
return 0
else:
return 0
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment