Fix snowballing functionality
This commit is contained in:
1 parent
0bc652f4d7
commit
bc8a19ff83
4 files changed
+76
-22
No files matched your search
@@ -32,9 +32,17 @@ def get_or_generate_key() -> str:
|
||||
assert path.exists()
|
||||
return path.read_text()
|
||||
|
||||
def get_api_key() -> str:
|
||||
path = Path(Path(__file__).parent,'api.secret')
|
||||
|
||||
assert path.exists()
|
||||
return path.read_text()
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
SECRET_KEY = get_or_generate_key()
|
||||
|
||||
SCHOLAR_API_KEY = get_api_key().strip('\n')
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
|
||||
Reference in new issue
Block a user