Skip to content

Commit

Permalink
Merge pull request #65 from lunakv/0.5.1-hotfix
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
lunakv authored Oct 1, 2023
2 parents 97c7c6a + e01bc66 commit 43b3e1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ RUN poetry install --no-interaction --no-cache --without dev

# Run app
COPY src /code/src
CMD ["poetry", "run", "uvicorn", "main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
CMD ["poetry", "run", "uvicorn", "src.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
2 changes: 1 addition & 1 deletion devstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

if __name__ == "__main__":
load_dotenv()
uvicorn.run("main:app", host="localhost", port=8000, reload=True)
uvicorn.run("src.main:app", host="localhost", port=8000, reload=True)
4 changes: 2 additions & 2 deletions src/mtr/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def raw_mtr_by_date(
return FileResponse(path)


@router.get("/metadata/mtr", response_model=schemas.MtrMetadata, include_in_schema=False)
@router.get("/metadata/mtr", include_in_schema=False)
def mtr_metadata(db: Session = Depends(get_db)):
meta = service.get_mtr_metadata(db)
return {"data": meta}
return {"data": [{"creationDay": d} for d in meta]}

0 comments on commit 43b3e1c

Please sign in to comment.