diff --git a/core/tracker.py b/core/tracker.py index 9673b44..962b716 100644 --- a/core/tracker.py +++ b/core/tracker.py @@ -3,7 +3,7 @@ from datetime import datetime, timedelta from fastapi.encoders import jsonable_encoder from pathlib import Path -DATA_DIR = Path.home().joinpath(".tracker_api/trackers") +DATA_DIR = Path.home().joinpath(".radical-api/trackers") def object_hook(dct): diff --git a/routers/security.py b/routers/security.py index 0eeca68..c295a3b 100644 --- a/routers/security.py +++ b/routers/security.py @@ -86,6 +86,6 @@ def create_key(name, system_key: APIKey = Depends(get_system_key)): @router.get("/key/me") -def key_info(api_key: APIKey = Depends(get_api_key)): +def key_info(access_token: APIKey = Depends(get_api_key)): data = load_keys() - return data[api_key] + return data[access_token]