Commit 4a79b0ab authored by CEVAER's avatar CEVAER

Added SFMR relationship

parent 35984fcd
......@@ -87,6 +87,12 @@ class Acquisition(Base):
simpletrack = relationship("SimpleTrack", back_populates="acquisitions")
sfmr_track = relationship("Track", primaryjoin="and_(foreign(Acquisition.sid_SimpleTrack) == Track.sid,"
"Track.source.like('sfmr%'),"
"Acquisition.startdate >= Track.startdate,"
"Acquisition.startdate <= Track.stopdate)",
backref="sfmr_acq")
basins = relationship("Basin", secondary=basin_acquisition, back_populates="acquisitions")
basin_geom = relationship("Basin",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment