diff --git a/build.zig.zon b/build.zig.zon index 5c9c1cb..c8e75bc 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,8 +14,8 @@ .hash = "httpz-0.0.0-PNVzrLjJCAD37S0CcrXpsjSqr86hVjK0rsALTDJ98AAJ", }, .zfin = .{ - .url = "git+https://git.lerch.org/lobo/zfin#4a86ecb95e1b155b58c2cdc294d850309bab934d", - .hash = "zfin-0.0.0-J-B21tBcVwCRYeqB7LbX67Ik9a2y8olgk7OObrUtJ8YU", + .url = "git+https://git.lerch.org/lobo/zfin#e3ce8f32a1e3876690a7d9df5f516b2ea1b19240", + .hash = "zfin-0.0.0-J-B21toPWQDLAnwSpJDpVHfzytLXb94wrc4Que-Q9w7D", }, }, } diff --git a/src/handlers.zig b/src/handlers.zig index a1b25af..80d5eb0 100644 --- a/src/handlers.zig +++ b/src/handlers.zig @@ -237,7 +237,7 @@ pub fn handleReturns(app: *App, req: *httpz.Request, res: *httpz.Response) !void // dividend records are missing). Matches Morningstar // "Trailing Returns" / Yahoo "Performance Overview" / Koyfin // "Total Return". - const total = result.asof_total orelse result.asof_price; + const total = result.asof_total; const t1y = if (total.one_year) |r| r.annualized_return else null; const t3y = if (total.three_year) |r| r.annualized_return else null; const t5y = if (total.five_year) |r| r.annualized_return else null;