Notes par saison : note + avis par saison, note finale = moyenne arrondie
deploy / deploy (push) Successful in 43s
deploy / deploy (push) Successful in 43s
- Section « Mes saisons » dans la fiche d'une série (≥ 2 saisons) : une note et un avis (avec spoiler) par saison. - Quand la série est terminée, la note finale = moyenne des saisons notées, arrondie (étoiles et /10). - Les séries déjà notées sans notes de saison restent intactes. - Un +1 qui termine une saison ouvre la fiche sur cette saison à noter ; « Reprendre » passe à S02 É01. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
26 files changed
+540
-11
No files matched your search
@@ -20,6 +20,7 @@ import {
|
||||
} from './security'
|
||||
import { normalizeText, todayISO, uid } from './utils'
|
||||
import { normalizeChallenges, normalizeEpisodeLog } from './challenges'
|
||||
import { normalizeSeasonRatings } from './seasons'
|
||||
|
||||
const TYPES = new Set<string>(MEDIA_TYPES.map((t) => t.value))
|
||||
const STATUS_SET = new Set<string>(STATUSES.map((s) => s.value))
|
||||
@@ -132,6 +133,7 @@ export function normalizeItem(raw: unknown): MediaItem | null {
|
||||
tags,
|
||||
countries: safeCountries(r.countries),
|
||||
rewatchDates: safeDates(r.rewatchDates),
|
||||
seasonRatings: normalizeSeasonRatings(r.seasonRatings),
|
||||
episodeLog: normalizeEpisodeLog(r.episodeLog),
|
||||
publicRating: (() => {
|
||||
const n = num(r.publicRating, 0, 10)
|
||||
|
||||
Reference in new issue
Block a user