Browse Source

Circular valid till key change

master
venkataakhil 1 year ago
parent
commit
cd1b5352e7
  1. 2
      smart_service/apis/addon_api.py

2
smart_service/apis/addon_api.py

@ -44,7 +44,7 @@ def addon(args=None):
try: try:
if args == "circular": if args == "circular":
api = frappe.db.sql( api = frappe.db.sql(
'''SELECT name,title,status,description,circular_image as FileUrl,valid_till as validity from {}.tabCircular WHERE valid_till >='{}' '''.format( '''SELECT name,title,status,description,circular_image as FileUrl,valid_till from {}.tabCircular WHERE valid_till >='{}' '''.format(
current_db_name, frappe.utils.today()), as_dict=True) current_db_name, frappe.utils.today()), as_dict=True)
for i in api: for i in api:
if i["status"] == "Active": if i["status"] == "Active":

Loading…
Cancel
Save