forked from CGM_Public/pretix_original
Minor refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user