Commit 883999c8 authored by Giannis Tsapelas's avatar Giannis Tsapelas
Browse files

new url updates

parent 2b4d602a
Pipeline #4686 failed with stages
in 18 minutes and 39 seconds
......@@ -161,7 +161,7 @@ $(function () {
initChartOptions: function (obj) {
var that = this;
$.ajax({
url: '/simplified/config/',
url: '/aqb/simplified/config/',
success: function (chartPolicy) {
that.setChartOptions(obj, '', chartPolicy)
}
......@@ -482,7 +482,7 @@ $(function () {
// $("#cancel-query-btn").show();
var xhr = $.ajax({
url: '/execute/',
url: '/aqb/execute/',
type: 'POST',
data: {
query: JSON.stringify(doc),
......@@ -624,10 +624,10 @@ $(function () {
var that = this;
var url;
if (temp === 1){
url = '/save/' + (this.objects[0].tempQueryId ? this.objects[0].tempQueryId + '/' : '') + '1/'
url = '/aqb/save/' + (this.objects[0].tempQueryId ? this.objects[0].tempQueryId + '/' : '') + '1/'
}
else{
url = '/save/' + (this.objects[0].queryId ? this.objects[0].queryId + '/' : '') + '0/'
url = '/aqb/save/' + (this.objects[0].queryId ? this.objects[0].queryId + '/' : '') + '0/'
}
$.ajax({
url: url,
......@@ -683,7 +683,7 @@ $(function () {
load: function (queryId) {
$("#new-query").click();
$.ajax({
url: '/load/' + queryId + '/',
url: '/aqb/load/' + queryId + '/',
type: 'GET',
success: function (data) {
var doc = data.document;
......@@ -831,7 +831,7 @@ $(function () {
$modalBody.closest('.ui-dialog').css('top', '30px');
// get the user's charts
$.ajax({
url: '/simplified/list/',
url: '/aqb/simplified/list/',
type: 'GET',
success: function (data) {
$modalBody.html(data);
......@@ -1157,10 +1157,10 @@ $(function () {
$inputContainer.empty();
var url = '';
if (filterType == 'variable'){
url = '/simplified/filter-info/variable/' + chosenFilter + '/'
url = '/aqb/simplified/filter-info/variable/' + chosenFilter + '/'
}
else{
url = '/simplified/filter-info/dimension/' + chosenFilter + '/'
url = '/aqb/simplified/filter-info/dimension/' + chosenFilter + '/'
}
// INSTEAD OF CALLING THE BACK-END
......
......@@ -402,10 +402,12 @@ def get_user(request):
access_token=request.META['HTTP_AUTHORIZATION'].split(' ')[1])
print(prof)
user = prof.user
print(user)
except:
user = None
pass
print('**********')
print(user)
print('**********')
return user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment