commit 58aa6a5036f2dea67ecb5cfbae03565914b1f6ff parent a77e62590a759b5a6de1b93901cf87c7ffb19c53 Author: lash <dev@holbrook.no> Date: Sun, 22 Mar 2026 22:41:32 -0600 Implement attach in entry craft cli Diffstat:
| M | dummy/usawa/runnable/craft.py | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dummy/usawa/runnable/craft.py b/dummy/usawa/runnable/craft.py @@ -1,5 +1,6 @@ import argparse import logging +import uuid from whee.valkey import ValkeyStore @@ -203,14 +204,14 @@ else: for v in args.x: - k = uuid.UUID(k) + k = uuid.UUID(v) asset = Asset(ref=str(k)) - attach = self.store.get_asset_indexed(asset) + asset = ctx.store.get_asset_indexed(asset) entry.attach(asset) for v in args.z: k = bytes.fromhex(v) asset = Asset(digest=k) - attach = self.store.get_asset_indexed(asset) + asset = ctx.store.get_asset(asset) entry.attach(asset)