Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
f5d28e2
1
Parent(s): 750d179
query_n
Browse files- understand.py +3 -0
understand.py
CHANGED
|
@@ -37,6 +37,9 @@ class Document():
|
|
| 37 |
print (e.message, e.args)
|
| 38 |
return None
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
def query_doctype(self):
|
| 42 |
self.values.put("document type", self.query(
|
|
|
|
| 37 |
print (e.message, e.args)
|
| 38 |
return None
|
| 39 |
|
| 40 |
+
def query_n(self, n, s):
|
| 41 |
+
return [self.query(s) for i in range(n)]
|
| 42 |
+
|
| 43 |
|
| 44 |
def query_doctype(self):
|
| 45 |
self.values.put("document type", self.query(
|