def get_last_week_dashboard_stats(user_id):
 weekly_dashboard_stats = get_weekly_dashboard_stats(user_id)
 if weekly_dashboard_stats:
  return weekly_dashboard_stats[(-1)]
 else:
  return None

def get_last_week_dashboard_stats ( user_id ) : weekly_dashboard_stats = get_weekly_dashboard_stats ( user_id ) if weekly_dashboard_stats : return weekly_dashboard_stats [ ( - 1 ) ] else : return None
gets last weeks dashboard stats for a given user_id .