Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lunakv committed Oct 1, 2023
1 parent 6842f43 commit a3b9428
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 a3b9428

Please sign in to comment.