Skip to content

Commit

Permalink
Merge pull request #792 from kamaljohnson/fix-formating-issues
Browse files Browse the repository at this point in the history
fix: formatting issues
  • Loading branch information
kamaljohnson authored Nov 10, 2022
2 parents 3eca63d + 78811fb commit 4eb2dd6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion frappedesk/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.4"
__version__ = "0.5.4"
22 changes: 11 additions & 11 deletions frappedesk/api/cannedResponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

@frappe.whitelist()
def get_canned_response(title=None):
if title == None:
response_list = frappe.db.get_list(
"Canned Response", fields=["name", "title", "message"]
)
else:
response_list = frappe.db.get_list(
"Canned Response",
fields=["name", "title", "message"],
filters={"title": ["like", "%{}%".format(title)]},
)
if title == None:
response_list = frappe.db.get_list(
"Canned Response", fields=["name", "title", "message"]
)
else:
response_list = frappe.db.get_list(
"Canned Response",
fields=["name", "title", "message"],
filters={"title": ["like", "%{}%".format(title)]},
)

return response_list
return response_list
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
# import frappe
from frappe.model.document import Document


class CannedResponse(Document):
pass
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) 2022, Frappe Technologies and contributors
// For license information, please see license.txt

frappe.ui.form.on('FD Preset Filter', {
frappe.ui.form.on("FD Preset Filter", {
// refresh: function(frm) {

// }
});
})

0 comments on commit 4eb2dd6

Please sign in to comment.