Skip to content

Commit

Permalink
CI: fix flake8 & dir for webstes
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxos committed Oct 11, 2024
1 parent 2eb1f59 commit f13c610
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
run: |
make & # runs all services, a separate instance
sleep 10
bash tools/webstest.sh
pushd tools; bash webstest.sh; popd # contains relative paths to uploaded files
kill $! # terminate make
2 changes: 1 addition & 1 deletion mupifDB/workflowmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def insertWorkflowDefinition_model(source: pydantic.FilePath, rec: models.Workfl

# first check if workflow with wid already exist in workflows
w_rec = restApiControl.getWorkflowRecord(rec.wid)
log.error(f'{w_rec=}')
log.debug(f'{w_rec=}')
if w_rec is None: # can safely create a new record in workflows collection
version = 1
rec.Version = version
Expand Down
8 changes: 5 additions & 3 deletions webapi/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
)
import logging

# must run with --debug for logs to appear
log=logging.getLogger(__name__)
log.setLevel(logging.DEBUG)


from oauthlib.oauth2 import WebApplicationClient
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'

Expand Down Expand Up @@ -109,9 +114,6 @@ def update_user_name(user_id: str, val):
client = WebApplicationClient(GOOGLE_CLIENT_ID)


# must run with --debug for logs to appear
log=logging.getLogger(__name__)
log.setLevel(logging.DEBUG)


class User(UserMixin):
Expand Down

0 comments on commit f13c610

Please sign in to comment.