Skip to content

Commit

Permalink
Contact person data as string (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Sep 2, 2019
1 parent d792f77 commit 89992bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/basic_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ pages:
y: Initial reservoir pressure (bar)
size: Average permeability (D)
facet_col: Segment
contact_person:
name: Kari Nordmann
phone: 12345678
email: [email protected]
2 changes: 1 addition & 1 deletion webviz_config/containers/_container_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def container_layout(self, app, contact_person=None):
else:
# Sanitize the configuration user input
for key in contact_person:
contact_person[key] = bleach.clean(contact_person[key])
contact_person[key] = bleach.clean(str(contact_person[key]))

if 'download_zip' in buttons and \
not hasattr(self, '_add_download_button'):
Expand Down

0 comments on commit 89992bb

Please sign in to comment.