Frappe.db.get_list, using filters with sum of 2 columns

Hi guys,

I created a custom doctype Room with 2 column: capacity and extra_capacity

So let say I need to get all the records which capacity + extra_capacity > 5

How can I achieve this with get_list method ?
( I know that I can use frappe.db.sql, but it seem not good)

Thank you

2 Likes