From ecbc1dc08316f3f7c1e01a8841751624bb75a76a Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 13 Apr 2020 23:06:45 +0200 Subject: [PATCH] [DEV] update some sort in group and season --- front/src/app/scene/group/group.html | 4 ++-- front/src/app/scene/group/group.ts | 2 +- front/src/app/scene/type/type.html | 6 +++--- front/src/app/scene/type/type.ts | 4 ++-- front/src/app/service/dataInterface.ts | 3 ++- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/front/src/app/scene/group/group.html b/front/src/app/scene/group/group.html index b91d5d1..829b908 100644 --- a/front/src/app/scene/group/group.html +++ b/front/src/app/scene/group/group.html @@ -10,8 +10,8 @@
Saisons:
-
- +
+
diff --git a/front/src/app/scene/group/group.ts b/front/src/app/scene/group/group.ts index fe47a0b..f59f820 100644 --- a/front/src/app/scene/group/group.ts +++ b/front/src/app/scene/group/group.ts @@ -67,7 +67,7 @@ export class GroupComponent implements OnInit { self.covers = []; }); console.log("get parameter id: " + this.id_group); - this.groupService.getSaison(this.id_group) + this.groupService.getSaison(this.id_group, ["id", "name"]) .then(function(response) { self.saisons_error = ""; self.saisons = response diff --git a/front/src/app/scene/type/type.html b/front/src/app/scene/type/type.html index a4e6e4e..f0b0298 100644 --- a/front/src/app/scene/type/type.html +++ b/front/src/app/scene/type/type.html @@ -9,14 +9,14 @@ {{description}}
-
- +
+
- +
diff --git a/front/src/app/scene/type/type.ts b/front/src/app/scene/type/type.ts index d7ef886..a06917e 100644 --- a/front/src/app/scene/type/type.ts +++ b/front/src/app/scene/type/type.ts @@ -58,7 +58,7 @@ export class TypeComponent implements OnInit { self.name = "???"; self.description = ""; }); - this.typeService.getSubGroup(this.type_id) + this.typeService.getSubGroup(this.type_id, ["id", "name"]) .then(function(response) { self.groups_error = ""; self.groups = response @@ -66,7 +66,7 @@ export class TypeComponent implements OnInit { self.groups_error = "Wrong e-mail/login or password"; self.groups = [] }); - this.typeService.getSubVideo(this.type_id) + this.typeService.getSubVideo(this.type_id, ["id", "name"]) .then(function(response) { self.videos_error = ""; self.videos = response diff --git a/front/src/app/service/dataInterface.ts b/front/src/app/service/dataInterface.ts index 1741310..e8495e7 100644 --- a/front/src/app/service/dataInterface.ts +++ b/front/src/app/service/dataInterface.ts @@ -36,7 +36,7 @@ export class DataInterface { } gets_where(_select, _filter=undefined, _orderBy=undefined){ - console.log("[I] gets " + this.name); + //console.log("[I] gets_where " + this.name + " select " + _select); let tmp_list = this.get_sub_list(this.bdd, _select); tmp_list = this.order_by(tmp_list, _orderBy); return this.filter_object_values(tmp_list, _filter); @@ -219,6 +219,7 @@ export class DataInterface { } out.push(_values[iii]); } + //console.log("order in list by : " + value_order); //out = sorted(out, key=lambda x{ x[value_order]) out.sort(function (a, b) { //const name1 = t1.name.toLowerCase();