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:
		
							parent
							
								
									20462f1085
								
							
						
					
					
						commit
						f9ee56187c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue