2021-04-04 19:42:12 +02:00
|
|
|
#attr
|
2020-12-26 15:15:51 +01:00
|
|
|
%for %%lead in %%leader
|
|
|
|
leader: %%lead
|
|
|
|
%if %%hasattr(%%lead, 'follower1')
|
|
|
|
follower1: %%lead.follower1
|
|
|
|
%end if
|
|
|
|
%if %%hasattr(%%lead, 'follower2')
|
|
|
|
follower2: %%lead.follower2
|
|
|
|
%end if
|
|
|
|
%end for
|
2021-04-04 19:42:12 +02:00
|
|
|
#key
|
|
|
|
%for %%lead in %%leader
|
|
|
|
leader: %%lead
|
|
|
|
%if 'follower1' in %%lead
|
|
|
|
follower1: %%lead['follower1']
|
|
|
|
%end if
|
|
|
|
%if 'follower2' in %%lead
|
|
|
|
follower2: %%lead['follower2']
|
|
|
|
%end if
|
|
|
|
%end for
|