fix: revert get_all change
get_all doesn't use get_query
This commit is contained in:
parent
ae3f216255
commit
e6c939c606
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ class TestDB(IntegrationTestCase):
|
|||
random_field,
|
||||
)
|
||||
self.assertEqual(
|
||||
next(iter(frappe.get_all("ToDo", fields=[{"COUNT": random_field}], limit=1)[0])),
|
||||
next(iter(frappe.get_all("ToDo", fields=[f"count(`{random_field}`)"], limit=1)[0])),
|
||||
"count" if frappe.conf.db_type == "postgres" else f"count(`{random_field}`)",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue