Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
c786f5fb
Commit
c786f5fb
authored
Oct 09, 2016
by
Nicolas Joyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix QA
parent
da7aecbe
Pipeline
#171
failed with stage
in 15 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/memopol/views/charts.py
src/memopol/views/charts.py
+3
-2
No files found.
src/memopol/views/charts.py
View file @
c786f5fb
...
...
@@ -2,7 +2,7 @@ import datetime
import
json
from
django.db.models
import
Q
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
,
HttpResponseNotFound
from
django.views
import
generic
from
representatives.models
import
Chamber
,
Representative
...
...
@@ -29,7 +29,8 @@ class ThemeScoresJSONView(generic.View):
data
=
{
"theme"
:
theme
.
name
,
"scores"
:
[
ts
[
'score'
]
for
ts
in
ThemeScore
.
objects
.
filter
(
theme
=
theme
).
order_by
(
'score'
).
values
(
'score'
)]
ThemeScore
.
objects
.
filter
(
theme
=
theme
).
order_by
(
'score'
)
.
values
(
'score'
)]
}
return
HttpResponse
(
json
.
dumps
(
data
),
content_type
=
'application/json'
)
...
...
Write
Preview
Markdown
is supported
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