Commit graph

174 commits

Author SHA1 Message Date
8b5cbdf903 make sure WAL mode is active 2023-03-28 23:06:14 +02:00
37e8d53b78 migrate db.current_patch_level to SQLAlchemy 2023-03-28 23:03:35 +02:00
e27b57050a remove unused functions 2023-03-28 22:05:14 +02:00
84bbe331ee migrate db.find_movies to SQLAlchemy 2023-03-28 21:50:15 +02:00
1fd7e730b3 migrate db.ratings_for_movies to SQLAlchemy 2023-03-28 21:50:15 +02:00
1a3528e096 migrate db.find_ratings to SQLAlchemy 2023-03-28 21:50:14 +02:00
d4933bf1a6 migrate db.ratings_for_movie_ids to SQLAlchemy 2023-03-23 23:33:59 +01:00
b91fcd3f55 migrate db.add, db.update, db.remove to SQLA 2023-03-23 22:49:17 +01:00
6f6354cfac migrate db.get to SQLAlchemy 2023-03-20 21:37:50 +01:00
af9c166124 migrate db.get_many to SQLAlchemy 2023-03-19 23:14:59 +01:00
a444909b1f minor refactoring 2023-03-19 22:59:08 +01:00
f1bafbb4a2 report code coverage for tests 2023-03-19 22:36:36 +01:00
1dd7bab4aa migrate db.get_all to pure SQLAlchemy 2023-03-19 22:36:33 +01: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
00486778db make SQLAlchemy 1.4 dependency explicit 2023-03-18 22:11:51 +01:00
c9c95ba2fa improve typing for config 2023-03-18 22:09:03 +01:00
a020d972f8 Merge branch 'feat/py311' 2023-03-18 01:12:35 +01:00
15e6e49102 remove unused functions 2023-03-18 00:29:41 +01:00
496c51402a fix using deprecated SQLAlchemy mapping access 2023-03-18 00:29:29 +01:00
eb76ab1867 fix using deprecated Starlette feature
`on_startup`/`on_shutdown` will be removed in v1.0.
2023-03-18 00:09:58 +01:00
5efa3ef2c2 run Poetry update 2023-03-17 23:34:47 +01:00
c2a9cfecf1 make listener port in Dockerfile configurable 2023-03-17 23:17:28 +01:00
9fb24741a1 remove unused sync request functions 2023-02-04 18:17:13 +01:00
b408fee1bc add auto-formatting of tests to .git-blame-ignore-revs 2023-02-04 18:16:43 +01:00
9ffcc53571 apply auto-formatting to tests 2023-02-04 18:15:14 +01:00
65ae10c500 include test files in linting 2023-02-04 18:14:28 +01:00
324eb8e9b7 fix tests for Pytest-Asyncio running in strict mode 2023-02-04 18:12:50 +01:00
099770c80c use async requests to refresh user ratings 2023-02-04 17:55:22 +01:00
60d38e9b49 improve typing 2023-02-04 17:30:54 +01:00
cb7c66a8d1 add simple profiling script 2023-02-04 14:56:09 +01:00
7a7d619e64 IMDb import: fix assertion
We should only assert where we know the result, here the input file
could just as well be empty.
2023-02-04 14:12:37 +01:00
69643455a6 IMDb import: fix progress reporting
Because we calculated the percentage based on the number of lines we
need to yield once per line, otherwise the count is off.
2023-02-04 14:12:36 +01:00
e84a6bc865 fix support for union type expressions 2023-02-04 12:46:30 +01:00
7da3a094f1 add "download-imdb-dataset" command to CLI 2023-02-04 01:13:19 +01:00
0563d49dbc add async file download function 2023-02-04 01:13:19 +01:00
758706baa2 switch from Requests to HTTPX 2023-02-04 01:13:19 +01:00
8eabbf89d5 add .git-blame-ignore-revs 2023-02-04 01:13:17 +01:00
8a8bfce89d apply Black v23.1.0 formatting changes 2023-02-04 01:12:50 +01:00
8e1988eea2 add Autoflake linting 2023-02-04 01:12:11 +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
13b65103fd [wip] use Python 3.11 & update all dependencies 2023-02-02 23:18:21 +01:00
7823708383 update & fix dependencies 2022-10-23 14:18:54 +02:00
62afac7060 fix parsing of ratings listing with missing genres 2022-10-23 14:16:47 +02:00
3c357584a2 update poetry & npm 2022-01-13 23:18:24 +01:00
23bba3e2cc allow loading group ratings for a single movie 2022-01-13 23:18:09 +01:00
adfead81fc simplify SQL query a bit
With SQLite it's in general not a big issue to run multiple smaller
queries instead a big one, because the overhead per request is much
smaller than with separate DBMS.
This should make it easier to extend `find_ratings` in the future.
2021-12-19 19:35:53 +01:00
e1f35143df add some tests for db.find_ratings 2021-12-19 19:30:08 +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