Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def collect_status():
stati = []
for status in html.find_all('class', 'row', 'attribute')[5:]:
if 'rowempty' in status:
continue
elif 'row' == status:
stati.append([const.status.active])
else:
activitys = []
for activity in [const.status.active, const.status.inactive, const.status.vacation,
const.status.noob, const.status.honorableTarget]:
if activity in status and activity != 'active':
activitys.append(activity)
stati.append(activitys)
return stati
def collect_status():
stati = []
for status in html.find_all('class', 'row', 'attribute')[5:]:
if 'rowempty' in status:
continue
elif 'row' == status:
stati.append([const.status.active])
else:
activitys = []
for activity in [const.status.active, const.status.inactive, const.status.vacation,
const.status.noob, const.status.honorableTarget]:
if activity in status and activity != 'active':
activitys.append(activity)
stati.append(activitys)
return stati
def collect_status():
stati = []
for status in html.find_all('class', 'row', 'attribute')[5:]:
if 'rowempty' in status:
continue
elif 'row' == status:
stati.append([const.status.active])
else:
activitys = []
for activity in [const.status.active, const.status.inactive, const.status.vacation,
const.status.noob, const.status.honorableTarget]:
if activity in status and activity != 'active':
activitys.append(activity)
stati.append(activitys)
return stati