remove when column
it was marginal benefit before, and now fmp does not even have the data, so not worth showing
This commit is contained in:
parent
9bb0d8036b
commit
f436ca5a86
2 changed files with 7 additions and 8 deletions
|
|
@ -47,11 +47,11 @@ pub fn display(events: []const zfin.EarningsEvent, symbol: []const u8, color: bo
|
|||
}
|
||||
|
||||
try cli.setFg(out, color, cli.CLR_MUTED);
|
||||
try out.print("{s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10} {s:>5}\n", .{
|
||||
"Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", "When",
|
||||
try out.print("{s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10}\n", .{
|
||||
"Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %",
|
||||
});
|
||||
try out.print("{s:->12} {s:->4} {s:->12} {s:->12} {s:->12} {s:->10} {s:->5}\n", .{
|
||||
"", "", "", "", "", "", "",
|
||||
try out.print("{s:->12} {s:->4} {s:->12} {s:->12} {s:->12} {s:->10}\n", .{
|
||||
"", "", "", "", "", "",
|
||||
});
|
||||
try cli.reset(out, color);
|
||||
|
||||
|
|
@ -68,7 +68,6 @@ pub fn display(events: []const zfin.EarningsEvent, symbol: []const u8, color: bo
|
|||
}
|
||||
|
||||
try out.print("{s}", .{row.text});
|
||||
try out.print(" {s:>5}", .{@tagName(e.report_time)});
|
||||
try cli.reset(out, color);
|
||||
try out.print("\n", .{});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,15 +104,15 @@ pub fn renderEarningsLines(
|
|||
return lines.toOwnedSlice(arena);
|
||||
}
|
||||
|
||||
try lines.append(arena, .{ .text = try std.fmt.allocPrint(arena, " {s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10} {s:>5}", .{
|
||||
"Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", "When",
|
||||
try lines.append(arena, .{ .text = try std.fmt.allocPrint(arena, " {s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10}", .{
|
||||
"Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %",
|
||||
}), .style = th.mutedStyle() });
|
||||
|
||||
for (ev) |e| {
|
||||
var row_buf: [128]u8 = undefined;
|
||||
const row = fmt.fmtEarningsRow(&row_buf, e);
|
||||
|
||||
const text = try std.fmt.allocPrint(arena, " {s} {s:>5}", .{ row.text, @tagName(e.report_time) });
|
||||
const text = try std.fmt.allocPrint(arena, " {s}", .{row.text});
|
||||
const row_style = if (row.is_future) th.mutedStyle() else if (row.is_positive) th.positiveStyle() else th.negativeStyle();
|
||||
|
||||
try lines.append(arena, .{ .text = text, .style = row_style });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue