Skip to content

Commit

Permalink
skip over "queries" blocks when processing database-level metadata items
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Aug 7, 2024
1 parent f6bd2bf commit 6738a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ async def apply_metadata_json(self):
# step 2: database-level metadata
for dbname, db in self._metadata_local.get("databases", {}).items():
for key, value in db.items():
if key == "tables":
if key in ("tables", "queries"):
continue
await self.set_database_metadata(dbname, key, value)

Expand Down

0 comments on commit 6738a32

Please sign in to comment.