@tricoteuses/senat 3.1.14 → 3.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,8 +18,6 @@ const optionsDefinitions = [...commonOptions];
|
|
|
18
18
|
const options = commandLineArgs(optionsDefinitions);
|
|
19
19
|
let exitCode = 10; // 0: some data changed, 10: no modification
|
|
20
20
|
function shouldSkipAgenda(agenda) {
|
|
21
|
-
if (!agenda.captationVideo)
|
|
22
|
-
return true;
|
|
23
21
|
if (!agenda.date || !agenda.startTime)
|
|
24
22
|
return true;
|
|
25
23
|
if (agenda.uid.endsWith("Bis"))
|
package/lib/src/videos/match.js
CHANGED
|
@@ -16,7 +16,10 @@ export async function matchOneReunion(args) {
|
|
|
16
16
|
const titleDominance = weights.titleDominance ?? 0;
|
|
17
17
|
const orgUncertainPenalty = weights.orgUncertainPenalty ?? 1; // 1 disables
|
|
18
18
|
const orgSkipDice = weights.orgSkipDice ?? 0;
|
|
19
|
-
|
|
19
|
+
let minAccept = minAcceptBase + (candidates.length >= 20 ? 0.08 : candidates.length >= 10 ? 0.05 : 0);
|
|
20
|
+
if (!agenda.captationVideo) {
|
|
21
|
+
minAccept = 0.9;
|
|
22
|
+
}
|
|
20
23
|
const vw = weights
|
|
21
24
|
? {
|
|
22
25
|
wTitle: weights.wTitle,
|