I’m sorry, that was my mistake. The scope is actually a parameter of the search method. In JavaScript, one would say
app.search("name: thing", {in: app.databases["Main"]});
or for a group
app.search("name: thing", {in: app.getRecordWithUuid("...")});
I have no idea how that is done in PyDT3, though. But as the source is available … oops, seems the author forgot about the in parameter. And they mis-spelled comparison – no idea if that will cause trouble or not.
As I said: simply use the original instead of a wrapper. You can’t lose anything, but possibly gain, as in this case, an in parameter ![]()