update logging, update docuprint add new ui for generating documents
This commit is contained in:
@@ -119,10 +119,16 @@ class Semester:
|
||||
return True
|
||||
return False
|
||||
|
||||
def from_string(self, val):
|
||||
self.value = val
|
||||
self._year = int(val[-2:])
|
||||
self._semester = val[:4]
|
||||
def from_string(self, val: str):
|
||||
if " " in val:
|
||||
values = val.split(" ")
|
||||
if len(values) != 2:
|
||||
raise ValueError("Invalid semester format")
|
||||
self._semester = values[0]
|
||||
if len(values[1]) == 4:
|
||||
self._year = int(values[1][2:])
|
||||
# self._year = int(values[1])
|
||||
self.computeValue()
|
||||
return self
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user