fix: update linter versions and improve query filter logic in roms_handler

This commit is contained in:
zurdi
2025-06-18 16:29:07 +00:00
parent 08682d4f9a
commit a4c60e73a1
3 changed files with 9 additions and 11 deletions

View File

@@ -21,24 +21,24 @@ lint:
- pyright
enabled:
- markdownlint@0.45.0
- eslint@9.28.0
- eslint@9.29.0
- actionlint@1.7.7
- bandit@1.8.3
- bandit@1.8.5
- black@25.1.0
- checkov@3.2.441
- checkov@3.2.442
- git-diff-check
- isort@6.0.1
- mypy@1.16.0
- osv-scanner@2.0.2
- mypy@1.16.1
- osv-scanner@2.0.3
- oxipng@9.1.5
- prettier@3.5.3
- ruff@0.11.13
- ruff@0.12.0
- shellcheck@0.10.0
- shfmt@3.6.0
- svgo@3.3.2
- taplo@0.9.3
- trivy@0.63.0
- trufflehog@3.89.1
- trufflehog@3.89.2
- yamllint@1.37.1
ignore:
- linters: [ALL]

View File

@@ -261,9 +261,7 @@ class DBRomsHandler(DBBaseHandler):
return query.filter(text(conditions))
else:
return query.filter(
or_(
*(Rom.hasheous_metadata[key].as_boolean() for key in keys_to_check)
)
or_(*(Rom.hasheous_metadata[key].as_boolean() for key in keys_to_check))
)
def filter_by_genre(self, query: Query, selected_genre: str):

View File

@@ -55,7 +55,7 @@ async function onScan() {
platforms: [Number(route.params.platform)],
roms_ids: romsStore.selectedRoms.map((r) => r.id),
type: "quick", // Quick scan so we can filter by selected roms
apis: heartbeat.getMetadataOptions().map((s) => s.value),
apis: heartbeat.getEnabledMetadataOptions().map((s) => s.value),
});
}