fossasia/open-event-orga-server

View on GitHub
migrations/versions/76c949b1235f_.py

Summary

Maintainability
A
2 hrs
Test Coverage

Function downgrade has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def downgrade():
    op.alter_column('events', 'can_pay_by_stripe', new_column_name='pay_by_stripe')
    op.alter_column('events', 'can_pay_by_bank', new_column_name='pay_by_bank')
    op.alter_column('events', 'can_pay_by_cheque', new_column_name='pay_by_cheque')
    op.alter_column('events', 'can_pay_by_paypal', new_column_name='pay_by_paypal')
Severity: Minor
Found in migrations/versions/76c949b1235f_.py - About 1 hr to fix

Function upgrade has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

def upgrade():
    op.alter_column('events', 'pay_by_stripe', new_column_name='can_pay_by_stripe')
    op.alter_column('events', 'pay_by_bank', new_column_name='can_pay_by_bank')
    op.alter_column('events', 'pay_by_paypal', new_column_name='can_pay_by_paypal')
    op.alter_column('events', 'pay_by_cheque', new_column_name='can_pay_by_cheque')
Severity: Minor
Found in migrations/versions/76c949b1235f_.py - About 1 hr to fix

There are no issues that match your filters.

Category
Status