Browse Source

Table name fix

version2
venkata akhil 1 year ago
parent
commit
5e3d038de4
  1. 4
      smart_service/apis/master_api.py

4
smart_service/apis/master_api.py

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

Loading…
Cancel
Save