Skip to content

Commit

Permalink
Remove RECONCILE_IN_WEBHOOK feature flag
Browse files Browse the repository at this point in the history
It worked fine last time and I'd prefer not to have unused options
  • Loading branch information
russss committed Jan 23, 2024
1 parent 39593da commit e876978
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions apps/payments/wise.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from models.payment import BankAccount, BankTransaction
from . import payments
from .banktransfer import reconcile_txns
from ..common import feature_enabled
from main import db, wise

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -177,9 +176,8 @@ def sync_wise_statement(profile_id, borderless_account_id, currency):
logger.info("Imported %s transactions", len(txns))
db.session.commit()

if feature_enabled("RECONCILE_IN_WEBHOOK"):
logger.info("Attempting reconciliation")
reconcile_txns(txns, doit=True)
logger.info("Reconciling...")
reconcile_txns(txns, doit=True)


def wise_business_profile():
Expand Down
1 change: 0 additions & 1 deletion config/development-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ SCHEDULE = False
RADIO = False
ISSUE_TICKETS = False
REFUND_REQUESTS = False
RECONCILE_IN_WEBHOOK = True
VOLUNTEER_SITE = True
VOLUNTEERS_SIGNUP = True
VOLUNTEERS_SCHEDULE = True
Expand Down
1 change: 0 additions & 1 deletion config/kelvin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ CFP_CLOSED = False
VOLUNTEERS_SCHEDULE = True
RADIO = False
ISSUE_TICKETS = False
RECONCILE_IN_WEBHOOK = True
LINE_UP = False
SCHEDULE = False
REFUND_REQUESTS = False
Expand Down
1 change: 0 additions & 1 deletion models/feature_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"CFP_CLOSED",
"CFP_FINALISE",
"ISSUE_TICKETS",
"RECONCILE_IN_WEBHOOK",
"RADIO",
"LINE_UP",
"LIGHTNING_TALKS",
Expand Down

0 comments on commit e876978

Please sign in to comment.