Skip to content

Commit

Permalink
Merge pull request #144 from edwardchalstrey1/restrict-rt-and-recent-…
Browse files Browse the repository at this point in the history
…years

Restrict RT variables and year to 2014
  • Loading branch information
edwardchalstrey1 authored May 16, 2024
2 parents 402182c + 9654832 commit 720f93b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions seshat/apps/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,8 +2912,8 @@ def assign_categorical_variables_to_shapes(shapes, variables):
app_map = {
'sc': 'Social Complexity Variables',
'wf': 'Warfare Variables (Military Technologies)',
'rt': 'Religion Tolerance',
# 'general': 'General Variables',
# 'rt': 'Religion Tolerance', TODO: Temporarily restricted. Uncomment when ready.
# 'general': 'General Variables', TODO: Not implemented yet
}

# Get sorted lists of choices for each categorical variable
Expand Down Expand Up @@ -2954,6 +2954,9 @@ def map_view_initial(request):

# Add categorical variable choices to content for dropdown selection
content['categorical_variables'] = categorical_variables

# TODO: Temporary restriction on the latest year for the map view
content['latest_year'] = 2014

return render(request,
'core/world_map.html',
Expand All @@ -2979,6 +2982,9 @@ def map_view_all(request):

# Add categorical variable choices to content for dropdown selection
content['categorical_variables'] = categorical_variables

# TODO: Temporary restriction on the latest year for the map view
content['latest_year'] = 2014

return JsonResponse(content)

Expand Down

0 comments on commit 720f93b

Please sign in to comment.