diff --git a/eos/db/saveddata/fit.py b/eos/db/saveddata/fit.py index 25516b7b6..16dd17f6a 100755 --- a/eos/db/saveddata/fit.py +++ b/eos/db/saveddata/fit.py @@ -65,5 +65,12 @@ mapper(Fit, fits_table, primaryjoin = projectedFits_table.c.victimID == fits_table.c.ID, secondaryjoin = fits_table.c.ID == projectedFits_table.c.sourceID, secondary = projectedFits_table, + collection_class = HandledProjectedFitList), + # projectedOnto is not currently used and probably won't be + # It simply makes data clean-up easier. See GH issue #90 + "_Fit__projectedOnto" : relation(Fit, + primaryjoin = fits_table.c.ID == projectedFits_table.c.sourceID, + secondaryjoin = fits_table.c.ID == projectedFits_table.c.victimID == fits_table.c.ID, + secondary = projectedFits_table, collection_class = HandledProjectedFitList) })