remove unused parameter
This commit is contained in:
@@ -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'.
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user