Skip to content

Commit 62da4d3

Browse files
committed
Also remove from MetaDataStore.databases
1 parent 060c7d6 commit 62da4d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

activity_browser/bwutils/metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def check_databases(self):
177177
removed_dbs = [db for db in self.databases if db not in bd.databases]
178178
for db in removed_dbs:
179179
self.dataframe.drop(self.dataframe[self.dataframe.database == db].index, inplace=True)
180+
self.databases.remove(db)
180181

181182
def get_existing_fields(self, field_list: list) -> list:
182183
"""Return a list of fieldnames that exist in the current dataframe."""

0 commit comments

Comments
 (0)