Browse Source

Fix Invalid Installation ID for Master API from client API request

master
venkataakhil 1 year ago
parent
commit
6fd3fda814
  1. 658246
      smart_service/apis/THAR-en-full_v12.00.json
  2. 11
      smart_service/apis/master_api.py

658246
smart_service/apis/THAR-en-full_v12.00.json

File diff suppressed because it is too large

11
smart_service/apis/master_api.py

@ -67,12 +67,15 @@ def masters(args=None, LSD=None,iid=None):
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; where modified > '{LSD}' and global_publish = 1;
''',as_dict=1) ''',as_dict=1)
else: elif publish_type == 'Internal':
api = frappe.db.sql(f''' api = frappe.db.sql(f'''
select name as vehicle,vehicle_segment,vehicle_segment_id,image,active_status,display_order, 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; where modified > '{LSD}' and internal_publish = 1;
''',as_dict=1) ''', as_dict=1)
else:
api = []
for i in api: for i in api:
if i["active_status"] == "Active": if i["active_status"] == "Active":
i["active_status"] = True i["active_status"] = True

Loading…
Cancel
Save