Skip to content

Commit

Permalink
feat(api/settings): default proposal cache path to 3 parents up from …
Browse files Browse the repository at this point in the history
…settings file

will usually be the api dir
  • Loading branch information
RobertRosca committed Nov 5, 2024
1 parent d74408a commit 53e8319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/damnit_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MyMdCCredentials(BaseSettings):
class Settings(BaseSettings):
auth: AuthSettings

proposal_cache: Path = Path("/tmp/damnit-web/damnit_proposals.json")
proposal_cache: Path = Path(__file__).parents[2] / "damnit_proposals.json"

debug: bool = True

Expand Down

0 comments on commit 53e8319

Please sign in to comment.