Skip to content

Commit

Permalink
Feature: Recognize keyword editorial in showlist
Browse files Browse the repository at this point in the history
Toimituksen ohjelmat voi merkitä omalla avainsanallaan
ohjelmakartassa. Semanttisen pilkunviilauksen lisäksi tämä
mahdollistaa, että ko. ohjelmille voidaan jatkossa määrittää
sponsoriohjelmista poikkeava värikoodaus ohjelmakartan
viikkonäkymässä, mikäli näin halutaan.
  • Loading branch information
taahol committed Apr 17, 2024
1 parent 58c04fb commit 9dbc063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/google/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const parseSheetToShowList = async (
const isNight = color === Color.Night || getIsNightTime(startDate);
const showColor = isNight
? Color.Night
: color === Color.Promote
: (color === Color.Promote || color === Color.Editorial)
? Color.Promote
: null;

Expand Down
1 change: 1 addition & 0 deletions scripts/google/showlistHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { groupBy } from 'ramda';
export enum Color {
Night = 'night',
Promote = 'promote',
Editorial = 'editorial',
}
export interface Show {
name?: string;
Expand Down

0 comments on commit 9dbc063

Please sign in to comment.