Skip to content

Commit

Permalink
Fix issue where metadata filename constant not used
Browse files Browse the repository at this point in the history
  • Loading branch information
calpaterson committed Mar 23, 2024
1 parent ae78b0c commit de1c8a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyappcache/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def __init__(self, directory: Path):
super().__init__()
self.directory = directory
self.directory.mkdir(parents=True, exist_ok=True)
self.metadata_conn = sqlite3.connect(str(self.directory / "metadata.sqlite"))
self.metadata_conn = sqlite3.connect(
str(self.directory / self.METADATA_DB_FILENAME)
)
with closing(self.metadata_conn.cursor()) as cursor:
cursor.execute(CREATE_DDL)
for index_ddl in INDEX_DDL:
Expand Down

0 comments on commit de1c8a2

Please sign in to comment.