diff options
| -rw-r--r-- | python/report_ops/wires.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/report_ops/wires.py b/python/report_ops/wires.py index 5dde2956..0e367290 100644 --- a/python/report_ops/wires.py +++ b/python/report_ops/wires.py @@ -39,7 +39,7 @@ class Wire(Deal, table_name="custodian_wires", deal_type="custodian_wires"): self.amount = float(self.amount) @classmethod - def to_db(cls, fname, date): + def get_newest_report(cls, fname, date): cls.download_reports(date) p = max( [f for f in get_dir(date).iterdir() if fname in f.name], @@ -79,7 +79,7 @@ class BowdstWire(Wire, BNY, fund="BOWDST", dtkey="%Y%m%d%H%M%S"): @classmethod def to_db(cls, date): - p = super().to_db("BowdstWires", date) + p = cls.get_newest_report("BowdstWires", date) with open(p) as fh: reader = DictReader(fh) for line in reader: @@ -103,7 +103,7 @@ class NTWire(Wire, NT, fund="ISOSEL", dtkey="%Y%m%d%H%M"): @classmethod def to_db(cls, date): - p = super().to_db("custodian_wires", date) + p = cls.get_newest_report("custodian_wires", date) with open(p) as fh: reader = DictReader(fh) for line in reader: |
