Permalink
Browse files

removed unused dependency

  • Loading branch information...
joamag committed Nov 21, 2017
1 parent 9f6a58e commit 73ed6908d706af64d91e93feaf1291961c523222
Showing with 4 additions and 8 deletions.
  1. +0 −1 requirements.txt
  2. +0 −1 setup.py
  3. +4 −6 src/eadapters/models/product.py
View
@@ -1,2 +1 @@
commons_py
budy_api
View
@@ -23,7 +23,6 @@
"" : os.path.normpath("src")
},
install_requires = [
"commons_py",
"budy_api"
],
classifiers = [
@@ -1,8 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import commons
import appier
from . import graphic
@@ -79,14 +77,14 @@ def get_gender(self, default = "Male"):
@property
def discount(self):
if not self.price: return commons.Decimal(0.0)
if not self.price_compare: return commons.Decimal(0.0)
if not self.price: return 0.0
if not self.price_compare: return 0.0
return self.price_compare - self.price
@property
def discount_percent(self):
if not self.discount: return commons.Decimal(0.0)
return self.discount / self.price_compare * commons.Decimal(100.0)
if not self.discount: return 0.0
return self.discount / self.price_compare * 100.0
@property
def has_stock(self):

0 comments on commit 73ed690

Please sign in to comment.