|
@ -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": |
|
|