Skip to content

Commit

Permalink
add2
Browse files Browse the repository at this point in the history
  • Loading branch information
innovatorved committed Nov 8, 2023
1 parent 9676885 commit 5e2936b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
SERVER_NAME: ${{ secrets.SERVER_NAME }}
SERVER_HOST: ${{ secrets.SERVER_HOST }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
POSTGRES_DATABASE: ${{ secrets.POSTGRES_DATABASE_URL }}
POSTGRES_DATABASE_URL: ${{ secrets.POSTGRES_DATABASE_URL }}
run: pytest
2 changes: 1 addition & 1 deletion app/core/models/Transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def create(self, user_id: UUID, text: str, duration: int):
self.db.refresh(self.transcribe_data)
except Exception as e:
self.db.rollback()
raise e
raise e
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
allow_headers=["*"],
)


@app.get("/", include_in_schema=False)
async def redirect_to_docs():
return RedirectResponse(url="/docs")
Expand Down
2 changes: 1 addition & 1 deletion app/tests/test_api/test_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
def test_ping_main():
response = client.get("/ping")
assert response.status_code == 200
assert response.json() == {"ping": "pong"}
assert response.json() == {"ping": "pong1"}

0 comments on commit 5e2936b

Please sign in to comment.