Skip to content

Commit

Permalink
handle JUPYTERHUB_USER in task title
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBRoswell committed Nov 22, 2024
1 parent ef180f8 commit ea37ff6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vreapis/containerizer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ def post(self, request: Request):
title = source.partition('\n')[0].strip()
title = slugify(title) if title and title[0] == "#" else "Untitled"

if 'JUPYTERHUB_USER' in os.environ:
title += '-' + slugify(os.environ['JUPYTERHUB_USER'])
# if 'JUPYTERHUB_USER' in os.environ:
# title += '-' + slugify(os.environ['JUPYTERHUB_USER'])
if 'JUPYTERHUB_USER' in payload:
title += '-' + slugify(payload['JUPYTERHUB_USER'])

# If any of these change, we create a new cell in the catalog. This matches the cell properties saved in workflows.
# cell_identity_dict = {'title': title, 'params': extractor.params, 'inputs': extractor.ins, 'outputs': extractor.outs, }
Expand Down

0 comments on commit ea37ff6

Please sign in to comment.