chore: resolve linting issue

This commit is contained in:
ruthra kumar 2023-11-10 15:27:28 +05:30
parent c320288690
commit 73639db910

View File

@ -8,14 +8,13 @@ from frappe.query_builder.functions import Count
from frappe.utils import cint from frappe.utils import cint
from pypika import Order from pypika import Order
log_detail = qb.DocType("Bulk Transaction Log Detail")
class BulkTransactionLog(Document): class BulkTransactionLog(Document):
def db_insert(self, *args, **kwargs): def db_insert(self, *args, **kwargs):
pass pass
def load_from_db(self): def load_from_db(self):
log_detail = qb.DocType("Bulk Transaction Log Detail")
succeeded_logs = ( succeeded_logs = (
qb.from_(log_detail) qb.from_(log_detail)
.select(Count(log_detail.date).as_("count")) .select(Count(log_detail.date).as_("count"))
@ -41,6 +40,7 @@ class BulkTransactionLog(Document):
@staticmethod @staticmethod
def get_list(args): def get_list(args):
log_detail = qb.DocType("Bulk Transaction Log Detail")
limit = cint(args.get("page_length")) or 20 limit = cint(args.get("page_length")) or 20
dates = ( dates = (
qb.from_(log_detail) qb.from_(log_detail)