From f2854dea066a0bef1dc139075802e206803267d3 Mon Sep 17 00:00:00 2001 From: Dialpuri Date: Thu, 21 Sep 2023 11:35:34 +0100 Subject: [PATCH 1/2] Added strip for :32 issue for now --- webserver/src/components/PrivateerDisplay/SNFG.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webserver/src/components/PrivateerDisplay/SNFG.jsx b/webserver/src/components/PrivateerDisplay/SNFG.jsx index 990cd6a7..d3b317aa 100644 --- a/webserver/src/components/PrivateerDisplay/SNFG.jsx +++ b/webserver/src/components/PrivateerDisplay/SNFG.jsx @@ -45,11 +45,11 @@ export default function SNFG({tableData, fileName, pdbString}) { let id = tableData[rowID].id let sugar_name = id.split("-")[0] - let sugar_id = id.split("-")[1].split("/")[0] + let sugar_id = id.split("-")[1].split("/")[0].split(":")[0] let sugar_chain = id.split("/")[1].split("_")[0] let center_string = sugar_chain + "/" + sugar_id + "(" + sugar_name + ")" - console.log(center_string) + console.log("PRIVATEER", center_string) newMolecule.centreOn(center_string) } ) From 6a5822b658300fd1b729010190e448d1bff836ba Mon Sep 17 00:00:00 2001 From: Dialpuri Date: Thu, 21 Sep 2023 11:40:57 +0100 Subject: [PATCH 2/2] Changed actions code after branch name change --- .github/workflows/backend.yml | 4 ++-- .github/workflows/frontend.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index b390d32d..30ef5bd7 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -3,12 +3,12 @@ name: Privateer Webserver Backend on: push: - branches: [ "wasm" ] + branches: [ "webserver" ] paths: - src/privateer/cpp/privateer-bind.cpp pull_request: - branches: [ "wasm" ] + branches: [ "webserver" ] paths: - src/privateer/cpp/privateer-bind.cpp diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 5c990e5c..fa2aad1e 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -2,11 +2,11 @@ name: Privateer Webserver Frontend CI/CD on: push: - branches: [ "wasm" ] + branches: [ "webserver" ] paths: - webserver/** pull_request: - branches: [ "wasm" ] + branches: [ "webserver" ] paths: - webserver/**