remove unused parameter

This commit is contained in:
Chris Dodge
2013-03-29 15:26:21 -04:00
parent bbb53a17f8
commit 60e295895e
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ class UnitState(object):
public = 'public'
def compute_unit_state(unit, subsection=None):
def compute_unit_state(unit):
"""
Returns whether this unit is 'draft', 'public', or 'private'.

View File

@@ -13,7 +13,7 @@ This def will enumerate through a passed in subsection and list all of the units
% for unit in subsection_units:
<li class="leaf unit" data-id="${unit.location}">
<%
unit_state = compute_unit_state(unit, subsection=subsection)
unit_state = compute_unit_state(unit)
if unit.location == selected:
selected_class = 'editing'
else: