Archived
1
0
Fork 0

Fix missing grades, reorder grades

This commit is contained in:
b60254 2022-10-27 12:00:47 -10:00
parent 33a6242ca2
commit b709e09951

View file

@ -34,6 +34,18 @@ async def cytoid_profile(msg: MessageSession):
rating = profile['rating']
grade: dict = profile['grade']
gradet = ''
max = grade.get('MAX')
if max is not None:
gradet += f'MAX: {max}'
sss = grade.get('SSS')
if sss is not None:
gradet += f' SSS: {sss}'
ss = grade.get('SS')
if ss is not None:
gradet += f' SS: {ss}'
s = grade.get('S')
if s is not None:
gradet += f' S: {s},'
a = grade.get('A')
if a is not None:
gradet += f' A: {a},'
@ -46,15 +58,9 @@ async def cytoid_profile(msg: MessageSession):
d = grade.get('D')
if d is not None:
gradet += f' D: {d},'
e = grade.get('E')
if e is not None:
gradet += f' E: {e},'
s = grade.get('S')
if s is not None:
gradet += f' S: {s},'
ss = grade.get('SS')
if ss is not None:
gradet += f' SS: {ss}'
f = grade.get('F')
if f is not None:
gradet += f' F: {f},'
text = f'UID: {uid}\n' + \
(f'Nickname: {nick}\n' if nick else '') + \
f'BasicExp: {basicExp}\n' + \