Skip to content

Commit 4c75cd8

Browse files
committed
Remove unused Page.query_fields field.
Leftover from devhub.
1 parent a236a55 commit 4c75cd8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

snooty/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ def on_update(
149149
],
150150
}
151151

152-
if page.query_fields:
153-
document.update({"query_fields": page.query_fields})
154-
155152
self.handle_document(
156153
build_identifiers, page_id, fully_qualified_pageid, document
157154
)

snooty/page.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from dataclasses import dataclass, field
22
from pathlib import Path, PurePath
3-
from typing import Dict, List, Optional, Set
3+
from typing import List, Optional, Set
44

55
from . import n
66
from .diagnostics import Diagnostic
@@ -33,7 +33,6 @@ class Page:
3333
static_assets: Set[StaticAsset] = field(default_factory=set)
3434
pending_tasks: List[PendingTask] = field(default_factory=list)
3535
category: Optional[str] = None
36-
query_fields: Dict[str, n.SerializableType] = field(default_factory=dict)
3736

3837
@classmethod
3938
def create(

0 commit comments

Comments
 (0)