Skip to content

Commit

Permalink
Fix form_template
Browse files Browse the repository at this point in the history
  • Loading branch information
jieguangzhou committed Aug 21, 2024
1 parent f1c5b62 commit 3b7949a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix a minor bug in schedule_jobs
- Fix vector index cleanup
- Fix the condition of the CDC job.
- Fix form_template

## [0.3.0](https://github.com/superduper-io/superduper/compare/0.3.0...0.2.0]) (2024-Jun-21)

Expand Down
2 changes: 2 additions & 0 deletions superduper/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def from_template(
from superduper import Template

if template_name:
from superduper.base.datalayer import Datalayer

assert isinstance(db, Datalayer)
template: Template = db.load('template', template_name)
else:
Expand Down
1 change: 1 addition & 0 deletions superduper/components/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def form_template(self):
k: f'<value-{i}>' for i, k in enumerate(self.template_variables)
},
**{k: v for k, v in self.template.items() if k != 'identifier'},
'_template_name': self.identifier,
}


Expand Down

0 comments on commit 3b7949a

Please sign in to comment.