17 Commits

Author SHA1 Message Date
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Michael Manganiello
2a0b273955 fix: Invalidate fixture cache on file change
The cache for fixture files was being set without a TTL, which meant
that updates to the fixture files were not reflected in the cache.

This change saves the MD5 hash of the fixture file in a different key,
and compares it to the current hash of the file before deciding whether
to update the cache.

Fixes #2347
2025-08-30 20:38:32 -03: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
Zurdi
4b9e76f550 backend structure refactor 2024-01-12 23:44:27 +01:00
Zurdi
eea7e41940 docstrings added to endpoints + organized imports + formatted code 2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
e3771f5fae Use password for redis in redis.py 2023-10-30 22:18:43 -04:00
Georges-Antoine Assi
5eced8a94c Merge branch 'master' into scheduled-tasks 2023-10-30 11:19:47 -04:00
zurdi
493dabc3df [ROMM-412] Fixed redis_url for websocket 2023-10-29 20:29:28 +01:00
zurdi
7562cee594 [ROMM-412] Support for secured redis added 2023-10-29 20:15:12 +01:00
Georges-Antoine Assi
01c0baf8f8 Merge branch 'master' into scheduled-tasks 2023-08-26 12:09:43 -04:00
Georges-Antoine Assi
3b1e248191 Only check if redis is enabled in env to start using it 2023-08-25 16:50:02 -04:00
Georges-Antoine Assi
2b8d388866 Clarify some environment variables 2023-08-25 16:47:18 -04:00
Georges-Antoine Assi
6a09c2da33 Add scheduled tasks for library scan + titledb update 2023-08-22 22:36:31 -04:00
Georges-Antoine Assi
88ac2a7353 introduce mypy with lib types + remove ignores + fix types 2023-08-08 23:31:59 -04:00
Georges-Antoine Assi
a5c207cc80 Changes from self review 2023-08-07 20:37:30 -04:00
Georges-Antoine Assi
774d023943 Move sockets to utils 2023-08-07 20:32:22 -04:00
Georges-Antoine Assi
aa9e34754f Patch out redis when not running 2023-08-07 20:05:14 -04:00