Merge pull request #7727 from surajshetty3416/fix-postgres
fix(postgres): Pass tuple of all_ids instead of an array
This commit is contained in:
commit
aae730fe2a
2 changed files with 2 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ def msgprint(msg, title=None, raise_exception=0, as_table=False, indicator=None,
|
|||
|
||||
message_log.append(json.dumps(out))
|
||||
|
||||
if raise_exception:
|
||||
if raise_exception and hasattr(raise_exception, '__name__'):
|
||||
local.response['exc_type'] = raise_exception.__name__
|
||||
|
||||
_raise_exception()
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ def send(recipients=None, sender=None, subject=None, message=None, text_content=
|
|||
recipients = list(set(recipients))
|
||||
cc = list(set(cc))
|
||||
|
||||
all_ids = recipients + cc
|
||||
all_ids = tuple(recipients + cc)
|
||||
|
||||
unsubscribed = frappe.db.sql_list('''
|
||||
SELECT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue