Commit f21f0465 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: fixup typo

parent 3ae06e91
...@@ -5,7 +5,7 @@ person = context.getSourceAdministrationValue(portal_type="Person") ...@@ -5,7 +5,7 @@ person = context.getSourceAdministrationValue(portal_type="Person")
if not person or \ if not person or \
context.getMonitorScope() == "disabled" or \ context.getMonitorScope() == "disabled" or \
portal.ERP5Site_isSupportRequestCreationClosed(): portal.ERP5Site_isSupportRequestCreationClosed():
return return
if context.getAllocationScope("open").startswith("close"): if context.getAllocationScope("open").startswith("close"):
context.setMonitorScope("disabled") context.setMonitorScope("disabled")
...@@ -101,7 +101,7 @@ if not should_notify: ...@@ -101,7 +101,7 @@ if not should_notify:
# Ignore if there isnt any data on it # Ignore if there isnt any data on it
continue continue
last_contact = max(DateTime(instance_access_status.get('created_at')), last_contact) last_contact = max(DateTime(installation_access_status.get('created_at')), last_contact)
if (now - DateTime(installation_access_status.get('created_at'))) < 1.01: if (now - DateTime(installation_access_status.get('created_at'))) < 1.01:
should_notify = False should_notify = False
description = "" description = ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment