Commit graph

28 commits

Author SHA1 Message Date
86c3030e31 remove unused classvars 2023-07-22 20:07:58 +02:00
2963a1d3f6 improve strict typing 2023-03-28 23:32:24 +02:00
37e8d53b78 migrate db.current_patch_level to SQLAlchemy 2023-03-28 23:03:35 +02:00
1a3528e096 migrate db.find_ratings to SQLAlchemy 2023-03-28 21:50:14 +02:00
5015815097 add SQLAlchemy table definitions to models 2023-03-18 23:51:40 +01:00
f97c5c8472 add some route tests 2023-03-18 23:30:40 +01:00
496c51402a fix using deprecated SQLAlchemy mapping access 2023-03-18 00:29:29 +01:00
60d38e9b49 improve typing 2023-02-04 17:30:54 +01:00
e84a6bc865 fix support for union type expressions 2023-02-04 12:46:30 +01:00
8a8bfce89d apply Black v23.1.0 formatting changes 2023-02-04 01:12:50 +01:00
418116afac improve typing correctness 2023-02-04 01:12:09 +01:00
3320d53eda use native union type syntax 2023-02-02 23:46:02 +01:00
a17b49bc0b fix & improve asplain func
It would previously encode a JSON encoded string coming from the DB
doubly, because there was no differentiation.  It would also not handle
optional values set to None correctly.
There's still other problems with the function, but those are now fixed.
2021-12-19 19:25:31 +01:00
18b95f91f9 use more compact JSON repr 2021-08-18 20:08:09 +02:00
69eb68a9a4 add UI selector for user ratings (group or own)
Allow a user to access their own dataset.
Add a route for admins to give users access to groups.
2021-08-05 15:53:27 +02:00
e2a3f0b6fa add per user group management
Drop the secret from groups, instead set per user access rights to
read or write group information.
2021-08-04 17:32:00 +02:00
14f2395fa6 improve some type annotations 2021-08-04 17:32:00 +02:00
f7913c30c8 add secret to User & add user REST routes 2021-08-04 17:31:59 +02:00
3d5656392e store error in progress 2021-07-28 23:07:04 +02:00
57cfd8f496 fix lazy init calling default factory
If no default factory is set the value is actually some internal
sentinel object (dataclasses._MISSING_VALUE) instead of something falsy
like `None`.
2021-07-27 19:34:28 +02:00
159ffce4b4 add creation timestamp to movies 2021-07-25 18:06:17 +02:00
5514a8d1e1 fix utc datetime generator
m(
2021-07-25 18:06:17 +02:00
fe5db535a9 add route to check state of latest IMDb movie import 2021-07-25 18:06:17 +02:00
8d20cc040e add IMDb vote count to movies 2021-07-25 18:06:17 +02:00
1ad7a79d33 add a Relation type to models to store related model data
Any field marked as Relation is ignored by all model operations (like
converting to and from plain form).  Fields marked as Relation are
meant to store the actual model data for foreign keys stored on the
model.
2021-07-10 01:34:38 +02:00
75391b1ca2 replace legacy ratings route with group ratings 2021-07-08 09:48:54 +02:00
7dd10f8bc3 add imdb full import mode 2021-06-21 18:54:03 +02:00
b5cb22822e init with some kind of working prototype 2021-06-15 19:09:21 +02:00