diff --git a/.github/workflows/deploy_with_git.yml b/.github/workflows/deploy_with_git.yml index 0226405..667b25c 100644 --- a/.github/workflows/deploy_with_git.yml +++ b/.github/workflows/deploy_with_git.yml @@ -30,7 +30,7 @@ jobs: SSH_DEPLOY_COMMAND="cd ${{secrets.SSH_DEPLOY_PATH}} && git pull && git submodule update" HAS_PYTHON_CHANGE=true GIT_CHANGED_FILE=$(git show --name-only) - if [[ $(echo $GIT_CHANGED_FILE | grep "\.py") == "" && $(echo $GIT_CHANGED_FILE | grep "\.sh") == "" ]]; then + if [[ $(echo $GIT_CHANGED_FILE | grep "\.py") == "" && $(echo $GIT_CHANGED_FILE | grep "\.sh") == "" && $(echo $GIT_CHANGED_FILE | grep "aiohttp") == "" ]]; then HAS_PYTHON_CHANGE=false fi diff --git a/aiohttp b/aiohttp index 79561a6..0d7352a 160000 --- a/aiohttp +++ b/aiohttp @@ -1 +1 @@ -Subproject commit 79561a69d4030d245ec5803069d7803c1ef663c6 +Subproject commit 0d7352aeca2ac52a4e18aa786bf2aefd47129bbe diff --git a/web_viewer/__init__.py b/web_viewer/__init__.py index 1b24ba4..effe3f8 100644 --- a/web_viewer/__init__.py +++ b/web_viewer/__init__.py @@ -86,6 +86,7 @@ def dict_factory(cursor, row): d[col[0]] = row[idx] return d + def total(_: web.Request): if "DB_NAME" not in config: return web.json_response({}, headers=VITE_CORS_HEADER) @@ -115,6 +116,7 @@ def daily_chart(_: web.Request): res = web.json_response(daily_chart, headers=VITE_CORS_HEADER) return res + def monthly_chart(_: web.Request): if "DB_NAME" not in config: return web.json_response([], headers=VITE_CORS_HEADER) @@ -130,6 +132,7 @@ def monthly_chart(_: web.Request): res = web.json_response(monthly_chart, headers=VITE_CORS_HEADER) return res + def yearly_chart(_: web.Request): if "DB_NAME" not in config: return web.json_response([], headers=VITE_CORS_HEADER)