[+] courseinfo: Use markdown format

This commit is contained in:
Hykilpikonna
2021-09-03 15:27:22 -04:00
parent 33394fb041
commit a2f2571b20
+1 -1
View File
@@ -11,7 +11,7 @@ def get_course_info(id: str):
hours: str = re.findall(r'(?<=<div class="field__item"><p>).*(?=<)', html)[0]
hours = '/'.join([str(int(it[:-1]) / 12) + it[-1] for it in hours.split('/')])
return {'id': id, 'name': name, 'link': link, 'hours': hours,
'full': f'`{id}` - [{hours}] {name} ({link})'}
'full': f'`{id}` - [{hours}] [{name}]({link})'}
if __name__ == '__main__':