mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-04 06:05:59 +00:00
Reformatting
This commit is contained in:
parent
77e8a51acd
commit
6abdb95f02
@ -329,10 +329,12 @@ object QItem {
|
||||
coalesce(IC.itemDate.prefix("i").f, IC.created.prefix("i").f) ++ fr"DESC"
|
||||
)
|
||||
}
|
||||
val limitOffset =
|
||||
if (batch == Batch.all) Fragment.empty
|
||||
else fr"LIMIT ${batch.limit} OFFSET ${batch.offset}"
|
||||
|
||||
val frag =
|
||||
query ++ fr"WHERE" ++ cond ++ order ++ (if (batch == Batch.all) Fragment.empty
|
||||
else
|
||||
fr"LIMIT ${batch.limit} OFFSET ${batch.offset}")
|
||||
query ++ fr"WHERE" ++ cond ++ order ++ limitOffset
|
||||
logger.trace(s"List $batch items: $frag")
|
||||
frag.query[ListItem].stream
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user