File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ class Settings(arxiv_base.Settings):
1919 FLASKS3_FORCE_MIMETYPE : bool = True
2020 FLASKS3_ACTIVE : bool = False
2121
22+ RECORDS_LIMIT : int = 2500
23+ IDENTIFIERS_LIMIT : int = 20000
24+
2225 def check (self ) -> None :
2326 """A check and fix up of a settings object."""
2427 if 'sqlite' in self .CLASSIC_DB_URI :
Original file line number Diff line number Diff line change 11from datetime import datetime , timezone
22from oaipmh .data .oai_properties import MetadataFormat
3+ from oaipmh .config import Settings
34
4- RECORDS_LIMIT = 2500
5- IDENTIFIERS_LIMIT = 20000
5+ settings = Settings ()
6+ RECORDS_LIMIT = settings .RECORDS_LIMIT
7+ IDENTIFIERS_LIMIT = settings .IDENTIFIERS_LIMIT
68
79SUPPORTED_METADATA_FORMATS = {
810 "oai_dc" :MetadataFormat (
Original file line number Diff line number Diff line change 44from flask import Flask , render_template
55from flask_s3 import FlaskS3
66from flask .logging import default_handler
7- from werkzeug .exceptions import HTTPException
87
98from arxiv .base import Base
10- from arxiv .db import config_query_timing , configure_db
9+ from arxiv .db import configure_db
1110from arxiv .integration .fastly .headers import add_surrogate_key
1211
1312from oaipmh .data .oai_errors import OAIException
You can’t perform that action at this time.
0 commit comments