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
e49ea603ee
create dataclasses for output data
2021-12-19 19:13:49 +01:00
146e6ff6b8
fix docker build
...
SQLAlchemy 1.4 uses greenlet, which needs to be built from source on
Alpine.
2021-12-08 22:59:43 +01:00
32bbfe881b
change /movies output format for id filtered listing
...
The new format is much closer to the format used by /groups/ratings.
Also allows to filter based on Unwind's ID.
2021-12-08 00:13:05 +01:00
a468c8ad60
add a few first tests for /movies web route
2021-12-07 23:54:06 +01:00
bd3e35936a
fix access to renamed db column
2021-12-07 23:25:01 +01:00
297f82bf8e
fix early SQL patch
...
We need to remove the view on the movies table first, otherwise we might
run into an internal integrity error.
2021-12-07 23:22:51 +01:00
f2cb66b0bf
update dependencies
2021-12-07 21:18:55 +01:00
57a2bccb44
add pyright to linting
2021-12-07 21:03:31 +01:00
3c9da10522
upgrade Python to 3.10, and update all dependencies
2021-11-02 14:16:00 +01:00
dd3d5f3670
fix user rating refresh if a user is unavailable
...
If a user's ratings cannot be accessed, e.g. due to network errors, it
should skip to the next user.
Ideally we could mark a user as inactive after X failed retries.
2021-11-02 14:14:32 +01:00
52c08f0fd8
add new IMDb movie type: tvPilot
2021-08-22 14:44:29 +02:00
18b95f91f9
use more compact JSON repr
2021-08-18 20:08:09 +02:00
b676c9ddde
fix SQLite locking errors
2021-08-18 20:02:10 +02:00
f964c0ceb9
UI: add support for year specification in search
2021-08-07 14:32:32 +02:00
181719c6d9
add force option to movie reload
...
In case an import fails we need to skip checking whether the IMDb
export dumps changed.
2021-08-06 14:23:21 +02:00