mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
Rename order_valid_for_sync -> should_sync_order
This commit is contained in:
@@ -179,7 +179,7 @@ class OutboundSyncProvider:
|
|||||||
"""
|
"""
|
||||||
return now() + timedelta(hours=1)
|
return now() + timedelta(hours=1)
|
||||||
|
|
||||||
def order_valid_for_sync(self, order):
|
def should_sync_order(self, order):
|
||||||
"""
|
"""
|
||||||
Optionally override this method to exclude certain orders from sync by returning ``False``
|
Optionally override this method to exclude certain orders from sync by returning ``False``
|
||||||
"""
|
"""
|
||||||
@@ -380,8 +380,8 @@ class OutboundSyncProvider:
|
|||||||
return info
|
return info
|
||||||
|
|
||||||
def sync_order(self, order):
|
def sync_order(self, order):
|
||||||
if not self.order_valid_for_sync(order):
|
if not self.should_sync_order(order):
|
||||||
logger.debug("Skipping order %r (not valid for sync)", order)
|
logger.debug("Skipping order %r", order)
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.debug("Syncing order %r", order)
|
logger.debug("Syncing order %r", order)
|
||||||
|
|||||||
Reference in New Issue
Block a user