File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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 } `,
You can’t perform that action at this time.
0 commit comments