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
Michael Manganiello
fe5759fec7
fix: Initialize context on scheduled task
...
Only for this scheduled task, the run was failing because there was no
context initialization that created the httpx session.
Other schedules work as expected, because they do have context
initialization in the functions they call to (e.g. `scan_platforms`).
2024-07-27 01:22:29 -03:00
Michael Manganiello
aced1f1ff2
misc: Migrate IGDBBaseHandler to async
...
Convert `IGDBBaseHandler` methods to be asynchronous, and use an `httpx`
async client, instead of `requests` sync client.
This change also removes the direct dependency with `requests`, as the
project no longer uses it, preferring `httpx` instead.
2024-07-26 21:19:01 -03:00
Michael Manganiello
6eb8e6aeff
misc: Add Redis async cache
...
Introduce an asynchronous Redis instance to be used in async functions.
Also, this change migrates most of the sync cache usage to the new async
cache.
2024-07-21 18:23:19 -03:00
Michael Manganiello
04b64f1d97
fix: Filter Switch titledb entries with empty id
...
The existing code was failing after changes on the upstream JSON file
that included entries with `null` ID.
2024-07-18 11:00:30 -03:00
Michael Manganiello
3bd37165d4
fix: Call Redis HSET in bulk
2024-06-26 00:17:49 -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
2b60402a04
start fixing mypy issues
2024-05-21 19:22:14 -04:00
Georges-Antoine Assi
b2085f87a8
bunch of fixes for trunk
2024-05-21 17:10:11 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
16db9b03bc
[HOTFIX] Fix nightly scans resetting igdb/moby IDs
2024-04-02 15:22:25 -04:00
Georges-Antoine Assi
770313c1f1
hset all in cache for quick access
2024-03-26 19:03:42 -04:00
Georges-Antoine Assi
1fe7d3589a
autoload indexes in memory
2024-03-26 18:05:58 -04:00
Georges-Antoine Assi
efcd3c00d1
store swtich files in redis
2024-03-26 17:18:46 -04:00
Georges-Antoine Assi
4174b9753e
remove mame from scheduled tasks and embed fixture
2024-03-26 16:49:02 -04:00
Georges-Antoine Assi
10be0238cf
fix saving fixtures
2024-03-06 20:04:05 -05:00
Georges-Antoine Assi
6bcadec702
everything we need for 3.0
2024-02-01 18:13:16 -05:00
Zurdi
3c33d46ff2
Merge branch 'master' into refactor/backend
2024-01-15 13:36:38 +01:00
Zurdi
4b9e76f550
backend structure refactor
2024-01-12 23:44:27 +01:00
Georges-Antoine Assi
b0276e7521
Remove file hash from mame file url
2024-01-12 13:21:33 -05:00
Zurdi
33b6364c8a
endpoints and responses restructured
2024-01-11 23:57:06 +01:00
Zurdi
eea7e41940
docstrings added to endpoints + organized imports + formatted code
2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
48c350d403
Await call to scan_platform
2024-01-02 10:28:53 -05:00
Georges-Antoine Assi
1e72672b20
Option to manually run tasks
2023-12-04 13:40:33 -05:00
Georges-Antoine Assi
b99cce243b
Save the entire value object
2023-11-04 22:04:27 -04:00
Georges-Antoine Assi
46c2d909f6
Add check for productID in file name
2023-11-04 21:50:27 -04:00
Georges-Antoine Assi
50199611eb
Add mame xml and scheduled tasks
2023-09-15 13:11:41 -04:00
Georges-Antoine Assi
d748f4b75b
Gracefully handle missing titledb file
2023-09-01 22:34:37 -04:00
Georges-Antoine Assi
a5f0942672
Refactor prediodic tasks into utils class
2023-08-26 21:38:27 -04:00
Georges-Antoine Assi
0a756f8fd8
Add watchdog and watch roms
2023-08-26 19:28:36 -04:00
Georges-Antoine Assi
3d116e971d
Run scheduler and schedule tasks
2023-08-26 13:17:43 -04:00
Georges-Antoine Assi
18fff1edef
A little code cleanup
2023-08-25 19:24:36 -04:00
Georges-Antoine Assi
6a09c2da33
Add scheduled tasks for library scan + titledb update
2023-08-22 22:36:31 -04:00