Skip to content

Commit c1f6798

Browse files
authored
Merge pull request #215 from dnlbauer/preview_template_function_return_values
Preview template function return values
2 parents 61eb7cb + 49acf72 commit c1f6798

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rocrate/model/preview.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,15 @@ def stringify(a):
7070
if a._jsonld and a._jsonld['name']:
7171
return a._jsonld['name']
7272
else:
73-
return a
73+
return str(a)
7474

7575
@template_function
7676
def is_object_list(a):
7777
if type(a) is list:
7878
for obj in a:
7979
if obj is not str:
8080
return True
81-
else:
82-
return False
81+
return False
8382

8483
template.close()
8584
context_entities = []

0 commit comments

Comments
 (0)