mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:27:08 +00:00
Show missed shot events in HTML, PDF exports
This commit is contained in:
@@ -10,7 +10,7 @@ const html = async function (req, res, next) {
|
||||
const query = req.query;
|
||||
query.sequence = req.params.sequence;
|
||||
const {events, sequences} = await prepare(req.params.project, query);
|
||||
const seis = transform(events, sequences, {projectId: req.params.project});
|
||||
const seis = transform(events, sequences, {projectId: req.params.project, missingAsEvent: true});
|
||||
const template = (await configuration.get(req.params.project, "sse/templates/0/template")) || defaultTemplatePath;
|
||||
// console.log("TEMPLATE", template);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const pdf = async function (req, res, next) {
|
||||
const query = req.query;
|
||||
query.sequence = req.params.sequence;
|
||||
const {events, sequences} = await prepare(req.params.project, query);
|
||||
const seis = transform(events, sequences, {projectId: req.params.project});
|
||||
const seis = transform(events, sequences, {projectId: req.params.project, missingAsEvent: true});
|
||||
const template = (await configuration.get(req.params.project, "sse/templates/0/template")) || defaultTemplatePath;
|
||||
|
||||
const html = await render(seis, template);
|
||||
|
||||
Reference in New Issue
Block a user