|
|
@ -73,14 +73,14 @@ def masters(args=None, LSD=None, iid=None): |
|
|
|
if publish_type == 'Global': |
|
|
|
api = frappe.db.sql(f''' |
|
|
|
select name as vehicle,vehicle_segment,vehicle_segment_id,image,active_status,display_order, |
|
|
|
myid as vechile_id,display_order,modified from tabVehicle |
|
|
|
myid as vechile_id,display_order,modified from `tabVehicle` |
|
|
|
where modified > '{LSD}' and global_publish = 1; |
|
|
|
''', as_dict=1) |
|
|
|
|
|
|
|
elif publish_type == 'Internal': |
|
|
|
api = frappe.db.sql(f''' |
|
|
|
select name as vehicle,vehicle_segment,vehicle_segment_id,image,active_status,display_order, |
|
|
|
myid as vechile_id,display_order,modified from tabVehicle |
|
|
|
myid as vechile_id,display_order,modified from `tabVehicle` |
|
|
|
where modified > '{LSD}' and internal_publish = 1; |
|
|
|
''', as_dict=1) |
|
|
|
else: |
|
|
|