Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Commit

Permalink
fix: Refactor after rebasing
Browse files Browse the repository at this point in the history
Changed language to programmingLanguage in interpreter and associated
tests. Fixes to inconsistencies with property IDs.
  • Loading branch information
beneboy committed Sep 2, 2019
1 parent 3068d2c commit f21ad6c
Show file tree
Hide file tree
Showing 9 changed files with 317 additions and 190 deletions.
2 changes: 1 addition & 1 deletion py/stencila/schema/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def handle_item(self, item: typing.Any, compilation_result: DocumentCompilationR
self.traverse_list(item, compilation_result)
elif isinstance(item, Entity):
if isinstance(item, (CodeChunk, CodeExpression)):
if item.language == self.TARGET_LANGUAGE: # Only add Python code
if item.programmingLanguage == self.TARGET_LANGUAGE: # Only add Python code
self.handle_code(item, compilation_result)

elif isinstance(item, Parameter) and self.function_depth == 0:
Expand Down
Loading

0 comments on commit f21ad6c

Please sign in to comment.