Rename attr database_file to database_filepath.

To make it more consistent with config_filepath and show
that it's a path object.
This commit is contained in:
voussoir 2018-01-30 19:46:43 -08:00
parent 20462f1085
commit f9ee56187c

View file

@ -1017,9 +1017,9 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs
self.sql = sqlite3.connect(':memory:') self.sql = sqlite3.connect(':memory:')
existing_database = False existing_database = False
else: else:
self.database_file = self.data_directory.with_child(constants.DEFAULT_DBNAME) self.database_filepath = self.data_directory.with_child(constants.DEFAULT_DBNAME)
existing_database = self.database_file.exists existing_database = self.database_filepath.exists
self.sql = sqlite3.connect(self.database_file.absolute_path) self.sql = sqlite3.connect(self.database_filepath.absolute_path)
cur = self.sql.cursor() cur = self.sql.cursor()