Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2023
1 parent f4e63b1 commit 112a417
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 58 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/scan-codeql.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/openpredict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .predict_output import PredictHit, PredictOptions, PredictOutput, TrainingOutput
from .trapi import TRAPI

__version__ = "0.1.1"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion src/openpredict/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

class Settings(BaseSettings):

VIRTUAL_HOST: str = None
PROD_URL: str = 'https://openpredict.transltr.io'
TEST_URL: str = 'https://openpredict.test.transltr.io'
STAGING_URL: str = 'https://openpredict.ci.transltr.io'
DEV_URL: str = 'https://openpredict.semanticscience.org'

VIRTUAL_HOST: str = None
DEV_MODE: bool = False
LOG_LEVEL: str = 'ERROR'

Expand Down
4 changes: 2 additions & 2 deletions src/trapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
]

# Try to order the servers list based on the env variable used for nginx proxy in docker
# Order the servers list based on the env variable used for nginx proxy in docker
if settings.VIRTUAL_HOST:
servers = []
# Add the current server as 1st server in the list
Expand All @@ -96,7 +96,7 @@
if settings.VIRTUAL_HOST not in server['url']:
servers.append(server)
else:
servers = servers_list
servers = []


app = TRAPI(
Expand Down

0 comments on commit 112a417

Please sign in to comment.