Added additional video conference start

This commit is contained in:
Jim Martens 2021-02-14 13:01:08 +01:00
parent cde9d51ab5
commit 9d94f08428
3 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,8 @@ Changelog
This changelog contains a list of versions with their respective high-level changes.
v0.5.3:
- fixed typo && added additional video conference start string
v0.5.2:
- fixed video conferences
v0.5.1:

View File

@ -30,7 +30,7 @@ setup(
author="Jim Martens",
author_email="github@2martens.de",
url="https://git.2martens.de/2martens/allris-scraper",
version="0.5.2",
version="0.5.3",
namespace_packages=["twomartens"],
packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
package_dir={'': 'src'},

View File

@ -174,14 +174,17 @@ def get_abbreviated_committee_name(name: str, district: str) -> str:
start_youth_help_committee = "Sitzung des Jugendhilfeausschusses"
start_other_committee = "Sitzung des"
end_other_committee = "ausschusses"
start_video_conf1 = "NICHTÖFFENTLICHE VIDEOKONFERENZ! "
start_video_conf1 = "NICHTÖFFENTLICHE VIDEOKONFERENZ! "
start_video_conf2 = "Nichtöffentliche Videokonferenz "
start_video_conf3 = "Nichtöffentliche Videokonferenz- "
abbreviated_name = ""
if name.startswith(start_video_conf1):
name = name[len(start_video_conf2):]
if name.startswith(start_video_conf1):
if name.startswith(start_video_conf2):
name = name[len(start_video_conf2):]
if name.startswith(start_video_conf3):
name = name[len(start_video_conf3):]
if name.startswith(start_plenary):
abbreviated_name = "BV"
elif name.startswith(start_committee):