generative actions
This commit is contained in:
@@ -931,8 +931,8 @@ def refresh_daily_report():
|
|||||||
# Generative Actions
|
# Generative Actions
|
||||||
@api.route("/auto/generativeAction", methods=["GET"])
|
@api.route("/auto/generativeAction", methods=["GET"])
|
||||||
def refresh_generative_action():
|
def refresh_generative_action():
|
||||||
data = request.get_json()
|
data = {}
|
||||||
logger.info(f"Generative Actions ==>>>> {data}")
|
logger.info(f"Generative Actions ==>>>>")
|
||||||
GenerativesService.process_generatives_list(data) #INITIATE GENERATIVES
|
GenerativesService.process_generatives_list(data) #INITIATE GENERATIVES
|
||||||
return {"status": "ok"}, 200
|
return {"status": "ok"}, 200
|
||||||
|
|
||||||
|
|||||||
@@ -283,6 +283,8 @@ class BaseService:
|
|||||||
# Convert the JSON response to a Python dictionary
|
# Convert the JSON response to a Python dictionary
|
||||||
res_data = response.json()
|
res_data = response.json()
|
||||||
logger.info(f"Response Site Images: {res_data}")
|
logger.info(f"Response Site Images: {res_data}")
|
||||||
|
else:
|
||||||
|
res_data={}
|
||||||
|
|
||||||
response_data = {
|
response_data = {
|
||||||
"provision_uid": str(provision_uid),
|
"provision_uid": str(provision_uid),
|
||||||
|
|||||||
Reference in New Issue
Block a user