Commit Graph

335 Commits

Author SHA1 Message Date
Georges-Antoine Assi
3575783769 Merge branch 'master' into romm-821 2025-10-21 21:46:23 -04:00
Georges-Antoine Assi
6bde10fe97 massive refactor of data loading in console mode 2025-10-21 10:42:59 -04:00
Georges-Antoine Assi
97ed8072dd add is_favorite migration 2025-10-18 13:27:19 -04:00
Georges-Antoine Assi
6ccae17eb3 stoer favorites on collection 2025-10-17 18:19:40 -04:00
Georges-Antoine Assi
9269e36608 populate scan results with edge 2025-10-17 15:32:38 -04:00
Georges-Antoine Assi
3cfc52234a start work on gamelist.xml extraction 2025-10-16 23:16:39 -04:00
Georges-Antoine Assi
ae9b01e38d update rules 2025-10-05 14:42:57 -04:00
Georges-Antoine Assi
06984998ab Merge pull request #2445 from rommapp/romm-2416
[ROMM-2416] Use python timezone aware datetime as defaults for created_at/updated_at
2025-09-26 16:57:16 -04:00
Georges-Antoine Assi
b5776be475 Split rom.multi into more specific fields 2025-09-25 18:48:27 -04:00
Georges-Antoine Assi
91fb6f6f23 initialize field 2025-09-23 18:23:08 -04:00
Georges-Antoine Assi
968e0c3560 add comment 2025-09-23 18:19:40 -04:00
Georges-Antoine Assi
3a3bffe699 progressive scan steps for each game 2025-09-23 10:23:57 -04:00
Georges-Antoine Assi
6eed0b6c7f Set platform metadata slugs on models in DB 2025-09-22 21:48:45 -04:00
Georges-Antoine Assi
a906deb2ed Update known bios slugs with correct psx slug 2025-09-22 14:43:19 -04:00
Georges-Antoine Assi
0a3c190cc5 use utc_now func 2025-09-17 11:14:03 -04:00
Georges-Antoine Assi
d0a8f6fa4f [ROMM-2416] Use python timezone aware datetime as defaults for create_at/updated_at 2025-09-17 10:49:05 -04:00
Georges-Antoine Assi
4ed1d82a46 add platform checks 2025-09-15 10:28:32 -04:00
Georges-Antoine Assi
123b3f6b8b create makeshift howlongtobeet handler 2025-09-14 19:39:38 -04:00
Georges-Antoine Assi
3c4113f8a8 Merge branch 'master' into flashpoint-metadata-handler 2025-09-11 21:27:48 -04:00
Georges-Antoine Assi
69b697034c fix loading missing covers virtula collection 2025-09-05 23:02:47 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Georges-Antoine Assi
ee0110699d fix id column type 2025-08-27 11:23:27 -04:00
Georges-Antoine Assi
bf0d864d84 Add flashpoint as a metadata handler 2025-08-27 11:04:13 -04:00
Georges-Antoine Assi
f9c2c2f916 remove unused import 2025-08-23 15:25:05 -04:00
Georges-Antoine Assi
e615f39905 grab file size from rom for paltform 2025-08-23 15:22:29 -04:00
Georges-Antoine Assi
1d5cd64fb8 move is_verified to db 2025-08-21 22:58:22 -04:00
Georges-Antoine Assi
8ed107336f only print queries once 2025-08-21 22:34:07 -04:00
Georges-Antoine Assi
0cc9789a12 fix get_scalar_roms 2025-08-19 23:40:23 -04:00
Georges-Antoine Assi
048f8ba248 move fs_size_bytes back to db 2025-08-19 19:38:56 -04:00
Georges-Antoine Assi
cde0c0681f changes from review 2025-08-19 17:07:05 -04:00
Georges-Antoine Assi
5a5abe4e62 changes from self review 2025-08-19 16:27:46 -04:00
Georges-Antoine Assi
7370f83b8f load sibling_roms for individual roms 2025-08-19 16:08:03 -04:00
Georges-Antoine Assi
0dadf8681e fix updating smart collections 2025-08-19 15:53:03 -04:00
Georges-Antoine Assi
078b140ddb simplify group_id 2025-08-19 12:50:25 -04:00
Georges-Antoine Assi
13ac6104ce Raise lazy joins so all complex joins are explicit 2025-08-19 10:02:11 -04:00
Georges-Antoine Assi
f3bace0a7d bit of metadata cleanup 2025-08-15 09:50:29 -04:00
Georges-Antoine Assi
40c628aa1a simplify multi check 2025-08-15 09:49:35 -04:00
Georges-Antoine Assi
488dcc28d8 fix tests 2025-08-15 09:47:16 -04:00
Georges-Antoine Assi
4cf3641fa3 Use column properties to calculate fs_size_bytes 2025-08-14 23:14:41 -04:00
Michael Manganiello
80291f4be1 misc: Move cache initialization to startup script
Guarantee that cache is initialized during startup, and only once,
instead of every time a `MetadataHandler` object is instantiated.

Also, improve logic to determine `fixtures` paths.
2025-08-13 12:26:15 -03:00
Michael Manganiello
00d7815889 fix: Improve performance on asset screenshot retrieval
When retrieving the related screenshot for a `Save` or `State`, we were
retrieving a very heavy representation of the associated `Rom` object,
only to iterate through its screenshots to find the one we needed.

This change modifies the `Save` and `State` models to directly query the
`Screenshot` model, which is much faster and more efficient. The
`DBScreenshotsHandler` has been updated to include a new `filter` method
that will simplify building queries using SQLAlchemy, something we can
extend to other handlers in the future.

Fixes #1925.
2025-08-10 15:33:13 -03:00
Michael Manganiello
ba21cbc1e1 misc: Separate tests folder from backend code
Create separate `tests/` folder for all tests. This will also simplify
not copying tests code into the Docker image.
2025-08-08 12:49:13 -03:00
Georges-Antoine Assi
03c8eede8b Merge branch 'master' into smart-collections 2025-08-02 00:30:58 -04:00
Georges-Antoine Assi
9f53f6eccc complete smart collection 2025-07-25 17:37:55 -04:00
Georges-Antoine Assi
1a57ff2c6b complete cycle of creation 2025-07-25 17:24:38 -04:00
Georges-Antoine Assi
2a8fec94e6 update smart collection model 2025-07-25 16:27:10 -04:00
Georges-Antoine Assi
59a2e5d5aa move away from explicit LIST use 2025-07-24 16:41:17 -04:00
Georges-Antoine Assi
1bb33be803 more work migrating slugs 2025-07-24 09:30:57 -04:00
Georges-Antoine Assi
595c52bcab Unify singular slugs 2025-07-23 21:52:52 -04:00
Georges-Antoine Assi
f7b030ba10 get backend working sorta 2025-07-22 18:10:12 -04:00