-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#210: Remove config calls from being added as a constant
- No real reason for this to happen, once the JSON is loaded, the values aren't changed until API restart and not modified elsewhere currently - It's probably a good thing the request behind ICAT_PROPERTIES actually gets called on demand in case the values get changed before the API is restarted - Ultimately, this is the cause of the issue (requiring DB_URL despite using ICAT backend)
- Loading branch information
1 parent
5d99cd3
commit 79d00e8
Showing
4 changed files
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
from datetime import datetime | ||
|
||
from datagateway_api.common.config import config | ||
|
||
|
||
class Constants: | ||
DATABASE_URL = config.get_db_url() | ||
PYTHON_ICAT_DISTNCT_CONDITION = "!= null" | ||
ICAT_PROPERTIES = config.get_icat_properties() | ||
TEST_MOD_CREATE_DATETIME = datetime(2000, 1, 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters