Minor refactoring

This commit is contained in:
Raphael Michel
2014-10-17 10:25:29 +02:00
parent 912b0b4211
commit a7beb46c94
10 changed files with 32 additions and 14 deletions

View File

@@ -88,8 +88,7 @@ def availability_handler(sender, **kwargs):
if 'variation' not in v or v['variation'] not in applied_to:
continue
if (restriction.timeframe_from <= now()
and restriction.timeframe_to >= now()):
if (restriction.timeframe_from <= now() <= restriction.timeframe_to):
# Selling this item is currently possible
available = True
# If multiple time frames are currently active, make sure to