|
|
@ -64,13 +64,13 @@ 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 _a9b9faaf89312ce4.tabVehicle |
|
|
|
myid as vechile_id,display_order,modified from tabVehicle |
|
|
|
where modified > '{LSD}' and global_publish = 1; |
|
|
|
''',as_dict=1) |
|
|
|
else: |
|
|
|
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 _a9b9faaf89312ce4.tabVehicle |
|
|
|
myid as vechile_id,display_order,modified from tabVehicle |
|
|
|
where modified > '{LSD}' and internal_publish = 1; |
|
|
|
''',as_dict=1) |
|
|
|
for i in api: |
|
|
@ -295,4 +295,4 @@ def check_pub_type(iid): |
|
|
|
|
|
|
|
if not device_pub_type: |
|
|
|
return False |
|
|
|
return device_pub_type[0][0] |
|
|
|
return device_pub_type[0][0] |
|
|
|