Commit 510a581a authored by Dominik Woiwode's avatar Dominik Woiwode
Browse files

Small fixes

parent c830cc47
......@@ -178,15 +178,15 @@ class ProtocolPad(BasePad):
isFachgruppenvollversammlung: bool = False, isApproved: bool = False, gremium: Gremium = None):
self.gremium = gremium or DEFAULT_GREMIUM
self.date = date
super().__init__(source)
self.isApproved = isApproved
self.isFachgruppenvollversammlung = isFachgruppenvollversammlung
super().__init__(source)
def __repr__(self):
return super(ProtocolPad, self).__repr__()[:-1] + f", {self.date})"
def DEFAULT_DISPLAY_NAME(self):
return f"Protokoll {self.gremium.name} {self.date.strftime('%d.%m.%Y')}"
return f"Protokoll {self.gremium.name} {self.date.strftime('%Y-%m-%d')}" + " - Fachgruppenvollversammlung"*self.isFachgruppenvollversammlung
def sendMailAsUnapproved(self) -> bool:
sender = MailParticipant(LDAP_MAIL, LDAP_NAME)
......@@ -246,6 +246,9 @@ class PadCollection(BasePad):
def __init__(self, source: SourceTypes):
super().__init__(source)
def DEFAULT_DISPLAY_NAME(self):
return f"PadCollection"
def getPads(self) -> Dict[str, List[BasePad]]:
"""
Parsing the protocollink-Pad for urls.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment