Commit 298095ef authored by lixiaofang's avatar lixiaofang

add

parent 14f82032
...@@ -375,9 +375,11 @@ def get_current_card_content_level(card_info=[]): ...@@ -375,9 +375,11 @@ def get_current_card_content_level(card_info=[]):
sql = 'select content_level from api_diary where id = %s ' % (card_info['card_id']) sql = 'select content_level from api_diary where id = %s ' % (card_info['card_id'])
zhengxing_cursor.execute(sql) zhengxing_cursor.execute(sql)
data = list(zhengxing_cursor.fetchall()) data = list(zhengxing_cursor.fetchall())
logging.info("get_content_level_card_info:%s" % card_info)
if len(data) > 0: if len(data) > 0:
return int(data[0][0]) return int(data[0][0])
else:
return 0
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) 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