|
|
@ -44,7 +44,7 @@ def addon(args=None): |
|
|
|
try: |
|
|
|
if args == "circular": |
|
|
|
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) |
|
|
|
for i in api: |
|
|
|
if i["status"] == "Active": |
|
|
|