Skip to content

Commit 8f904fa

Browse files
committed
ignore pycache and etc.
1 parent 49fd6ef commit 8f904fa

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
venv
1+
venv
2+
__pycache__
3+
logs/*

__pycache__/api.cpython-38.pyc

-2.96 KB
Binary file not shown.

__pycache__/confs.cpython-38.pyc

-411 Bytes
Binary file not shown.

__pycache__/loggingsys.cpython-38.pyc

-3 KB
Binary file not shown.

api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
allow_methods=["*"],
2828
allow_headers=["*"],
2929
)
30-
@app.get("/api/")
30+
@app.get("/")
3131
def read_api_root():
3232
return cfg.dic_api
3333

@@ -95,7 +95,7 @@ def get_pyramid_geometric(
9595
fltOrderAmountGeometicParam,
9696
flt_起始單位數=fltOrderAmountInit)
9797
return dic_ret
98-
98+
9999
except Exception as e:
100100
log.error(e)
101101
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=e)

requirement.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
fastapi
2-
uvicorn
2+
uvicorn
3+
poetry

0 commit comments

Comments
 (0)