diff options
Diffstat (limited to 'python/ops/funds.py')
| -rw-r--r-- | python/ops/funds.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/ops/funds.py b/python/ops/funds.py index f642224e..def7ad75 100644 --- a/python/ops/funds.py +++ b/python/ops/funds.py @@ -10,7 +10,7 @@ from .file_gen import get_headers, build_line class Fund: - staged_queue = [] + staging_queue = [] _registry = {} filepath_pattern = None @@ -28,7 +28,7 @@ class Fund: headers = get_headers(trade_type, cls.name) csvwriter.writerow(headers) csvwriter.writerows( - [[obj.get(h) for h in headers] for obj in cls.stating_queue] + [[obj.get(h) for h in headers] for obj in cls.staging_queue] ) buf = buf.getvalue().encode() dest = cls.get_filepath(DAILY_DIR, trade_type) @@ -42,7 +42,7 @@ class Fund: @classmethod def stage(cls, trade, *, trade_type, **kwargs): - cls.stating_queue.append(build_line(trade, trade_type, cls.name)) + cls.staging_queue.append(build_line(trade, trade_type, cls.name)) @classmethod def get_filepath( @@ -116,4 +116,4 @@ class Bowdst(Fund, fund_name="BOWDST"): class Selene(Fund, fund_name="ISOSEL"): @classmethod def stage(cls, trade, *, action="NEW", **kwargs): - cls.stating_queue.append(trade.to_citco(action)) + cls.staging_queue.append(trade.to_citco(action)) |
