Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix #65

Merged
merged 1 commit into from
Oct 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]}