misc: do not compute drafts info when comparing snapshots (#89799) #1424
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/89799-drafts-inspect-snapshot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: misc: do not compute drafts info when comparing snapshots (#89799)to misc: do not compute drafts info when comparing snapshots (#89799)@ -1756,2 +1756,4 @@
view.role = role_label
context['custom_views'] = sorted(custom_views, key=lambda x: getattr(x, 'title'))
context['is_carddef'] = isinstance(self.formdef, CardDef)
Ligne déplacée d'un peu plus bas, pour lisibilité.
@ -1767,2 +1768,2 @@
datetime.datetime.now() - datetime.timedelta(days=self.formdef.get_drafts_lifespan()),
)
receipt_time_criteria = GreaterOrEqual(
'receipt_time',
Tout le reste c'est indenter le code des infos des brouillons, pour ne pas être calculé en mode snapshot.