Skip to content

Commit

Permalink
💣 Litle fix to avoid a huge error
Browse files Browse the repository at this point in the history
Signed-off-by: Vildan Safin <[email protected]>
  • Loading branch information
Enigma228322 committed May 26, 2020
1 parent da1e5db commit 26591ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion saas_apps/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ def cart_update_price_page(self, **kw):
user_product.price = kw.get('user_price')
if not period == 'm':
user_product.price *= 12
old_user_cnt, user_cnt = float(kw.get('old_user_cnt')), float(kw.get('user_cnt'))
import wdb;wdb.set_trace()
old_user_cnt = 0
if kw.get('old_user_cnt'):
old_user_cnt = float(kw.get('old_user_cnt'))
user_cnt = float(kw.get('user_cnt'))
if not old_user_cnt:
old_user_cnt = 0
sale_order._cart_update(
Expand Down

0 comments on commit 26591ba

Please sign in to comment.