Skip to content

Commit

Permalink
Fix calculation of schema location (#1239)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Sailer <[email protected]>
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
3 people authored Mar 21, 2023
1 parent e582e55 commit 60d7cca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1968,10 +1968,9 @@ def init_event_logger(self):
]
for schema_id in schema_ids:
# Get the schema path from the schema ID.
rel_schema_path = schema_id.lstrip(JUPYTER_SERVER_EVENTS_URI) + ".yaml"
rel_schema_path = schema_id.replace(JUPYTER_SERVER_EVENTS_URI + "/", "") + ".yaml"
schema_path = DEFAULT_EVENTS_SCHEMA_PATH / rel_schema_path
# Use this pathlib object to register the schema
# breakpoint()
self.event_logger.register_event_schema(schema_path)

def init_webapp(self):
Expand Down

0 comments on commit 60d7cca

Please sign in to comment.