Skip to content

Commit d7a636b

Browse files
committed
Merge branch 'main' into feature/charge_seperatetly
2 parents 031861b + 80ed70c commit d7a636b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/viur/shop/types/dc_scope.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from viur.core.skeleton import RefSkel, SkeletonInstance, skeletonByKind
3434
from .enums import *
3535
from .exceptions import DispatchError, InvalidStateError
36-
from ..globals import SENTINEL, SHOP_INSTANCE, SHOP_LOGGER, Sentinel
36+
from ..globals import DEBUG_DISCOUNTS, SENTINEL, SHOP_INSTANCE, SHOP_LOGGER, Sentinel
3737
from ..services import HOOK_SERVICE, Hook
3838
from ..types import SkeletonInstance_T
3939

@@ -285,9 +285,9 @@ def is_fulfilled(self) -> bool:
285285
self._is_fulfilled = any(cv.is_fulfilled for cv in self.condition_validator_instances)
286286
elif self.discount_skel["condition_operator"] == ConditionOperator.ALL:
287287
logger.debug("Checking for all")
288-
logger.debug(f"{self.condition_validator_instances=}")
289-
290-
pprint.pprint(self.condition_validator_instances)
288+
if DEBUG_DISCOUNTS.get():
289+
logger.debug(f"{self.condition_validator_instances=}")
290+
pprint.pprint(self.condition_validator_instances)
291291
self._is_fulfilled = all(cv.is_fulfilled for cv in self.condition_validator_instances)
292292
else:
293293
raise InvalidStateError(f'Invalid condition operator: {self.discount_skel["condition_operator"]}')

src/viur/shop/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# For pre-releases, postfix with ".betaN" or ".rcN" where `N` is an incremented number for each pre-release.
33
# This will mark it as a pre-release as well on PyPI.
44

5-
__version__ = "0.12.0"
5+
__version__ = "0.12.1"
66

77
assert __version__.count(".") >= 2 and "".join(__version__.split(".", 3)[:3]).isdigit(), \
88
"Semantic __version__ expected!"

0 commit comments

Comments
 (0)