From c3e02baf4ad566ea8e2c1c1069d273eeff2c9e23 Mon Sep 17 00:00:00 2001 From: muc Date: Thu, 10 Sep 2026 18:41:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(paths):=20=E8=B7=AF=E5=BE=84=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=9B=B4=E6=96=B0=20(mc/gaokao-site=20=E2=86=92=20pro?= =?UTF-8?q?jects/gaokao-site)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/migration_add_tuition_schid.py | 2 +- sync.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/migration_add_tuition_schid.py b/scripts/migration_add_tuition_schid.py index f36a842..a911035 100644 --- a/scripts/migration_add_tuition_schid.py +++ b/scripts/migration_add_tuition_schid.py @@ -36,7 +36,7 @@ from tuition_data import get_tuition_for_school, ALL_TUITION_RATES # ============================================================ REMOTE_DB = "/www/wwwroot/gaokao/gaokao_henan.db" SCHID_XLSX = "/tmp/最新25年招生章程链接.xlsx" -LOCAL_DB = os.path.expanduser("~/mc/gaokao-site/gaokao_henan.db") +LOCAL_DB = os.path.expanduser("~/projects/gaokao-site/gaokao_henan.db") def get_db_path(local=False): diff --git a/sync.sh b/sync.sh index dbe5022..6e8681a 100755 --- a/sync.sh +++ b/sync.sh @@ -1,13 +1,13 @@ #!/bin/bash # sync.sh - 从服务器拉取最新文件,本地 commit -# 用法: bash ~/mc/gaokao-site/sync.sh +# 用法: bash ~/projects/gaokao-site/sync.sh set -e -cd ~/mc/gaokao-site +cd ~/projects/gaokao-site echo "=== 拉取服务器文件 ===" sshpass -p 'xue.2538' rsync -avz --exclude='gaokao_henan.db' --exclude='__pycache__' --exclude='*.pyc' --exclude='*.log' \ - root@192.144.179.11:/www/wwwroot/gaokao/ ~/mc/gaokao-site/ + root@192.144.179.11:/www/wwwroot/gaokao/ ~/projects/gaokao-site/ echo "=== 检查变更 ===" git status --short @@ -23,5 +23,5 @@ else fi echo "=== 完成 ===" -echo "本地仓库: ~/mc/gaokao-site/" -echo "git log: ~/mc/gaokao-site/.git/logs/" \ No newline at end of file +echo "本地仓库: ~/projects/gaokao-site/" +echo "git log: ~/projects/gaokao-site/.git/logs/" \ No newline at end of file