constants.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. CLASS_PDF_INPUT_FILE = "klassen.pdf"
  2. CLASSES_JSON_OUTPUT_FILE = "classes.json"
  3. CLASS_PDF_TABLE_SETTINGS = {
  4. "vertical_strategy": "lines",
  5. "horizontal_strategy": "lines",
  6. "snap_tolerance": 3,
  7. "join_tolerance": 3,
  8. "edge_min_length": 3,
  9. }
  10. TOLERANCE = 3
  11. REQUESTS_TIMEOUT = 4
  12. ALLOWED_TIMESLOTS = [
  13. ("8:15", "9:00"),
  14. ("9:15", "10:00"),
  15. ("10:15", "11:00"),
  16. ("11:15", "12:00"),
  17. ("12:15", "13:00"),
  18. ("13:15", "14:00"),
  19. ("14:15", "15:00"),
  20. ("15:15", "16:00"),
  21. ("16:15", "17:00"),
  22. ("17:15", "18:00"),
  23. ("18:05", "18:50"),
  24. ("18:50", "19:35"),
  25. ("19:45", "20:30"),
  26. ("20:30", "21:15"),
  27. ]
  28. LECTURER_SHORTHAND_SIZE = 6
  29. LECTURER_SHORTHAND_PDF_PDF_INPUT_FILE = "lecturer_shorthands.pdf"
  30. LECTURER_SHORTHAND_JSON_OUTPUT_FILE = "lecturers.json"
  31. LECTURER_SHORTHAND_PDF_TABLE_SETTINGS = {
  32. "vertical_strategy": "text",
  33. "horizontal_strategy": "text",
  34. "snap_tolerance": 5,
  35. "intersection_x_tolerance": 15,
  36. }
  37. LECTURER_SHORTHAND_PDF_ROW_SKIP_VALUES = ["Name Nachname Vorname", "vak"]
  38. FRONTEND_RIPPER_BASE_URL_DEFAULT = "https://pub092.cs.technik.fhnw.ch/data"
  39. FRONTEND_RIPPER_SEMESTER_VERSIONS_FILE = "semester-versions.json"
  40. FRONTEND_RIPPER_BASE_FILES = [
  41. "changelog.html",
  42. "lecturers.json",
  43. "messages.json",
  44. "module-history.json",
  45. "modules.json",
  46. ]
  47. FRONTEND_RIPPER_OUTPUT_DIR_DEFAULT = "out"