From 15bc2d4e497d00b5ddb3f295aa6b9064fb71403d Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 2 Feb 2021 08:39:58 +0100 Subject: [PATCH] Fixed video conferences --- CHANGELOG.rst | 2 ++ setup.py | 2 +- src/twomartens/allrisscraper/internal.py | 9 ++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 81d2f8e..5ba50ee 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,8 @@ Changelog This changelog contains a list of versions with their respective high-level changes. +v0.5.2: + - fixed video conferences v0.5.1: - fixed login procedure v0.5.0: diff --git a/setup.py b/setup.py index 93f48ce..5385a26 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ setup( author="Jim Martens", author_email="github@2martens.de", url="https://git.2martens.de/2martens/allris-scraper", - version="0.5.1", + version="0.5.2", namespace_packages=["twomartens"], packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), package_dir={'': 'src'}, diff --git a/src/twomartens/allrisscraper/internal.py b/src/twomartens/allrisscraper/internal.py index bca9691..17567bc 100644 --- a/src/twomartens/allrisscraper/internal.py +++ b/src/twomartens/allrisscraper/internal.py @@ -174,11 +174,14 @@ 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_conf = "NICHTÖFFENTLICHE VIDEOKONFERENZ! " + start_video_conf1 = "NICHTÖFFENTLICHE VIDEOKONFERENZ! " + start_video_conf2 = "Nichtöffentliche Videokonferenz " abbreviated_name = "" - if name.startswith(start_video_conf): - name = name[len(start_video_conf):] + if name.startswith(start_video_conf1): + name = name[len(start_video_conf2):] + if name.startswith(start_video_conf1): + name = name[len(start_video_conf2):] if name.startswith(start_plenary): abbreviated_name = "BV" elif name.startswith(start_committee):