Skip to content

Commit

Permalink
✋ Bug: Stop Uploading Test Data during Repo Upload ✋ (#49)
Browse files Browse the repository at this point in the history
* resolved

* add mergers to planned data collection in readme

* done
  • Loading branch information
suchak1 authored Oct 22, 2020
1 parent 15c18ed commit f2a8d5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/update_repo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
import shutil
sys.path.append('src')
from Storage import Store # noqa autopep8
from Constants import DATA_DIR # noqa autopep8
Expand All @@ -7,4 +8,5 @@
repo_keys = [key for key in store.get_all_keys()
if key.find(f'{DATA_DIR}/')]
store.delete_objects(repo_keys)
shutil.rmtree(DATA_DIR)
store.upload_dir(path='.', truncate=True)

0 comments on commit f2a8d5c

Please sign in to comment.