Skip to content
Snippets Groups Projects
Unverified Commit cc379172 authored by dnns01's avatar dnns01 Committed by GitHub
Browse files

Release module fixes (#161)

* Changes to scraper.py (#158)

Matching string now reflects changes on the website.

* Es ist ein Leerzeichen in der Modul-Fehlermeldung :scream:



Co-authored-by: default avatarLou-M <73669620+Lou-M@users.noreply.github.com>
parent 33b6deed
No related branches found
Tags v1.0.0
No related merge requests found
......@@ -124,7 +124,7 @@ class Scraper:
def parse_support(self, soup):
try:
support_source = soup.find('h2', text=re.compile(
r'Mentorielle Betreuung in Regionalzentren')).findNext('div').findAll('li')
r'Mentorielle Betreuung an den Campusstandorten')).findNext('div').findAll('li')
except:
return None
......
......@@ -95,7 +95,7 @@ class ModuleInformation(commands.Cog):
for course_of_studies in self.data:
shorts.append(f"`{course_of_studies['short']}`")
await ctx.channel.send(
f"Fehler! Wähle entweder eine Studiengangs-Rolle aus oder gebe ein Studiengangskürzel"
f"Fehler! Wähle entweder eine Studiengangs-Rolle aus oder gebe ein Studiengangskürzel "
f"nach dem Kommando an.\nMögliche Kürzel: {', '.join(shorts)}"
)
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment