renamed avalon_mongo_timeout key to AVALON_TIMEOUT

This commit is contained in:
iLLiCiTiT 2020-12-11 11:16:54 +01:00
parent bb2d5af187
commit e9bf54a4ec
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class AvalonModule(PypeModule, ITrayModule, IRestApi):
# Mongo timeout
avalon_mongo_timeout = os.environ.get("AVALON_TIMEOUT")
if not avalon_mongo_timeout:
avalon_mongo_timeout = avalon_settings["avalon_mongo_timeout"]
avalon_mongo_timeout = avalon_settings["AVALON_TIMEOUT"]
self.thumbnail_root = thumbnail_root
self.avalon_mongo_url = avalon_mongo_url

View file

@ -1,7 +1,7 @@
{
"Avalon": {
"AVALON_MONGO": "mongodb://localhost:2707",
"avalon_mongo_timeout": 1000,
"AVALON_TIMEOUT": 1000,
"AVALON_DB_DATA": "{PYPE_SETUP_PATH}/../mongo_db_data",
"AVALON_THUMBNAIL_ROOT": "{PYPE_SETUP_PATH}/../avalon_thumails",
"environment": {

View file

@ -17,7 +17,7 @@
},
{
"type": "number",
"key": "avalon_mongo_timeout",
"key": "AVALON_TIMEOUT",
"minimum": 0,
"label": "Avalon Mongo Timeout (ms)"
},