diff search/doc.py @ 9:d1b54241a731

rewrite meeting fetcher
author drewp@bigasterisk.com
date Wed, 10 Jul 2024 12:25:06 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/search/doc.py	Wed Jul 10 12:25:06 2024 -0700
@@ -0,0 +1,15 @@
+from dataclasses import dataclass
+
+
+@dataclass
+class Doc:
+    id: str
+    title: str
+    sourceFile: str
+    posJson: str
+    phrase: str
+
+    def __getitem__(self, k):
+        return getattr(self, k)
+
+    pop = __getitem__