From 6126c4f438a549b985b11f735eb0fd893bde3fb5 Mon Sep 17 00:00:00 2001 From: algorandpa Date: Sat, 28 Jan 2023 18:27:35 -0500 Subject: [PATCH] restore spacing --- piker/pp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/piker/pp.py b/piker/pp.py index a7fd60aa..0cbd88b3 100644 --- a/piker/pp.py +++ b/piker/pp.py @@ -541,12 +541,15 @@ class PpTable(Struct): self, trans: dict[str, Transaction], cost_scalar: float = 2, + ) -> dict[str, Position]: pps = self.pps updated: dict[str, Position] = {} + # lifo update all pps from records for tid, t in trans.items(): + pp = pps.setdefault( t.bsuid,