Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbilham committed Jun 19, 2024
1 parent ce523a0 commit 2214509
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
steps:
- run: echo ${{secrets.STACK_NAME_STAGING}} | sed 's/./& /g'
- run: echo ${{secrets.POSTGRES_PASSWORD}} | sed 's/./& /g'
- run: echo ${{secrets.DOMAIN_STAGING}} | sed 's/./& /g'
- name: Checkout
uses: actions/checkout@v4
- run: docker-compose -f docker-compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} build
Expand Down
8 changes: 4 additions & 4 deletions backend/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Source(SourceBase, table=True):
owner_id: int | None = Field(default=None, foreign_key="user.id", nullable=False)
owner: User | None = Relationship(back_populates="sources")
## referrals: list["Referral"] = Relationship(back_populates="source")
source_rates: list["Source_Rate"] = Relationship(back_populates="source")
## source_rates: list["Source_Rate"] = Relationship(back_populates="source")
created_datetime: datetime | None = Field(
default=None,
sa_type= sa.DateTime(timezone=True),
Expand Down Expand Up @@ -200,8 +200,8 @@ class Supplier(SupplierBase, table=True):
id: int | None = Field(default=None, primary_key=True)
owner_id: int | None = Field(default=None, foreign_key="user.id", nullable=False)
owner: User | None = Relationship(back_populates="suppliers")
referrals: list["Referral"] = Relationship(back_populates="supplier")
referral_allocations: list["Referral_Allocation"] = Relationship(back_populates="supplier")
## referrals: list["Referral"] = Relationship(back_populates="supplier")
## referral_allocations: list["Referral_Allocation"] = Relationship(back_populates="supplier")
name: str | None = None
address_1: str | None = None
address_town: str | None = None
Expand Down Expand Up @@ -568,7 +568,7 @@ class Referral(ReferralBase, table=True):
supplier_id: int | None = Field(default=None, foreign_key="supplier.id", nullable=True)
##supplier: Supplier | None = Relationship(back_populates="referrals")
type: str | None = None
referral_allocations: list["Referral_Allocation"] = Relationship(back_populates="referral")
##referral_allocations: list["Referral_Allocation"] = Relationship(back_populates="referral")



Expand Down

0 comments on commit 2214509

Please sign in to comment.