From 7cf4134a7347e1412687eeaec2a6de97da23cc5f Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Wed, 19 Oct 2016 13:32:35 -0700 Subject: [PATCH] SQLAlchemy doesns't like is, requires == Oops. --- eos/db/saveddata/fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eos/db/saveddata/fit.py b/eos/db/saveddata/fit.py index 38256899c..bf7e336e1 100644 --- a/eos/db/saveddata/fit.py +++ b/eos/db/saveddata/fit.py @@ -98,7 +98,7 @@ mapper(Fit, fits_table, "_Fit__modules": relation( Module, collection_class=HandledModuleList, - primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected is False), + primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == False), order_by=modules_table.c.position, cascade='all, delete, delete-orphan'), "_Fit__projectedModules": relation( @@ -106,7 +106,7 @@ mapper(Fit, fits_table, collection_class=HandledProjectedModList, cascade='all, delete, delete-orphan', single_parent=True, - primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected is True)), + primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == True)), "owner": relation( User, backref="fits"),