Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/db/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ChangeLogOperationType(PyEnum):
class PGEnum(TypeDecorator):
impl = postgresql.ENUM

cache_ok = True

def process_bind_param(self, value: PyEnum, dialect):
# Convert Python Enum to its value before binding to the DB
if isinstance(value, PyEnum):
Expand Down
4 changes: 2 additions & 2 deletions src/db/models/instantiations/link/batch_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
):
__tablename__ = "link_batch_urls"

url = relationship('URL')
batch = relationship('Batch')
url = relationship('URL', overlaps="batch")
batch = relationship('Batch', overlaps="url")

Check warning on line 17 in src/db/models/instantiations/link/batch_url.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] src/db/models/instantiations/link/batch_url.py#L17 <292>

no newline at end of file
Raw output
./src/db/models/instantiations/link/batch_url.py:17:50: W292 no newline at end of file