fix: remove duplicate code

This commit is contained in:
Ankush Menat
2021-09-01 20:27:30 +05:30
parent 4fe475b93d
commit 4069f6c9ac

View File

@@ -291,10 +291,6 @@ class Issue(Document):
self.agreement_status = "Ongoing"
self.save()
def reset_issue_metrics(self):
self.db_set("resolution_time", None)
self.db_set("user_resolution_time", None)
def get_priority(issue):
service_level_agreement = frappe.get_doc("Service Level Agreement", issue.service_level_agreement)
@@ -638,4 +634,4 @@ def is_before_working_hours(date, support_hours):
time = get_time_in_seconds(date)
if time < start_time:
return True
return False
return False