Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hantang committed Oct 22, 2024
1 parent 4722238 commit 3916de2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ TARGET="${1:-site}"
SOURCE="${2:-web}"

echo "install deps"
pip install -r requirements.txt # >/dev/null 2>&1
pip install -r requirements.txt >/dev/null 2>&1

if [[ -d $TARGET ]]; then
echo "clean $TARGET"
rm -rf $TARGET
fi

echo "Create data"
python scripts/parse.py --input data --out $SOURCE --version v1 # >/dev/null 2>&1
python scripts/parse.py --input data --out $SOURCE >/dev/null 2>&1
cp -r $SOURCE $TARGET

echo "Copy assets"
Expand Down
4 changes: 2 additions & 2 deletions scripts/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ def save_to_json_v1(df, data_dir, save_file):
def tsv_to_json(data_dir: str, save_path: str, version: str) -> None:
save_dir = Path(save_path)
save_file = Path(save_dir, OUTPUT_PATHS["data"])
if not save_dir.exists():
if not save_file.parent.exists():
logging.info(f"Create dir = {save_dir}")
save_dir.mkdir(parents=True)
save_dir.parent.mkdir(parents=True)

df = read_source(data_dir)
if df is None:
Expand Down

0 comments on commit 3916de2

Please sign in to comment.