AutoRpa/rpa_oms/app/outbound/memory_repo.py

11 lines
348 B
Python

"""内存表 2。只给单测用。"""
from __future__ import annotations
class MemoryCartSettlementRepo:
def __init__(self, rows: list[dict] | None = None):
self._rows = [dict(row) for row in (rows or [])]
def list_unpushed(self) -> list[dict]:
return [dict(row) for row in self._rows if row.get("push_status", 0) == 0]