fix: table name alias (#17706)
This commit is contained in:
parent
45cd60dfb2
commit
ba04c3e5bb
@ -463,8 +463,8 @@ def get_timeline_data(doctype, name):
|
|||||||
after = add_years(None, -1).strftime('%Y-%m-%d')
|
after = add_years(None, -1).strftime('%Y-%m-%d')
|
||||||
group_by='group by date(creation)'
|
group_by='group by date(creation)'
|
||||||
|
|
||||||
data = get_communication_data(doctype, name, after=after, group_by='group by date(`tabCommunication`.creation)',
|
data = get_communication_data(doctype, name, after=after, group_by='group by date(creation)',
|
||||||
fields='date(`tabCommunication`.creation), count(`tabCommunication`.name)',as_dict=False)
|
fields='date(C.creation) as creation, count(C.name)',as_dict=False)
|
||||||
|
|
||||||
# fetch and append data from Activity Log
|
# fetch and append data from Activity Log
|
||||||
data += frappe.db.sql("""select {fields}
|
data += frappe.db.sql("""select {fields}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user