Skip to content

Commit 5485494

Browse files
committed
fix: call rebuild from UI API wrapper
1 parent 11f0c23 commit 5485494

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rdf_differ/entrypoints/ui/api_wrapper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_report(dataset_id: str, application_profile: str, template_type: str) ->
6262

6363
def build_report(dataset_id: str, application_profile: str, template_type: str) -> tuple:
6464
"""
65-
Method to send build a report call to api
65+
Method to send build a report call to api (with rebuild always)
6666
:param dataset_id: The dataset identifier.
6767
:param application_profile: application profile for report
6868
:param template_type: report variation
@@ -71,7 +71,8 @@ def build_report(dataset_id: str, application_profile: str, template_type: str)
7171
data = dumps({
7272
'dataset_id': dataset_id,
7373
'application_profile': application_profile,
74-
'template_type': template_type
74+
'template_type': template_type,
75+
'rebuild': 'true'
7576
})
7677
headers = {'Content-type': 'application/json'}
7778
response = requests.post(rdf_differ.config.RDF_DIFFER_API_SERVICE + '/diffs/report', data=data, headers=headers)

rdf_differ/entrypoints/ui/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ def view_dataset(dataset_id: str):
9393
response, status = build_report(
9494
dataset_id=dataset_id,
9595
application_profile=form.application_profile.data,
96-
template_type=form.template_type.data,
97-
rebuild='true'
96+
template_type=form.template_type.data
9897
)
9998

10099
if status != 200:

0 commit comments

Comments
 (0)