Commit graph

142 commits

Author SHA1 Message Date
d385860ca9 fix: find next rating page 2024-05-10 00:13:32 +02:00
738799cc74 chore: update dependencies & scripts 2024-05-10 00:13:01 +02:00
2bf5607183 feat: add functions to retrieve IMDb chart lists
These charts are
- the top 250 highest rated movies
- the top 100 most popular movies
- the bottom 100 lowest rated movies
2024-05-10 00:12:25 +02:00
4fbdb26d9c Merge branch 'feat/sqlalchemy' 2023-11-29 18:01:24 +01:00
78b531ad8c add scripts to build & run with Docker
Or set DOCKER_BIN=podman to use Podman.
2023-11-29 18:01:01 +01:00
4981de4a04 remove databases, use SQLAlechemy 2.0 instead
Among the many changes we switch to using SQLAlchemy's connection pool,
which means we are no longer required to guard against multiple threads
working on the database.
All db funcs now receive a connection to use as their first argument,
this allows the caller to control transaction & rollback behavior.
2023-11-27 23:24:35 +01:00
c63bee072f respect API_HOST & API_PORT env vars for dev
Using Vite's proxy option allows us to avoid CORS issues when the host
for Uvicorn doesn't match the host for Vite, e.g. localhost vs. 127.0.0.1.
2023-11-26 19:43:56 +01:00
1f42538481 make the shared connection internal to the db module
This should make it easier to refactor the code for removing the
databases package.
2023-11-26 18:41:32 +01:00
22ea553f48 improve typing 2023-11-26 18:28:17 +01:00
6d0c61fceb upgrade to Python 3.12
This includes only the most basic steps of the upgrade, to make the
existing code run with Python 3.12. No refactoring to make use of new
features is included.
2023-11-26 17:09:07 +01:00
79068f2f10 add honcho as explicit dev dependency 2023-11-26 16:46:38 +01:00
2c65436df5 add .python-version file 2023-11-26 15:11:24 +01:00
7665dfe769 switch from black/isort/autoflake to ruff 2023-11-26 15:10:16 +01:00
b5a93cb92f update Npm dependencies 2023-07-22 20:19:23 +02:00
25f31db756 improve strict typing 2023-07-22 20:13:46 +02:00
86c3030e31 remove unused classvars 2023-07-22 20:07:58 +02:00
91d06f607c update Python dependencies 2023-07-22 20:07:58 +02:00
2963a1d3f6 improve strict typing 2023-03-28 23:32:24 +02:00
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