This commit is contained in:
tree 2022-05-18 02:50:40 +02:00
rodič f3407953df
revize 005259bf26
5 změnil soubory, kde provedl 11 přidání a 2 odebrání

Zobrazit soubor

@ -70,7 +70,7 @@ changelog:
schedule: plan
plan:
deno run --unstable --allow-read --allow-write utils/plan.js
deno run --unstable --allow-read --allow-write utils/plan.js $(num)
plan-candidates:
js-yaml dist/22/schedule-candidates.json > spec/22/schedule-candidates.yaml

Zobrazit soubor

@ -85,3 +85,4 @@
- id: other
name: Ostatní
hidden: true

Zobrazit soubor

@ -381,7 +381,10 @@ class UTXOPlanner {
async function main() {
const limit = 100000;
let i = 0;
const numResults = Deno.args[0] || 10;
console.log("Planning started ..");
console.log(`Looking for ${numResults} results`);
const plans = [];
@ -403,7 +406,7 @@ async function main() {
plans.push({ schedule: planner.schedule, metrics });
}
if (plans.length >= 10) {
if (plans.length >= numResults) {
const outputFn = "./dist/22/schedule-candidates.json";
console.log(`Writing result: ${outputFn}`);
const filtered = plans.sort((x, y) =>

Zobrazit soubor

@ -15,3 +15,5 @@ items:
type: string
examples:
type: string
hidden:
type: boolean

Zobrazit soubor

@ -85,6 +85,9 @@ const methods = {
async tracksGen() {
const output = [];
for (const track of tracks) {
if (track.hidden) {
continue;
}
output.push(
`<details>\n\n<summary>${track.name}</summary>\n\n${track.examples.trim()}\n\n</details>`,
);