Skip to content

Commit

Permalink
chore: fix linter (frappe#30925)
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed May 8, 2022
1 parent bf2eaec commit 2972ef8
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -12,11 +12,8 @@ def execute():
for asset in assets:
frappe.db.set_value("Asset", asset.name, "available_for_use_date", asset.purchase_date)


def get_assets_without_available_for_use_date():
return frappe.get_all(
"Asset",
filters = {
"available_for_use_date": ["in", ["", None]]
},
fields = ["name", "purchase_date"]
"Asset", filters={"available_for_use_date": ["in", ["", None]]}, fields=["name", "purchase_date"]
)

0 comments on commit 2972ef8

Please sign in to comment.