SAGUARO-MMA / saguaro_tom

A Target and Observation Manager for SAGUARO
0 stars 0 forks source link

consolidate target vetting into hooks.py #44

Closed griffin-h closed 1 year ago

griffin-h commented 1 year ago

Right now we have the target vetting happening in two places: in the target_post_save hook (runs when a target is created) and in the TargetVettingView (runs when the Vet button is pushed). These should be essentially the same, but they keep getting out of sync. I moved all the code to hooks.py and called the target_post_save hook in the TargetVettingView.

This also fixes #42.