You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.0 KiB

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2020 Jim Martens
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. import calendar
  16. ABBREVIATIONS = {
  17. "Altona": {
  18. "Haupt": "HA",
  19. },
  20. "Bergedorf": {
  21. "Haupt": "HA",
  22. },
  23. "Eimsbüttel": {
  24. "Haupt": "HA",
  25. "Kerngebiet": "KGA",
  26. "RaLNS": "RaLoNiS",
  27. "HKS": "HaKuS",
  28. "GNUVWD": "GNUVWDi",
  29. "SAIBGGSG": "SR",
  30. "AS": "StaPla",
  31. "AU": "Uni"
  32. },
  33. "Hamburg-Mitte": {
  34. "Haupt": "HA",
  35. "Stadtplanungs": "StaPla"
  36. },
  37. "Hamburg-Nord": {
  38. "Haupt": "HA",
  39. },
  40. "Harburg": {
  41. "Haupt": "HA",
  42. },
  43. "Wandsbek": {
  44. "Haupt": "HA",
  45. }
  46. }
  47. BASE_LINKS = {
  48. "Altona": "https://sitzungsdienst-altona.hamburg.de/ri",
  49. "Bergedorf": "https://sitzungsdienst-bergedorf.hamburg.de/ri",
  50. "Eimsbüttel": "https://sitzungsdienst-eimsbuettel.hamburg.de/ri",
  51. "Hamburg-Mitte": "https://sitzungsdienst-hamburg-mitte.hamburg.de/ri",
  52. "Hamburg-Nord": "https://sitzungsdienst-hamburg-nord.hamburg.de/ri",
  53. "Harburg": "https://sitzungsdienst-harburg.hamburg.de/ri",
  54. "Wandsbek": "https://sitzungsdienst-wandsbek.hamburg.de/ri",
  55. }
  56. PUBLIC_BASE_LINKS = {
  57. "Altona": "https://sitzungsdienst-altona.hamburg.de/bi",
  58. "Bergedorf": "https://sitzungsdienst-bergedorf.hamburg.de/bi",
  59. "Eimsbüttel": "https://sitzungsdienst-eimsbuettel.hamburg.de/bi",
  60. "Hamburg-Mitte": "https://sitzungsdienst-hamburg-mitte.hamburg.de/bi",
  61. "Hamburg-Nord": "https://sitzungsdienst-hamburg-nord.hamburg.de/bi",
  62. "Harburg": "https://sitzungsdienst-harburg.hamburg.de/bi",
  63. "Wandsbek": "https://sitzungsdienst-wandsbek.hamburg.de/bi",
  64. }
  65. ALLRIS_LOGIN: str = "https://2martens.de/allris-eimsbüttel"
  66. ALLRIS_OPEN: str = "https://2martens.de/bezirk-eimsbüttel"
  67. CONFIG_PROPS = {
  68. "Default": {
  69. "district": "Eimsbüttel",
  70. "username": "max.mustermann@eimsbuettel.de",
  71. "password": "SehrSicheresPasswort",
  72. "pdflocation": "/Pfad/zum/Ablegen/der/PDFs/",
  73. "jsonLocation": "/Pfad/zum/Ablegen/der/jsons/",
  74. "firefoxBinary": "/Pfad/zur/firefox.exe",
  75. "geckodriver": "/Pfad/zum/geckodriver"
  76. }
  77. }
  78. MONTHS = {
  79. "Januar": 1,
  80. "Februar": 2,
  81. "März": 3,
  82. "April": 4,
  83. "Mai": 5,
  84. "Juni": 6,
  85. "Juli": 7,
  86. "August": 8,
  87. "September": 9,
  88. "Oktober": 10,
  89. "November": 11,
  90. "Dezember": 12,
  91. }