From 48eec168da982aa11d61a3f1074a731a9f9b0bbe Mon Sep 17 00:00:00 2001 From: Orion Banks <49208907+Bankso@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:21:34 -0800 Subject: [PATCH] Add changes from main (#38) * quick fix: regex for capturing grant project synID * update gh action versions --------- Co-authored-by: verena <9377970+vpchung@users.noreply.github.com> --- .github/workflows/update-theme-graphs.yml | 6 +++--- portal_tables/sync_grants.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-theme-graphs.yml b/.github/workflows/update-theme-graphs.yml index 43af7c6e..97479769 100644 --- a/.github/workflows/update-theme-graphs.yml +++ b/.github/workflows/update-theme-graphs.yml @@ -9,12 +9,12 @@ jobs: update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5.0.0 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | diff --git a/portal_tables/sync_grants.py b/portal_tables/sync_grants.py index b359eb39..a177e8a3 100644 --- a/portal_tables/sync_grants.py +++ b/portal_tables/sync_grants.py @@ -112,7 +112,7 @@ def main(): print("Adding new grants...") new_grants.loc[ :, "project_id" - ] = new_grants.GrantSynapseProject.str.extract(r":(syn\d*?)/wiki") + ] = new_grants.GrantSynapseProject.str.extract(r":(syn\d*)/?") sync_table(syn, new_grants, args.portal_table) print("DONE ✓")