Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
c213fcec
Commit
c213fcec
authored
May 11, 2020
by
Imane Misrar
Browse files
fix(university.py/FilterService) : id_destination_open into is_destination_open
Relates to
#148
parent
00a7fff8
Pipeline
#60923
passed with stages
in 9 minutes and 13 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
backend/backend_app/models/university.py
View file @
c213fcec
...
...
@@ -111,7 +111,7 @@ def update_denormalized_univ_field():
semesters_majors_minors
[
semester
][
major
].
append
(
minor
)
# handling of corresponding_utc_partners
i
d
_destination_open
=
(
i
s
_destination_open
=
(
university
.
corresponding_utc_partners
.
filter
(
is_destination_open
=
True
).
count
()
...
...
@@ -119,7 +119,7 @@ def update_denormalized_univ_field():
)
university
.
denormalized_infos
=
dict
(
i
d
_destination_open
=
i
d
_destination_open
,
i
s
_destination_open
=
i
s
_destination_open
,
semesters_majors_minors
=
semesters_majors_minors
,
)
university
.
save
()
...
...
frontend/src/services/FilterService.js
View file @
c213fcec
...
...
@@ -178,7 +178,7 @@ class FilterService {
if
(
selectOnlyOpenDestinations
)
{
possible
=
possible
.
filter
(
univ
=>
univ
.
denormalized_infos
.
i
d
_destination_open
===
true
univ
=>
univ
.
denormalized_infos
.
i
s
_destination_open
===
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment