zurdi
f7b14b43d6
fixed everything from trunk
2024-07-09 13:43:14 +02:00
Michael Manganiello
23ef1fb419
fix: Correctly traverse SteamGridDB API pages
...
The SteamGridDB API has a bug, where the `total` field for the paginated
endpoint `/v2/grids/game/:gameId` sometimes double/triple counts results
(e.g. returning `total=172` when there are actually 86 results).
To avoid this issue, this change relies on each page's number of
results. If the received page has less than the requested amount of
grids, we know that is the last page.
2024-07-07 12:16:30 -03:00
Zurdi
b1f5ae50e5
fixes from PR review
2024-07-06 17:25:08 +02:00
Zurdi
65589393c8
Merge remote-tracking branch 'origin/master' into feature/setup-wizard
2024-07-05 21:13:12 +02:00
Zurdi
ebaa5d6520
fixed filter roms both by platform and collection
2024-07-05 20:59:14 +02:00
zurdi
8a2a4d6099
fixes from trunk
2024-07-04 23:54:18 +02:00
zurdi
3d27a05c22
fixes from trunk
2024-07-04 23:47:14 +02:00
Zurdi
7cdc12c7b2
fixed stats and user handler
2024-07-04 23:11:07 +02:00
zurdi
4b81c01140
fixed tests
2024-07-04 22:26:35 +02:00
zurdi
2ec4debd61
setup wizard added
2024-07-04 14:19:00 +02:00
zurdi
f2f202de9e
add user collections to details
2024-07-04 01:25:44 +02:00
Zurdi
5126c56ba9
get collections for detailed rom info
2024-07-04 00:05:37 +02:00
Zurdi
2a7def81ac
added reactivity to collections
2024-07-03 21:58:58 +02:00
zurdi
59c2a51a6f
added collection cover management
2024-07-03 14:31:17 +02:00
Zurdi
23e0a064ab
added update collection endpoint
2024-07-02 23:34:50 +02:00
zurdi
1d6ba70080
collections get_roms endpoint added
2024-07-02 14:31:27 +02:00
Zurdi
cc9e05f668
collections migration added
2024-07-01 23:47:15 +02:00
Georges-Antoine Assi
7530fdd576
mega refactor of pr
2024-07-01 15:12:07 -04:00
Zurdi
a937b0ddcf
added publicNotes schema
2024-07-01 17:42:23 +02:00
zurdi
15f7522da5
rom db hanlder refactor to adapt to user_rom_props
2024-07-01 15:30:14 +02:00
zurdi
66e185db47
Merge branch 'master' into feature/fav_for_siblings
2024-07-01 08:34:04 +02:00
Georges-Antoine Assi
b7c2350123
Merge branch 'master' into misc/simplify-stat-query-platforms
2024-06-30 20:24:47 -04:00
Georges-Antoine Assi
bffffcc9c3
Merge pull request #969 from adamantike/fix/implement-total-filesize-stat
...
fix: Add implementation for total filesize statistic
2024-06-30 20:00:00 -04:00
Michael Manganiello
bc13e69a5b
misc: Simplify statistics query to retrieve platforms count
...
Instead of counting `Platform` rows, and filtering based on a subquery
in `Rom`, we can simply count the different `platform_id` values in
`Rom`.
2024-06-30 17:55:11 -03:00
Michael Manganiello
b0f834282a
fix: Add implementation for total filesize statistic
...
Add query that calculates total filesize statistic, currently hardcoded
to zero.
2024-06-30 17:40:48 -03:00
Michael Manganiello
8281d5679b
misc: Split database handler logic to get/list entities
...
The current implementation for some of the database handlers, where the
same method is used to retrieve either a single entity (when an `id` is
passed), a list of entities, or `None`, makes the typing and overall
design more complex.
This change simplifies database handlers, by having two separate methods
where appropiate:
* A method that receives an `id`, and returns either an entity, or `None`.
* A method that optionally receives filters, and returns (depending on
the current handler implementation) a list of entities, or a `Select`
object that allows chaining more SQLAlchemy operations.
2024-06-30 13:12:48 -03:00
zurdi
aff4bb65de
add user_rom_props to get_roms
2024-06-30 13:26:50 +02:00
zurdi
4749bf84c6
atomic update user_rom_props
2024-06-30 01:50:08 +02:00
Zurdi
d3381e16b0
Update backend/handler/auth/base_handler.py
...
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com >
2024-06-29 18:20:01 +02:00
Zurdi
43cd6a8383
added main sibling per user
2024-06-29 14:09:41 +02:00
zurdi
0a0bab6730
migrated rom_notes to user_rom_props
2024-06-29 11:26:16 +02:00
Zurdi
c022e9cef7
added user_rom_props entity
2024-06-29 00:13:28 +02:00
Zurdi
7d9ce05c3c
added main sibling to the front and database
2024-06-27 21:50:04 +02:00
zurdi
a07133d678
added filter for static/animated cover
2024-06-27 16:45:56 +02:00
zurdi
7dfbcc9a0b
dinamic ratio for small artwork
2024-06-26 19:37:50 +02:00
Zurdi
c8f9015561
Merge branch 'master' into feature/steamgriddb
2024-06-26 18:17:03 +02:00
zurdi
180c373e1e
steamgridDB integration added
2024-06-26 17:36:02 +02:00
Michael Manganiello
3bd37165d4
fix: Call Redis HSET in bulk
2024-06-26 00:17:49 -03:00
Georges-Antoine Assi
176c57c792
run trunk fmt
2024-06-23 18:17:19 -03:00
Michael Manganiello
33ac3ca56d
misc: Apply changes generated by pyupgrade
...
Changes automatically made by
[`pyupgrade`](https://github.com/asottile/pyupgrade ), using the
`--py311-plus` flag, to be compatible with Python 3.11.
2024-06-23 18:17:08 -03:00
Georges-Antoine Assi
92d5c60f43
run trunk fmt
2024-06-23 15:09:55 +00:00
Georges-Antoine Assi
74cb0625b2
Merge branch 'master' into misc/move-fakeredis-to-test-dependency
2024-06-23 11:04:07 -04:00
Michael Manganiello
ed635d69cc
misc: Move fakeredis to test dependencies
...
`fakeredis` is only needed when running tests, so we can move it to the
`test` dependency group.
2024-06-23 11:10:25 -03:00
Michael Manganiello
fc53d77a58
misc: Compile constant regular expressions
...
Improve efficiency on reusable regular expressions, by compiling them.
2024-06-23 00:36:22 -03:00
zurdi
8de804ff27
redesigned select source on match rom dialog
2024-06-20 13:41:46 +02:00
zurdi
8386625f7f
bigger small size cover
2024-06-20 11:36:13 +02:00
Georges-Antoine Assi
057fef7ce9
better error handling when image fetch 503
2024-06-19 23:00:56 -04:00
Georges-Antoine Assi
6e049c1012
can accept nulls
2024-06-19 10:19:00 -04:00
Georges-Antoine Assi
e2c5ba68cb
backend tweaks + refactor
2024-06-18 23:21:17 -04:00
zurdi
d3fd75bff4
format from trunk
2024-06-18 19:20:26 +02:00