Skip to content

Commit

Permalink
update IpsosTag for thefilter
Browse files Browse the repository at this point in the history
  • Loading branch information
dskamiotis committed Dec 27, 2024
1 parent 2a8e447 commit 1879961
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/app/model/IpsosTags.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package model

import org.checkerframework.checker.units.qual.t

object IpsosTags {

val tags = Map(
Expand Down Expand Up @@ -98,7 +100,8 @@ object IpsosTags {
"uk/technology" -> "technology", /* There is no US technology tag - should these map to technology? */
"au/technology" -> "technology",
"technology" -> "technology", /* Default for technology (including motoring) articles */
"the-filter" -> "thefilter",
"thefilter" -> "thefilter",
"uk/thefilter" -> "thefilter",
"the-guardian-foundation" -> "foundation",
"theguardian" -> "theguardian",
"theobserver" -> "theobserver",
Expand Down Expand Up @@ -141,6 +144,7 @@ object IpsosTags {

// Default to top level `guardian` tag if key is not found
def getScriptTag(id: String): String = {
print("IpsosTags.getScriptTag", tags.getOrElse(id, "guardian"))
tags.getOrElse(id, "guardian")
}

Expand Down

0 comments on commit 1879961

Please sign in to comment.