Commit Graph

157 Commits

Author SHA1 Message Date
Georges-Antoine Assi
d58691a79b always delete saves from fs + split delete dialogs 2025-03-27 23:37:42 -04:00
Georges-Antoine Assi
dfe3004f5d Direct download for rom files 2025-03-18 09:52:00 -04:00
Georges-Antoine Assi
384437b9e6 [HOTFIX] Fix dowbnloading multi-files in windows 2025-03-17 15:51:39 -04:00
Georges-Antoine Assi
79505bfce2 fix py type error 2025-03-02 13:37:28 -05:00
zurdi
c9a92efcbc Enhance ROM identification logic by adding properties for partially and fully identified states 2025-02-18 00:25:08 +00:00
zurdi
cfbcd82547 fix: changes based on review 2025-02-17 11:10:24 +00:00
zurdi
2e3858d032 Merge branch 'master' into feature/screenscraper-integration 2025-02-12 12:41:08 +00:00
zurdi
0660502f5a feat: screenscraper manual support 2025-02-06 18:53:23 +00:00
zurdi
9ae3b7da6f feat: added manuals to ss migration 2025-02-06 13:49:09 +00:00
zurdi
9d96501b9e Merge remote-tracking branch 'origin/master' into feature/screenscraper-integration 2025-01-31 00:12:44 +00:00
Georges-Antoine Assi
06c421cdb7 fixup lazy loading 2025-01-29 10:29:24 -05:00
Georges-Antoine Assi
cd724b7d1a migrate collections over to join table 2025-01-28 23:47:09 -05:00
Georges-Antoine Assi
21d2ce951e more fixes to loading games 2025-01-27 22:29:38 -05:00
Georges-Antoine Assi
e2c0a5f54d cleanup path covers 2025-01-27 18:43:01 -05:00
Georges-Antoine Assi
dbe4b71c7a super naive appraoch to loading virtual collections 2025-01-27 18:15:52 -05:00
Georges-Antoine Assi
a35701396c Merge branch 'master' into rom-hashing-background-task 2025-01-25 23:30:15 -05:00
Georges-Antoine Assi
b659ebe97f [ROMM-1529] 2025-01-23 19:29:16 -05:00
Georges-Antoine Assi
429958bfb3 Merge branch 'master' into rom-hashing-background-task 2025-01-17 14:39:45 -05:00
Georges-Antoine Assi
346bbb2db3 Add category column to rom file 2025-01-16 10:49:47 -05:00
Georges-Antoine Assi
696a1c6122 Merge branch 'master' into rom-hashing-background-task 2025-01-15 21:51:23 -05:00
Georges-Antoine Assi
195b0cf742 [HOTFIX] Change all DateTime columns to TIMESTAMP 2025-01-13 21:53:00 -05:00
Georges-Antoine Assi
aacad9c697 [HOTFIX] Safe cast values to int for first_release_date 2025-01-11 19:37:39 -05:00
Georges-Antoine Assi
b4b0d3fb85 [HOTFIX] Safe cast values to float 2025-01-11 19:22:31 -05:00
Georges-Antoine Assi
e84f7afef0 Make field nulalble 2025-01-11 17:19:42 -05:00
Georges-Antoine Assi
b5d2caddf4 add average rating as a column 2025-01-09 22:38:28 -05:00
Georges-Antoine Assi
9e4e716812 Rework columns in table view 2025-01-09 19:36:05 -05:00
zurdi
a7a2e3b253 Merge remote-tracking branch 'origin/master' into feature/screenscraper-integration 2025-01-09 15:13:49 +00:00
Michael Manganiello
7825bce7b8 fix: Use proper JSON contains function for PostgreSQL
Fix `json_array_contains_value` function to use the `@>` operator for
checking if a JSON array contains a value in PostgreSQL. This is
necessary because the `has_key` function only works for string values.

Also, remove `get_rom_collections` method, as it was doing the same
thing as `get_collections_by_rom_id`.

Fixes #1441.
2025-01-08 21:07:01 -03:00
zurdi
4aa2d49221 feat: fully integrated screenscrapper 2025-01-03 03:08:02 +00:00
Michael Manganiello
3f4a36a5ce feat: PostgreSQL compatibility
This change introduces PostgreSQL compatibility, by implementing the
following changes:

* Use `JSONB` instead of `JSON` for PostgreSQL databases. This is
  achieved by creating a custom `CustomJSON` type that uses `JSONB` on
  PostgreSQL and `JSON` on other databases, leveraging the variant
  mechanism of SQLAlchemy.
* Add `is_postgresql` function to check if the current database is
  PostgreSQL. Commonly used for migrations, but can be used to determine
  how to build queries based on the database engine.
* Add `json_array_contains_value` function to check if a JSON array
  includes a specific value. This function is needed as it's
  engine-specific.

Support for PostgreSQL is on a best-effort basis, and it relies on the
community for continued support and testing. The project's main database
is MariaDB.

Closes #667.
2024-12-31 12:36:33 -03:00
Michael Manganiello
3cce2844b9 fix: Remove MySQL specific dialect from migrations
Avoid using SQLAlchemy's specific MySQL dialect in migrations.

This change also fixes migration `0014` downgrade logic, which was
broken.
2024-12-29 20:30:36 -03:00
Georges-Antoine Assi
84813bd962 Merge branch 'master' into rom-hashing-background-task 2024-12-27 12:02:04 -05:00
zurdi
980cb3169a feat: add platform_custom_name and platform_display_name to ROM schemas and update related components 2024-12-25 19:57:43 +00:00
Georges-Antoine Assi
b398e70625 refactor downlaod roms endpoins 2024-12-21 17:40:45 -05:00
Georges-Antoine Assi
2e4e557eef fixup running scans and loading 2024-12-21 12:06:37 -05:00
Georges-Antoine Assi
2b600c2725 rename rom.file_size_bytes 2024-12-21 09:26:33 -05:00
Georges-Antoine Assi
55eee458a1 actaully complete backend 2024-12-21 00:37:37 -05:00
Georges-Antoine Assi
3fcce6606c complete updating the endpoints and models 2024-12-20 22:41:56 -05:00
Georges-Antoine Assi
e1ef8225c3 Create migration for new romfile 2024-12-20 10:42:53 -05:00
Georges-Antoine Assi
d172f2f3ef hotfix some sqlalchemy models 2024-12-09 19:21:00 -05:00
Michael Manganiello
743ecd83e7 misc: Fix some typing issues 2024-12-07 12:29:45 -03:00
Georges-Antoine Assi
6880d11a73 Merge branch 'master' into romm-1114 2024-09-21 12:30:39 -04:00
Georges-Antoine Assi
fc6455eccb Merge pull request #1137 from rommapp/romm-829
[ROMM-829] Status fields on rom user
2024-09-09 19:41:38 -04:00
Georges-Antoine Assi
8fc25cde99 use timezone aware datetimes 2024-09-09 10:11:46 -04:00
Georges-Antoine Assi
2765a6e2c3 [ROMM-1176] Fetch video ID and place in carousel 2024-09-08 23:47:25 -04:00
Georges-Antoine Assi
5f27c1cf39 Create new fields on rom_user 2024-08-29 15:56:01 -04:00
Georges-Antoine Assi
c3ea419c68 Add age ratings to UI + filters 2024-08-26 15:55:45 -04:00
Michael Manganiello
0fdbbe4625 misc: Upgrade Python to v3.12 and Alpine to v3.20
Included upgrades:
* Python: v3.12
* Alpine: v3.20 (which uses Python 3.12)
* nginx: v1.27.1
2024-08-15 20:14:32 -03:00
Georges-Antoine Assi
1ea1b326d3 move hashes to rom model 2024-08-11 22:38:22 -04:00
Georges-Antoine Assi
56037070fb only calc hashes exlpicit 2024-08-11 19:36:52 -04:00