Fix CHSI catalogue session verification and pagination
This commit is contained in:
+2
-1
@@ -28,7 +28,7 @@ def create_app(data_dir=None):
|
||||
router = ProxyRouter(settings)
|
||||
transport = Transport(settings, router)
|
||||
auth = AuthService(transport, CookieVault(directory))
|
||||
jobs = JobManager(db, settings, transport)
|
||||
jobs = JobManager(db, settings, transport, auth=auth)
|
||||
if (ROOT / "data/schools.json").exists():
|
||||
db.index_schools(json.loads((ROOT / "data/schools.json").read_text(encoding="utf-8")))
|
||||
|
||||
@@ -41,6 +41,7 @@ def create_app(data_dir=None):
|
||||
app.state.db, app.state.jobs = db, jobs
|
||||
app.state.settings, app.state.router = settings, router
|
||||
app.state.pool = pool
|
||||
app.state.auth = auth
|
||||
|
||||
@app.middleware("http")
|
||||
async def local_access(request: Request, call_next):
|
||||
|
||||
Reference in New Issue
Block a user