Skip to content

Commit 42f09c1

Browse files
committed
clean rebase, fix errors
1 parent cbe2e6f commit 42f09c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

nireports/assembler/data/rating-widget/footer.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ $( '#{{ config.components.actions[1].id }}' ).click( function() {
161161
// disable development releases
162162
var authorization = $(this).val();
163163
var ratingReq = new XMLHttpRequest();
164-
ratingReq.open("POST", "{{ metadata.endpoint }}");
164+
ratingReq.open("POST", get_api_url());
165165
ratingReq.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
166-
ratingReq.setRequestHeader("Authorization", get_api_url());
166+
ratingReq.setRequestHeader("Authorization", authorization);
167167
ratingReq.onload = function () {
168168
status = ratingReq.status;
169169
$('#{{ config.components.actions[1].id }}').removeClass('btn-primary');

nireports/assembler/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Report:
100100
... dirs_exist_ok=True,
101101
... )
102102
>>> REPORT_BASELINE_LENGTH = 41770
103-
>>> RATING_WIDGET_LENGTH = 83710
103+
>>> RATING_WIDGET_LENGTH = 83698
104104
105105
106106
Examples

0 commit comments

Comments
 (0)