From 8276746dad07f3463af7203a95a0489302023a70 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 10 Mar 2018 15:32:52 -0500 Subject: [PATCH] Do custom EsiPY prefix, change sso endpoint to look at pyfa.io instead of localhost --- config.py | 4 ++-- service/esi.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 35ab81c76..1944695e9 100644 --- a/config.py +++ b/config.py @@ -40,7 +40,7 @@ logging_setup = None cipher = None clientHash = None -ESI_AUTH_PROXY = "http://localhost:5015" # "https://blitzmann.pythonanywhere.com" // need to get this set up, and actually put on it's own domain +ESI_AUTH_PROXY = "https://www.pyfa.io" # "http://localhost:5015" ESI_CACHE = 'esi_cache' LOGLEVEL_MAP = { @@ -140,7 +140,7 @@ def defPaths(customSavePath=None): # os.environ["SSL_CERT_FILE"] = os.path.join(pyfaPath, "cacert.pem") # The database where we store all the fits etc - saveDB = os.path.join(savePath, "saveddata-py3-dev.db") + saveDB = os.path.join(savePath, "saveddata-py3-esi-dev.db") # The database where the static EVE data from the datadump is kept. # This is not the standard sqlite datadump but a modified version created by eos diff --git a/service/esi.py b/service/esi.py index bf665470f..f1b1e5b1d 100644 --- a/service/esi.py +++ b/service/esi.py @@ -8,6 +8,7 @@ import config import base64 import json import os +import config import eos.db import datetime @@ -47,7 +48,7 @@ class Esi(object): @classmethod def initEsiApp(cls): - cls.esiapp = EsiApp(cache=file_cache) + cls.esiapp = EsiApp(cache=file_cache, cache_time=None, cache_prefix='pyfa{0}-esipy-'.format(config.version)) cls.esi_v1 = cls.esiapp.get_v1_swagger cls.esi_v4 = cls.esiapp.get_v4_swagger