diff --git a/frameworks/WAFS/WAFS.py b/frameworks/WAFS/WAFS.py index 38e7821..21c7278 100644 --- a/frameworks/WAFS/WAFS.py +++ b/frameworks/WAFS/WAFS.py @@ -32,6 +32,7 @@ def __init__(self, data): self.WATools = waTools self.WATools.init(tmpParams) self.WATools.createReportIfNotExists() + self.WATools.createMilestoneIfNotExists() self.WATools.listAnswers() # print(self.WATools.answerSets) diff --git a/services/PageBuilder.py b/services/PageBuilder.py index 8407620..cc01d48 100644 --- a/services/PageBuilder.py +++ b/services/PageBuilder.py @@ -694,12 +694,13 @@ def genaiModalHtml(self): } sbtn.prop('disabled', true) - genaiResp.text("... generating results, it can times, please be patient ...") + myJsonData = {'api_data': currentInfo} + genaiResp.text("... generating results, it can take times, please be patient ...\\n\\nData sent are as below:\\n" + JSON.stringify(myJsonData, null, 4)) a_url = genaikeys[0] a_key = genaikeys[1] - myJsonData = {'api_data': currentInfo} + $.ajax({ url: a_url, // headers: {'x-api-key': a_key}, @@ -708,7 +709,7 @@ def genaiModalHtml(self): contentType: 'application/json', dataType: 'json', success: function(response) { - genaiResp.text(response['createdAt']) + genaiResp.text(response['response']) sbtn.prop('disabled', false) }, error: function(xhr, status, error) { @@ -725,16 +726,16 @@ def genaiModalHtml(self):