Skip to content

Commit

Permalink
Updating top level id.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Camp committed Feb 11, 2022
1 parent 34e81d0 commit c11607d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions complianceio/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,19 @@ def create_groups(p):
links = []
related = row[c_map.get('related')].value
if related and related.strip():
rlt = related.split(',')
rlt = related.strip().replace(' ', ',').split(',')
for r in rlt:
if r[:4] != 'None':
link = r.strip()
links.append(Link(
href=f'#{link}',
rel='related'
))
if link:
links.append(Link(
href=f'#{link}',
rel='related'
))
l = links if len(links) > 0 else None

controls.append(Control(
id=cid,
id=cid.strip('_smt'),
class_='ARS-5.0-Mandatory',
title=name,
props=[Property(
Expand Down

0 comments on commit c11607d

Please sign in to comment.