MCPcopy
hub / github.com/lektor/lektor / first

Method first

lektor/db.py:1133–1135  ·  view source on GitHub ↗

Return the first matching record.

(self)

Source from the content-addressed store, hash-verified

1131 return rv
1132
1133 def first(self):
1134 """Return the first matching record."""
1135 return next(iter(self), None)
1136
1137 def all(self):
1138 """Loads all matching records as list."""

Callers 11

__bool__Method · 0.95
resolve_url_pathMethod · 0.80
getMethod · 0.80
match_paginationMethod · 0.80
test_parent_accessFunction · 0.80
test_is_child_ofFunction · 0.80
test_bad_file_ignoredFunction · 0.80

Calls

no outgoing calls

Tested by 7

test_parent_accessFunction · 0.64
test_is_child_ofFunction · 0.64
test_bad_file_ignoredFunction · 0.64