Skip to content

Commit

Permalink
меньше констант в коде
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Aug 11, 2023
1 parent 6a8f71f commit f513bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/ru/org/linux/topic/TopicListDao.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import com.typesafe.scalalogging.StrictLogging
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
import org.springframework.stereotype.Repository
import ru.org.linux.section.SectionController
import ru.org.linux.topic.TopicListDto.CommitMode.{COMMITED_ONLY, POSTMODERATED_ONLY, UNCOMMITED_ONLY}
import ru.org.linux.topic.TopicListDto.{DateLimitType, MiniNewsMode}
import ru.org.linux.user.User
Expand Down Expand Up @@ -94,7 +95,7 @@ object TopicListDao {
}

if (request.isTech) {
where.append(" AND not topics.groupid in (8404, 4068, 9326, 19405)")
where.append(s" AND not topics.groupid in (${SectionController.NonTech.mkString(", ")})")
}

request.getMiniNewsMode match {
Expand Down

0 comments on commit f513bd0

Please sign in to comment.