From 97c31c833022519504ddf0412e558ee9cf7db2dd Mon Sep 17 00:00:00 2001 From: Melissa Gymrek Date: Tue, 6 Aug 2024 14:32:36 -0700 Subject: [PATCH] changing syntax for gene id in transcript --- strAPI/repeats/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strAPI/repeats/models.py b/strAPI/repeats/models.py index b82e099..86b8165 100644 --- a/strAPI/repeats/models.py +++ b/strAPI/repeats/models.py @@ -39,7 +39,7 @@ class Transcript(SQLModel, table=True): end: int = Field(nullable=False) # one to many Gene -> Transcripts - gene_id = Field(Integer, foreign_key ="genes.id") + gene_id: int = Field(Integer, foreign_key ="genes.id") gene: "Gene" = Relationship(back_populates="transcripts")