Get rid of default type from the activity definition.
Modify code to use activity type id instead, except from mapping service to activity.
This commit is contained in:
@@ -11,7 +11,7 @@ class ActivityItem(IconItem):
|
||||
def __init__(self, activity, size):
|
||||
icon_name = activity.get_icon()
|
||||
if not icon_name:
|
||||
act_type = activity.get_default_type()
|
||||
act_type = activity.get_type()
|
||||
raise RuntimeError("Activity %s did not have an icon!" % act_type)
|
||||
IconItem.__init__(self, icon_name=icon_name,
|
||||
color=IconColor('white'), size=size)
|
||||
|
||||
Reference in New Issue
Block a user