mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-09 05:29:51 +08:00
fix: quick fix gitignore problem
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -164,8 +164,6 @@ cython_debug/
|
||||
# Custom
|
||||
/src/test.py
|
||||
|
||||
/src/module/parser/analyser/tmdb_parser.py
|
||||
|
||||
/src/module/run_debug.sh
|
||||
/src/module/debug_run.sh
|
||||
/src/module/__version__.py
|
||||
@@ -175,7 +173,7 @@ cython_debug/
|
||||
|
||||
test.*
|
||||
.run
|
||||
|
||||
/dev.sh
|
||||
/src/templates/
|
||||
/src/config/
|
||||
/src/debuger.py
|
||||
|
||||
24
dev.sh
24
dev.sh
@@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# This script is used to run the development environment.
|
||||
|
||||
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple install -r requirements.txt
|
||||
|
||||
cd src || exit
|
||||
|
||||
CONFIG_DIR="config"
|
||||
|
||||
if [ ! -d "$CONFIG_DIR" ]; then
|
||||
echo "The directory '$CONFIG_DIR' is missing."
|
||||
mkdir config
|
||||
fi
|
||||
|
||||
VERSION_FILE="module/__version__.py"
|
||||
|
||||
if [ ! -f "$VERSION_FILE" ]; then
|
||||
echo "The file '$VERSION_FILE' is missing."
|
||||
echo "VERSION='DEV_VERSION'" >> "$VERSION_FILE"
|
||||
fi
|
||||
|
||||
python3 main.py
|
||||
Submodule docs/wiki updated: 4311a8def4...519e381e8a
@@ -14,7 +14,7 @@ async def get_log(current_user=Depends(get_current_user)):
|
||||
status_code=status.HTTP_401_UNAUTHORIZED, detail="invalid token"
|
||||
)
|
||||
if os.path.isfile(LOG_PATH):
|
||||
with open(LOG_PATH, "r") as f:
|
||||
with open(LOG_PATH, "rb") as f:
|
||||
return Response(f.read(), media_type="text/plain")
|
||||
else:
|
||||
return Response("Log file not found", status_code=404)
|
||||
|
||||
Reference in New Issue
Block a user