Donkie
5f7a063125
Added resource field in websocket message
...
Used to differentiate resources for root-level subscriptions
2023-10-15 20:39:53 +02:00
Donkie
a6d527aaf0
Added/deleted-type websocket messages
...
Events are now sent for not only when an object changes but also when one is created or deleted.
For now it's not really possible to subscribe to these events however.
This breaks backwards-compatibility with the websocket messages.
2023-10-15 19:46:10 +02:00
Donkie
9595aec675
Fixed registered field having wrong timezone
...
This happened with at least Postgres, which took it's server's timezone. It's complicated. Let's just set it from our side instead where we have some control.
2023-10-02 21:36:50 +02:00
Donkie
205574fa2c
Fixed timezone being returned incorrectly
...
Happened if you've set TZ to non-UTC.
Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00
Donkie
cadb707fdd
Added WebSocket notify API for spools
2023-09-17 22:00:00 +02:00
Donkie
6ee3b8df70
Added support for multiple int where's
2023-09-16 11:13:30 +02:00
Donkie
841cc8b6df
Added sort by remaining weight
2023-09-16 11:13:30 +02:00
Donkie
a4d14c5b52
Added X-Total-Count test asserts
...
Fixed issue with incorrect total count for vendors
2023-09-16 11:13:30 +02:00
Donkie
f47eacd2a9
Added support for finding empty vendor fields
2023-09-16 11:13:30 +02:00
Donkie
de16dd7be0
Added database support for finding empty fields
2023-09-16 11:13:30 +02:00
Donkie
e2d937aaf1
Added x-total-count response header
2023-09-16 11:13:30 +02:00
Donkie
557ea82171
Added endpoints for getting list of materials, etc
2023-09-16 11:13:30 +02:00
Donkie
9d51ee49ed
Serverside sort and limit for vendor and filaments
2023-09-16 11:13:30 +02:00
Donkie
b9f1b71c1f
Serverside spool find limit and offset
2023-09-16 11:13:30 +02:00
Donkie
4fdea75e3f
Serverside spool sorting
2023-09-16 11:13:30 +02:00
Donkie
871e5282e5
Updated python packages
2023-08-28 21:10:07 +02:00
Donkie
6e7d9a2e03
Replaced db.flush with db.commit
...
To try fix some odd cases of greenlet whining
2023-08-28 20:31:25 +02:00
Donkie
d14fce013c
Fixed spools with unset archive state being hidden
2023-07-14 19:04:54 +02:00
Donkie
f89cf8ecd4
Added archived field to spools
...
Resolves #13
2023-07-14 14:19:57 +02:00
Donkie
f995662f05
Conversion math library update
...
* Now inputs diameter instead of radius to prevent confusion
* Added length_from_weight
2023-07-10 11:02:22 +02:00
Donkie
936b11de24
Backend now fully supports negative consumption
...
Updated integration tests to verify this.
2023-07-08 20:07:32 +02:00
Donkie
720ec30812
Fixed dependencies on Python >3.9 versions
2023-06-30 23:28:30 +02:00
Donkie
bbe1dc0f83
Added extra check if a spool has no filament
2023-06-28 20:53:24 +02:00
Donkie
3aec319b6a
Now correctly handles datetimes with timezone set
2023-06-25 17:57:17 +02:00
Donkie
235236d435
Ruff fixes
2023-05-28 22:55:11 +02:00
Donkie
1d87235f9e
Fixed spool find filament_name type
2023-05-21 23:06:05 +02:00
Donkie
87690b06ca
Fixed find spools not working if no vendor
2023-05-10 22:32:58 +02:00
Donkie
1c59e0efd5
Added logging level env var
2023-05-09 21:44:25 +02:00
Donkie
ed3e30ea75
Improved compatibility with postgres
2023-05-09 20:03:19 +02:00
Donkie
5e1ed54f39
Implemented first_used and last_used
2023-04-06 20:18:55 +02:00
Donkie
8a5d2e220b
Spool weight now counts upwards instead
...
The used filament weight is now kept track of instead of remaining weight. This adds robustness to measurement errors which could accumulate and then the filament usage wouldn't get tracked anymore once the weight hit 0. Now it will just keep going.
2023-04-06 20:06:03 +02:00
Donkie
b51d0a3183
Implemented find queries
2023-04-05 21:29:39 +02:00
Donkie
6fd9662c42
Renamed to Spoolman
...
Spoolson just didn't sound that good after all
2023-04-02 19:19:15 +02:00