Spaces:
Runtime error
Runtime error
Update user_center.py
Browse files- user_center.py +3 -3
user_center.py
CHANGED
@@ -29,15 +29,15 @@ def read_ui(username,password):
|
|
29 |
for i in range(len(report1)):
|
30 |
line1=report1[i]
|
31 |
results=results+'第'+str(i+1)+'次量表测试 '+'日期:'+str(line1[1])+' 时间:'+str(line1[2])+'\n'
|
32 |
-
results=results+'量表分数:'+str(line1[3])+'
|
33 |
results+='\n'
|
34 |
|
35 |
|
36 |
for i in range (len(report2)):
|
37 |
line2=report2[i]
|
38 |
results=results+'第'+str(i+1)+'次咨询 '+'日期:'+str(line2[1])+' 时间:'+str(line2[2])+'\n'
|
39 |
-
results=results+'睡眠情况:'+str(line2[3])+'
|
40 |
-
results=results+'兴趣爱好分数:'+str(line2[9])+'
|
41 |
|
42 |
elif(is_usn):
|
43 |
results='密码错误,无法读取报告数据。'
|
|
|
29 |
for i in range(len(report1)):
|
30 |
line1=report1[i]
|
31 |
results=results+'第'+str(i+1)+'次量表测试 '+'日期:'+str(line1[1])+' 时间:'+str(line1[2])+'\n'
|
32 |
+
results=results+'量表分数:'+str(line1[3])+'\n结果解释:'+line1[4]+'\n建议:'+line1[5]+'\n'
|
33 |
results+='\n'
|
34 |
|
35 |
|
36 |
for i in range (len(report2)):
|
37 |
line2=report2[i]
|
38 |
results=results+'第'+str(i+1)+'次咨询 '+'日期:'+str(line2[1])+' 时间:'+str(line2[2])+'\n'
|
39 |
+
results=results+'睡眠情况:'+str(line2[3])+'\n食欲情况:'+str(line2[4])+'\n情绪情况:'+str(line2[5])+'\n情绪分数:'+str(line2[6])+'\n情绪回答:'+str(line2[7])+'\n轻生倾向:'+str(line2[8])+'\n'
|
40 |
+
results=results+'兴趣爱好分数:'+str(line2[9])+'\n兴趣爱好回答:'+line2[10]+'\n近期总体分数:'+str(line2[11])+'\n近期总体回答:'+line2[12]+'\n'+'最终建议:'+line2[13]+'\n\n'
|
41 |
|
42 |
elif(is_usn):
|
43 |
results='密码错误,无法读取报告数据。'
|