Skip to content

Commit 2b2421e

Browse files
author
Andreas Müller
committed
fix running frames
1 parent fe09dc9 commit 2b2421e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/gtt-edit.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,13 @@ if (!id) {
3737
lastFramesDetails = lastFrames
3838
.sort((a, b) => (a.start.isBefore(b.start) ? -1 : 1))
3939
.map((frame) => {
40-
let toSync =
41-
Math.ceil(frame.duration) -
42-
parseInt(_.reduce(frame.notes, (n, m) => n + m.time, 0)) !=
43-
0;
44-
let durationText = toSync
45-
? toHumanReadable(frame.duration).padEnd(14).yellow
46-
: toHumanReadable(frame.duration).padEnd(14);
4740
let issue = `${
4841
(frame.resource.type + " #" + frame.resource.id).padEnd(20).blue
4942
}${column(frame.title != null ? frame.title : "", 50)}`;
5043
return {
5144
name:
5245
` ${frame.id} ${frame.start.clone().format("MMMM Do YYYY HH:mm").green} ${
53-
frame.stop ? "to " + frame.stop.clone().format("HH:mm").green : "(running)"
54-
}\t${durationText}` +
46+
frame.stop ? "to " + frame.stop.clone().format("HH:mm").green : "(running)"}\t` +
5547
`${column(frame.project, 50).magenta}${issue}${
5648
frame.note != null ? frame.note : ""
5749
}`,

0 commit comments

Comments
 (0)