memory (sqla): Add a filter for origin in history_get:
rel 459
This commit is contained in:
parent
ceb2484a37
commit
328e0ce775
1 changed files with 4 additions and 0 deletions
|
|
@ -675,6 +675,10 @@ class Storage:
|
|||
stmt = stmt.where(
|
||||
exists().where(subquery.c.value == keyword)
|
||||
)
|
||||
if "origin" in filters:
|
||||
stmt = stmt.where(
|
||||
History.extra["origin"].as_string() == filters["origin"]
|
||||
)
|
||||
|
||||
if limit is not None:
|
||||
stmt = stmt.limit(limit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue