From f9ee56187c5dcfcf53dfa0f8ae386af67112a141 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 30 Jan 2018 19:46:43 -0800 Subject: [PATCH] Rename attr database_file to database_filepath. To make it more consistent with config_filepath and show that it's a path object. --- etiquette/photodb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 8e09ec3..2e99a45 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1017,9 +1017,9 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs self.sql = sqlite3.connect(':memory:') existing_database = False else: - self.database_file = self.data_directory.with_child(constants.DEFAULT_DBNAME) - existing_database = self.database_file.exists - self.sql = sqlite3.connect(self.database_file.absolute_path) + self.database_filepath = self.data_directory.with_child(constants.DEFAULT_DBNAME) + existing_database = self.database_filepath.exists + self.sql = sqlite3.connect(self.database_filepath.absolute_path) cur = self.sql.cursor()