tracker
All repositories: gitoria
1.5 KB
// tests/peek-tmdbfix.hl — prints what tests/tmdbfix.mjs compares: every title's TMDB id / year fields, and what hangs on the recordsimport { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])seasonsTable = new MPackDB(file = storageDir + '/seasons.db', primaryKey = '@id', indexes = ['!oldId'])episodesTable = new MPackDB(file = storageDir + '/episodes.db', primaryKey = '@id', indexes = ['!oldId'])watchesTable = new MPackDB(file = storageDir + '/watches.db', primaryKey = '@id', indexes = ['!oldId'])followsTable = new MPackDB(file = storageDir + '/follows.db', primaryKey = '@id', indexes = ['!oldId'])for (s of showsTable.find(null, null)) {console.log('show ' + JSON.stringify({ id = s.id slug = s.urlSegment tmdbId = s.tmdbId year = s.year migratedYear = s.migratedYear release = s.release migratedRelease = s.migratedRelease tmdbIdWas = s.tmdbIdWas adultCheck = s.adultCheck }))}nSeasons = 0for (x of seasonsTable.find(null, null)) { nSeasons = nSeasons + 1 }nEpisodes = 0for (x of episodesTable.find(null, null)) { nEpisodes = nEpisodes + 1 }for (w of watchesTable.find(null, null)) { console.log('watch ' + w.id + ' ' + w.targetType + ' ' + w.target) }for (f of followsTable.find(null, null)) { console.log('follow ' + f.id + ' ' + f.show) }console.log('counts seasons=' + nSeasons + ' episodes=' + nEpisodes)
Branches
Latest commits
- 4b2f2995HM61 report: tracker#61 packed people ordermre
- 48faa84flog: #60 deploy startedmre
- 90734c6cMerge branch 'hm60-shortids'mre
- e0db0d1bHM60 report: tracker#60 packed short-ID ownersmre
- 3c79b576Pack short-ID ownership into byte buffersmre
- e822524bstatus wordingmre
- 1c7f0480log: HM60/HM61 startedmre
- 2841d215missions HM60 HM61mre
- 289c6ce4HM1 report: heap object breakdownmre
- 2e7d6257log: HM1 startedmre
- 2f790465mission HM1: heap object breakdownmre
- a18957falog: evening re-measure after CBmre
- aac9a98dlog: evening re-measure startmre
- 45163bd4log: person/tmdb error hypothesismre
- cb38de2blog: swap 503 causemre
- fd10c3d5log: CB livemre
- 7557c025log: CB deploy try 2mre
- 06a7534aMerge branch 'cb'mre
- 2f8030d6log: CB gates greenmre
- 498bf644log: CB gates startmre