Skip to content

Commit

Permalink
Ensure conda_package_build entries get the correct package and channe…
Browse files Browse the repository at this point in the history
…l ref
  • Loading branch information
soapy1 committed Nov 7, 2024
1 parent 7a83317 commit 49af00b
Show file tree
Hide file tree
Showing 2 changed files with 438 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda-store-server/conda_store_server/_internal/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ def update_packages(self, db, subdirs=None):
and_(
CondaPackage.name == p_name,
CondaPackage.version == p_version,
CondaPackage.channel_id == self.id,
)
)
all_parent_packages = (
Expand Down Expand Up @@ -720,7 +721,7 @@ class CondaPackage(Base):
description = Column(Text, nullable=True)

def __repr__(self):
return f"<CondaPackage (channel={self.channel} name={self.name} version={self.version})>"
return f"<CondaPackage (channel={self.channel_id} name={self.name} version={self.version})>"


class CondaPackageBuild(Base):
Expand Down
Loading

0 comments on commit 49af00b

Please sign in to comment.