Mypi fix #37

Merged
JustinZeus merged 2 commits from mypi-fix into main 2026-03-01 23:04:55 +01:00
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,9 @@
"Bash(pip install ruff)", "Bash(pip install ruff)",
"Bash(uvx ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)", "Bash(uvx ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
"Bash(git add app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py docs/website/package-lock.json)", "Bash(git add app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py docs/website/package-lock.json)",
"Bash(git push)" "Bash(git push)",
"Bash(uvx ruff format --check app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
"Bash(test -f docs/website/package-lock.json)"
], ],
"additionalDirectories": [ "additionalDirectories": [
"/home/jv/src/personal/playground/scholar_scraper/scholar-scraper/frontend/src" "/home/jv/src/personal/playground/scholar_scraper/scholar-scraper/frontend/src"

View file

@ -55,7 +55,7 @@ def _apply_scholar_http_settings(payload: AdminScholarHttpSettingsUpdateRequest)
max_length=_MAX_ACCEPT_LANGUAGE_LENGTH, max_length=_MAX_ACCEPT_LANGUAGE_LENGTH,
) )
cookie = _normalize_header_value( cookie = _normalize_header_value(
payload.cookie, payload.cookie or "",
field_name="cookie", field_name="cookie",
max_length=_MAX_COOKIE_LENGTH, max_length=_MAX_COOKIE_LENGTH,
) )