Update profile_check.py

This commit is contained in:
nobody43 2024-11-23 18:35:53 +00:00 committed by Alex
parent 3030c28c05
commit 8f4b330407

View file

@ -456,6 +456,9 @@ def main(argv):
profile_data.update(profilesInFile) profile_data.update(profilesInFile)
for m in messages: for m in messages:
if m.get('suggestion'):
if m['suggestion'].endswith('\n'):
m['suggestion'] = m.get('suggestion').removesuffix('\n')
m['filename'] = str(m.get('filename')) m['filename'] = str(m.get('filename'))
print(json.dumps(m, indent=2)) print(json.dumps(m, indent=2))