rest of files, not sorted
This commit is contained in:
@@ -2,6 +2,7 @@ import re
|
||||
from dataclasses import dataclass, field
|
||||
from enum import Enum
|
||||
|
||||
|
||||
@dataclass
|
||||
class ApparatData:
|
||||
prof_title: str | None = None
|
||||
@@ -101,17 +102,17 @@ class Subjects(Enum):
|
||||
TECHNIC = (22, "Technik")
|
||||
THEOLOGY = (23, "Theologie")
|
||||
ECONOMICS = (24, "Wirtschaftslehre")
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
return self.value[0]
|
||||
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self.value[1]
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_index(cls, name):
|
||||
for i in cls:
|
||||
if i.name == name:
|
||||
return i.id -1
|
||||
return i.id - 1
|
||||
|
||||
Reference in New Issue
Block a user