Skip to content

Account not marked as legacy #740

@lukasjuhrich

Description

@lukasjuhrich

I've stumbled across this piece of code, which most likely is a bug:

account = session.get(Account, account_id)
if not account:
abort(404)
account.legacy = not account.legacy
session.commit()

it's missing a session.add(account).

  • Add a test witnessing this bug
  • make it pass :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 web/uiThings relating to Flask routes and Jinja templatesbugeasy task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions