Skip to content

Commit

Permalink
Merge pull request #132 from hallieswan/AG-1640
Browse files Browse the repository at this point in the history
AG-1640: align key with name expected by sage-monorepo
  • Loading branch information
hallieswan authored Feb 4, 2025
2 parents 37788b1 + 22d8f1f commit 947ce77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"data_version": "71",
"data_manifest_id": "syn13363290",
"data_file": "syn13363290",
"team_images_id": "syn12861877"
}
6 changes: 3 additions & 3 deletions import-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ mkdir -p $TEAM_IMAGES_DIR

# Version key/value should be on his own line
DATA_VERSION=$(cat $WORKING_DIR/data-manifest.json | grep data_version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
DATA_MANIFEST_ID=$(cat $WORKING_DIR/data-manifest.json | grep data_manifest_id | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
DATA_FILE=$(cat $WORKING_DIR/data-manifest.json | grep data_file | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
TEAM_IMAGES_ID=$(cat $WORKING_DIR/data-manifest.json | grep team_images_id | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
echo "$BRANCH branch, DATA_VERSION = $DATA_VERSION, manifest id = $DATA_MANIFEST_ID"
echo "$BRANCH branch, DATA_VERSION = $DATA_VERSION, manifest id = $DATA_FILE"

# Download the manifest file from synapse
synapse -p $SYNAPSE_PASSWORD get --downloadLocation $DATA_DIR -v $DATA_VERSION $DATA_MANIFEST_ID
synapse -p $SYNAPSE_PASSWORD get --downloadLocation $DATA_DIR -v $DATA_VERSION $DATA_FILE

# Ensure there's a newline at the end of the manifest file; otherwise the last listed file will not be downloaded
# echo >> $DATA_DIR/data_manifest.csv
Expand Down

0 comments on commit 947ce77

Please sign in to comment.