Added missing pattern

This commit is contained in:
2021-04-11 10:38:40 +02:00
parent 0cdf7f09d0
commit 5ae4e0ae93
3 changed files with 7 additions and 1 deletions

View File

@ -178,9 +178,11 @@ def get_abbreviated_committee_name(name: str, district: str) -> str:
start_video_conf1 = "NICHTÖFFENTLICHE VIDEOKONFERENZ! "
start_video_conf2 = "Nichtöffentliche Videokonferenz "
start_video_conf3 = "Nichtöffentliche Videokonferenz- "
start_video_conf4 = "öffentliche Videokonferenz - "
start_video_conf1_p = re.compile("NICHTÖFFENTLICHE VIDEOKONFERENZ! ", re.I)
start_video_conf2_p = re.compile("Nichtöffentliche Videokonferenz ", re.I)
start_video_conf3_p = re.compile("Nichtöffentliche Videokonferenz- ", re.I)
start_video_conf4_p = re.compile("öffentliche Videokonferenz - ", re.I)
abbreviated_name = ""
if start_video_conf1_p.match(name):
@ -189,6 +191,8 @@ def get_abbreviated_committee_name(name: str, district: str) -> str:
name = name[len(start_video_conf2):]
if start_video_conf3_p.match(name):
name = name[len(start_video_conf3):]
if start_video_conf4_p.match(name):
name = name[len(start_video_conf4):]
if name.startswith(start_plenary):
abbreviated_name = "BV"
elif name.startswith(start_committee):