We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This release will include many breaking features and will while in development live on the v1 branch
v1
Instead of:
print(timed.reports.get()[0]["relationships"]["task"]["data"]["id"])
It should be usable something like this:
>>> reports = timed.reports.get() >>> some_report = reports[0] >>> type(some_report) <class 'libtimed.Report'> >>> task = some_report.task >>> type(task) <class 'libtimed.Task'> >>> print(task.id) 1234
To retain backwards compatibility allow using old API with __dict__
__dict__
transforms.Time
datetime.time
libtimed/src/libtimed/transforms.py
Lines 156 to 159 in df5db3c
datetime.datetime(1900, 1, 1, time.hours, time.minutes, time.seconds)
The text was updated successfully, but these errors were encountered:
c0rydoras
No branches or pull requests
Libtimed v1.0.0
This release will include many breaking features and will while in development live on the
v1
branchFeatures
Add dataclasses / pydantic models (#14)
Instead of:
It should be usable something like this:
To retain backwards compatibility allow using old API with
__dict__
Breaking Changes
transforms.Time
should returndatetime.time
(#23)libtimed/src/libtimed/transforms.py
Lines 156 to 159 in df5db3c
Time transform should return a
datetime.time
instead of adatetime.datetime(1900, 1, 1, time.hours, time.minutes, time.seconds)
. (see #17)The text was updated successfully, but these errors were encountered: