Skip to content

Commit

Permalink
bad code
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDuPont committed Mar 28, 2024
1 parent 52357e2 commit 5d5ef2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: CI

on:
push:
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/api/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def read_root():
return {"Hello": "World"}






@app.get("/items/{item_id}")
def read_item(item_id: int, q: Union[str, None] = None):
return {"item_id": item_id, "q": q}

0 comments on commit 5d5ef2e

Please sign in to comment.