Skip to content

Commit

Permalink
Repositioned and removed capitalization on processor properties
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanMPhm committed Feb 26, 2025
1 parent a17e64c commit e9382b5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions process_report/processors/prepayment_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@ class PrepaymentProcessor(discount_processor.DiscountProcessor):
IS_DISCOUNT_BY_NERC = True
PREPAY_DEBITS_S3_FILEPATH = "Prepay/prepay_debits.csv"

prepay_credits: pandas.DataFrame
prepay_projects: pandas.DataFrame
prepay_contacts: pandas.DataFrame
prepay_debits_filepath: str
upload_to_s3: bool
export_nerc_credits: bool = True # For testing purposes

@property
def PREPAY_DEBITS_S3_BACKUP_FILEPATH(self):
def prepay_debits_s3_backup_filepath(self):
return f"Prepay/Archive/prepay_debits {util.get_iso8601_time()}.csv"

@property
def CREDITS_SNAPSHOT_FILEPATH(self):
def credits_snapshot_filepath(self):
return f"NERC_Prepaid_Group-Credits-{self.invoice_month}.csv"

@property
def CREDITS_SNAPSHOT_S3_FILEPATH(self):
def credits_snapshot_s3_filepath(self):
return f"Invoices/{self.invoice_month}/NERC_Prepaid_Group-Credits-{self.invoice_month}.csv"

@property
def CREDITS_SNAPSHOT_S3_ARCHIVE_FILEPATH(self):
def credits_snapshot_s3_archive_filepath(self):
return f"Invoices/{self.invoice_month}/Archive/NERC_Prepaid_Group-Credits-{self.invoice_month} {util.get_iso8601_time()}.csv"

prepay_credits: pandas.DataFrame
prepay_projects: pandas.DataFrame
prepay_contacts: pandas.DataFrame
prepay_debits_filepath: str
upload_to_s3: bool
export_nerc_credits: bool = True # For testing purposes

@staticmethod
def _load_prepay_debits(prepay_debits_filepath):
try:
Expand Down

0 comments on commit e9382b5

Please sign in to comment.