// Hack to trigger layout change in latest Mozilla
Then, whoever interested in the hack can read the full explanation from the commit message. UPDATE purchase SET downloads_left=%(downloads_left)s WHERE purchase.id = %(purchases_id)s;
By the way, the posted code has an off-by-one error, as it should do the checking first before the minus operation. Also, the line `db.session.add(purchase)` is redundant. | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | |
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| |_|/ / / / / / / / / / / / /
|/| | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
There are only 4 people working on the repo.
Anyway, either one is superior to 'indent to sibling', where the lines are now tightly coupled to each other.