temp commit
This commit is contained in:
parent
8760f27b51
commit
0e9e49df16
193 changed files with 23228 additions and 935 deletions
|
|
@ -38,6 +38,9 @@ def _serialize_settings(user_settings) -> dict[str, object]:
|
|||
"cooldown_network_seconds": max(60, int(settings_module.ingestion_safety_cooldown_network_seconds)),
|
||||
},
|
||||
"safety_state": run_safety_service.get_safety_state_payload(user_settings),
|
||||
"openalex_api_key": user_settings.openalex_api_key,
|
||||
"crossref_api_token": user_settings.crossref_api_token,
|
||||
"crossref_api_mailto": user_settings.crossref_api_mailto,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -107,6 +110,7 @@ def _log_settings_update(*, user_id: int, updated) -> None:
|
|||
"run_interval_minutes": updated.run_interval_minutes,
|
||||
"request_delay_seconds": updated.request_delay_seconds,
|
||||
"nav_visible_pages": updated.nav_visible_pages,
|
||||
"openalex_api_key": "SET" if updated.openalex_api_key else "UNSET",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
@ -169,6 +173,9 @@ async def update_settings(
|
|||
run_interval_minutes=parsed_interval,
|
||||
request_delay_seconds=parsed_delay,
|
||||
nav_visible_pages=parsed_nav_visible_pages,
|
||||
openalex_api_key=payload.openalex_api_key,
|
||||
crossref_api_token=payload.crossref_api_token,
|
||||
crossref_api_mailto=payload.crossref_api_mailto,
|
||||
)
|
||||
await _clear_expired_cooldown_with_log(
|
||||
db_session,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue