Some cleanup

This commit is contained in:
Eike Kettner
2020-09-01 23:57:27 +02:00
parent f9fcee81a5
commit 4309bd8dfd
4 changed files with 13 additions and 9 deletions

View File

@ -634,7 +634,8 @@ object QItem {
def resolveTextAndTag(
collective: Ident,
itemId: Ident,
tagCategory: String
tagCategory: String,
pageSep: String
): ConnectionIO[TextAndTag] = {
val aId = RAttachment.Columns.id.prefix("a")
val aItem = RAttachment.Columns.itemId.prefix("a")
@ -682,7 +683,7 @@ object QItem {
s"Got ${texts.size} text and tag entries for item ${itemId.id}"
)
tag = texts.headOption.flatMap(_._2)
txt = texts.map(_._1).mkString(" --n-- ")
txt = texts.map(_._1).mkString(pageSep)
} yield TextAndTag(itemId, txt, tag)
}