Match case insensitive
This commit is contained in:
parent
9d94f08428
commit
f24996512d
|
@ -3,6 +3,8 @@ Changelog
|
||||||
|
|
||||||
This changelog contains a list of versions with their respective high-level changes.
|
This changelog contains a list of versions with their respective high-level changes.
|
||||||
|
|
||||||
|
v0.5.4:
|
||||||
|
- match video conference starts case insensitive
|
||||||
v0.5.3:
|
v0.5.3:
|
||||||
- fixed typo && added additional video conference start string
|
- fixed typo && added additional video conference start string
|
||||||
v0.5.2:
|
v0.5.2:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -30,7 +30,7 @@ setup(
|
||||||
author="Jim Martens",
|
author="Jim Martens",
|
||||||
author_email="github@2martens.de",
|
author_email="github@2martens.de",
|
||||||
url="https://git.2martens.de/2martens/allris-scraper",
|
url="https://git.2martens.de/2martens/allris-scraper",
|
||||||
version="0.5.3",
|
version="0.5.4",
|
||||||
namespace_packages=["twomartens"],
|
namespace_packages=["twomartens"],
|
||||||
packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
|
packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
|
||||||
package_dir={'': 'src'},
|
package_dir={'': 'src'},
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from datetime import time
|
from datetime import time
|
||||||
from typing import List
|
from typing import List
|
||||||
|
@ -174,16 +175,16 @@ def get_abbreviated_committee_name(name: str, district: str) -> str:
|
||||||
start_youth_help_committee = "Sitzung des Jugendhilfeausschusses"
|
start_youth_help_committee = "Sitzung des Jugendhilfeausschusses"
|
||||||
start_other_committee = "Sitzung des"
|
start_other_committee = "Sitzung des"
|
||||||
end_other_committee = "ausschusses"
|
end_other_committee = "ausschusses"
|
||||||
start_video_conf1 = "NICHTÖFFENTLICHE VIDEOKONFERENZ! "
|
start_video_conf1 = re.compile("NICHTÖFFENTLICHE VIDEOKONFERENZ! ", re.I)
|
||||||
start_video_conf2 = "Nichtöffentliche Videokonferenz "
|
start_video_conf2 = re.compile("Nichtöffentliche Videokonferenz ", re.I)
|
||||||
start_video_conf3 = "Nichtöffentliche Videokonferenz- "
|
start_video_conf3 = re.compile("Nichtöffentliche Videokonferenz- ", re.I)
|
||||||
abbreviated_name = ""
|
abbreviated_name = ""
|
||||||
|
|
||||||
if name.startswith(start_video_conf1):
|
if start_video_conf1.match(name):
|
||||||
|
name = name[len(start_video_conf1):]
|
||||||
|
if start_video_conf2.match(name):
|
||||||
name = name[len(start_video_conf2):]
|
name = name[len(start_video_conf2):]
|
||||||
if name.startswith(start_video_conf2):
|
if start_video_conf3.match(name):
|
||||||
name = name[len(start_video_conf2):]
|
|
||||||
if name.startswith(start_video_conf3):
|
|
||||||
name = name[len(start_video_conf3):]
|
name = name[len(start_video_conf3):]
|
||||||
if name.startswith(start_plenary):
|
if name.startswith(start_plenary):
|
||||||
abbreviated_name = "BV"
|
abbreviated_name = "BV"
|
||||||
|
|
Loading…
Reference in New Issue