Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Zeitmenge and Zeitspanne (as future replacements for Zeitraum) #611

Closed
wants to merge 13 commits into from

Conversation

hf-kklein
Copy link
Contributor

No description provided.

Comment on lines 10 to 19
class Zeitmenge(COM):
"""
Eine Zeitmenge ist eine Anzahl mit Zeiteinheit; z.B. "5 Tage" oder "1 Monat".
Der Unterschied zur Zeitspanne ist, dass Start- und Endzeitpunkt nicht angegeben werden.
Die Zeitmenge ist aus dem COM Zeitraum hervorgegangen, das in Zeitspanne und Zeitmenge aufgeteilt wurde.
"""

# I made those _not_ optional because the entire instance of Zeitmenge is pointless if one of the two is missing
einheit: Zeiteinheit #: z.B. Tage
dauer: Decimal #: z.B: 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das soll doch mit dem COM Menge verheiratet werden. Planst du, das hier einzuführen, um es später wieder rauszukicken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dfer PR ist von gestern.

@hf-kklein hf-kklein marked this pull request as draft October 6, 2023 11:52
"""

# I made those _not_ optional because the entire instance of Zeitmenge is pointless if one of the two is missing
start: Optional[datetime] #: inklusiver Beginn
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Pydantic v2 musst du explizit den default-Wert None mitgeben, wenn du das Feld auch weglassen können willst.

@hf-kklein
Copy link
Contributor Author

Hi @DeltaDaniel ich habe gesehen, du hast das schon in #625 genutzt. Sollen wir vllt erst den hier durchbringen? ich komm heute nicht mehr dazu, den mit den Absprachen von heute zu updaten.

@hf-fvesely hf-fvesely marked this pull request as ready for review October 23, 2023 10:13
@hf-fvesely
Copy link
Contributor

This branch was merged into the branch in this PR: #625, has been updated in parts and is now on main. So this PR has become obsolete.

@hf-fvesely hf-fvesely closed this Nov 24, 2023
@hf-fvesely hf-fvesely deleted the zeitmenge branch November 24, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants