constants.py 1.4 KB

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