Browse Source

fix: set git user and print less progress

Mika Pflüger 6 months ago
parent
commit
43fa513e8c
2 changed files with 5 additions and 1 deletions
  1. 4 0
      .github/workflows/download.yaml
  2. 1 1
      download.py

+ 4 - 0
.github/workflows/download.yaml

@@ -26,6 +26,10 @@ jobs:
               User git
               IdentityFile ~/.ssh/id_ginhemio
               IdentitiesOnly yes
+      - name: configure git user
+        run: git config --global user.email "mika.pflueger@climate-resource.com"
+      - name: configure git email
+        run: git config --global user.name "Mika Pflüger (via github actions)"
       - name: clone repo
         run: datalad clone https://github.com/mikapfl/unfccc_di_data.git
       - name: setup Python

+ 1 - 1
download.py

@@ -10,7 +10,7 @@ ROOT_DIR = pathlib.Path(os.path.abspath(os.curdir))  # This is your Project Root
 def main():
     r = UNFCCCApiReader()
     for party in tqdm.tqdm(r.parties["code"], desc="parties"):
-        df = r.query(party_code=party, progress=True)
+        df = r.query(party_code=party, progress=False)
 
         annexI = party in r.annex_one_reader.parties["code"].values
         subdir = "annexI" if annexI else "non-annexI"