Archived
1
0
Fork 0

Merge pull request #364 from b60254/Cytoid-profile-grade-fix

Cytoid profile grade fix
This commit is contained in:
yzhh 2022-10-28 12:06:25 +08:00 committed by GitHub
commit 97ff8f9807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,21 @@ 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},'
gradet += f' A: {a},'
b = grade.get('B')
if b is not None:
gradet += f' B: {b},'
@ -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' + \