mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 09:56:17 -05:00
Removing optional_session, passing session down from request middleware. Moving session param to the front of functions.
This commit is contained in:
parent
1747442db3
commit
344fe9035f
70 changed files with 1035 additions and 1110 deletions
|
|
@ -41,7 +41,7 @@ async def import_pbfs(_: Request, body: schema.ImportPost):
|
|||
@map_bp.get('/files')
|
||||
@openapi.description('Find any map files, get their import status')
|
||||
def get_files_status(request: Request):
|
||||
paths = lib.get_import_status()
|
||||
paths = lib.get_import_status(request.ctx.session)
|
||||
paths = sorted(paths, key=lambda i: str(i.path))
|
||||
pending = request.app.shared_ctx.map_importing.get('pending')
|
||||
if pending:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue