Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezekiah committed Jun 25, 2013
1 parent de55f2b commit 711032a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion outside/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def enquete_data( request, enquete_id ):
'articles': [{'article':a.name} for a in t.tags.filter(type=Tag.ARTICLE)],
# 'tags':[ {'name':tag.name, 'type':tag.type} for tag in t.tags.all() ],
'categories': [{'category':c} for c in t.doccat2.split(",")],
'phases': [{'phase' : PHASE_LABEL[t.doccat1]}],
'phases': 1,
'times':[{'time':t.date.isoformat()} ] if t.date else [],
'location': t.locationgeo,
'coordinates' : {"type": "Feature","geometry": {"type": "Point","coordinates": t.locationgeo.split(",")[::-1] if t.locationgeo else [] },"properties": {"name": t.location}},
Expand Down
2 changes: 2 additions & 0 deletions reanalyseapp/globalvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@
PHASE_LABEL['prep'] = 'préparatoire'
PHASE_LABEL['anal'] = 'analyse'
PHASE_LABEL['col'] = 'collecte'
PHASE_LABEL['add'] = 'add'
PHASE_LABEL['ese'] = 'ese'


# DEPRECATED Descriptions
Expand Down

0 comments on commit 711032a

Please sign in to comment.