Georges-Antoine Assi
7555c0607a
[ROMM-1025] Replace game-and-watch with g-and-w
2024-07-25 14:26:06 -04:00
Michael Manganiello
7c6dfa8e50
feat: Use ContextVar to share httpx AsyncClient instance between requests
2024-07-23 01:29:32 -03:00
Michael Manganiello
f20a9ffe34
fix: Avoid recursive os.walk calls
...
`os.walk` is a generator that can iteratively navigate from the
specified path, top-bottom. However, most of the calls to `os.walk` in
the project cast the call to `list()`, which makes it traverse the path
and recursively find all nested directories.
This is commonly not needed, as we end up just using a `[0]` index to
only access the root path.
This change adds a few utils that simplifies listing files/directories,
and by default does it non-recursively. Performance gains shouldn't be
noticeable in systems with high-speed storage, but we can avoid the edge
cases of users having too many nested directories, by avoiding unneeded
I/O.
2024-07-13 15:30:04 -03:00
Michael Manganiello
e1bcd9cc06
misc: Use Python future annotations
...
Simplify annotations by using `__future__.annotations`, so there's no
need to add typing using types as strings.
2024-06-30 12:19:37 -03:00
Michael Manganiello
3bd37165d4
fix: Call Redis HSET in bulk
2024-06-26 00:17:49 -03:00
Michael Manganiello
3d4a66cbca
misc: Remove mentions to unneeded Poetry mention
...
Poetry 1.8.0 already includes support for `package-mode = false`, so
there's no need to install a Poetry fork anymore.
2024-06-24 07:38:27 -03:00
Georges-Antoine Assi
7635bbeac2
run trunk fixes
2024-05-24 16:59:54 -04:00
Georges-Antoine Assi
b075e93321
Merge branch 'master' into trunk-io
2024-05-24 16:47:19 -04:00
Georges-Antoine Assi
f73a6f48b9
more refactoring
2024-05-23 21:13:17 -04:00
Georges-Antoine Assi
2b60402a04
start fixing mypy issues
2024-05-21 19:22:14 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
880345f20c
ruff-only pre-commit
2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00
Georges-Antoine Assi
6d3bcff4f1
move files to utils
2024-04-03 22:33:41 -04:00
Zurdi
956a9fb647
clean utils folder
2024-02-06 23:03:44 +01:00
Georges-Antoine Assi
885ae3fa06
second attempt to fix tests
2024-02-05 17:41:17 -05:00
Georges-Antoine Assi
018652fb67
fix tests
2024-02-05 17:16:44 -05:00
Zurdi
3de72d075c
fixed tests
2024-02-05 11:28:39 +01:00
Zurdi
066f640089
fixed tests
2024-02-01 09:48:47 +01:00
Zurdi
37c359fa97
path_cover and url_cover refactored
2024-02-01 00:22:44 +01:00
Georges-Antoine Assi
0ca6d74c26
Add file_name_no_ext column
2024-01-20 15:09:11 -05:00
Zurdi
720a9617bc
fixed unit tests
2024-01-19 15:10:01 +01:00
Georges-Antoine Assi
81b5bcf9ba
refactor handler names
2024-01-18 14:04:35 -05:00
Georges-Antoine Assi
86b55c68a3
fix circular import + migration 15 downgrade
2024-01-18 13:44:07 -05:00
Georges-Antoine Assi
eaad1f2353
small fixes
2024-01-17 21:22:07 -05:00
Georges-Antoine Assi
9495942084
Fix the rest of the tests
2024-01-17 10:57:07 -05:00
Georges-Antoine Assi
7963e243dc
Fix batch of test fixes
2024-01-17 10:26:37 -05:00
Zurdi
77694c6f0e
Merge remote-tracking branch 'origin/stats-endpoint' into refactor/backend
2024-01-16 22:25:27 +01:00
Georges-Antoine Assi
33645641b8
Add stats endpoint + refactor rom file size
2024-01-16 11:06:05 -05:00
Zurdi
1d2c9e7d05
standarized GET endpoints for roms and platforms
2024-01-14 02:34:37 +01:00
Zurdi
93f6cb7651
Merge branch 'feature/manage_config_from_ui' into refactor/backend
2024-01-13 02:17:19 +01:00
Zurdi
4b9e76f550
backend structure refactor
2024-01-12 23:44:27 +01:00
Zurdi
180d6e8b91
added create exclusion button
2024-01-11 20:41:06 +01:00
Zurdi
47a83a525b
config is loaded dinamycally and platform bindings can be removed from UI
2024-01-11 15:26:41 +01:00
Zurdi
fb1c02459e
added methods to add and remove platforms bindings to config manager
2024-01-11 00:29:41 +01:00
Zurdi
06d041fa30
catch timeout from check new version
2024-01-10 15:17:51 +01:00
Georges-Antoine Assi
f5996b94eb
dialog to delete from fs
2024-01-09 22:23:50 -05:00
Zurdi
5b51bb150f
generated new types
2024-01-09 21:40:19 +01:00
Georges-Antoine Assi
ffd9a2570e
Fix tests
2024-01-09 13:34:47 -05:00
Georges-Antoine Assi
5762270f62
Merge branch 'master' into romm-55
2024-01-09 13:06:51 -05:00
Zurdi
cda45e6d9c
Merge remote-tracking branch 'origin/master'
2024-01-09 16:26:43 +01:00
Zurdi
eea7e41940
docstrings added to endpoints + organized imports + formatted code
2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
6d5ef25c17
Hotfix excluding files with no extensions
2024-01-09 09:39:51 -05:00
Zurdi
1641e6bd16
timeout to check new version added
2024-01-09 09:57:29 +01:00
Zurdi
4dd35e9e40
check if new version is available
2024-01-09 01:15:17 +01:00
Georges-Antoine Assi
957d06e883
Platform delete only removes from DB
2024-01-08 15:15:43 -05:00
Georges-Antoine Assi
17d35bfb36
Merge branch 'master' into romm-55
2024-01-08 09:49:17 -05:00
Zurdi
c1460f62eb
fix upload state
2024-01-07 12:38:37 +01:00
Georges-Antoine Assi
df9f1f5deb
[ROMM-575] File exclusions accept wildcards
2024-01-06 21:58:38 -05:00
Georges-Antoine Assi
912bba57a2
Catch missing screens folder
2024-01-06 18:58:31 -05:00