Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfilik committed Jun 20, 2024
1 parent 292e873 commit 7526627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions xas-standards-api/src/xas_standards_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ async def read_data(

return get_data(session, id)


@app.get("/api/admin/data/{id}")
async def read_admin_data(
id: int, session: Session = Depends(get_session)
):
async def read_admin_data(id: int, session: Session = Depends(get_session)):

return get_file_as_text(session, id)


@app.post("/uploadfiles/")
async def create_upload_files(
files: Annotated[
Expand Down
2 changes: 1 addition & 1 deletion xas-standards-api/src/xas_standards_api/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_file(session, id):
return FileResponse(xdi_location)


def get_file_as_text(session,id):
def get_file_as_text(session, id):
xdi_location = get_filepath(session, id)
with open(xdi_location) as fh:
file = fh.read()
Expand Down

0 comments on commit 7526627

Please sign in to comment.