liquid_feedback_frontend
view model/snapshot.lua @ 1699:c2d51e2158f6
Do not show link to unit in single unit mode
| author | bsw | 
|---|---|
| date | Thu Sep 23 18:16:06 2021 +0200 (2021-09-23) | 
| parents | c5c18a861b85 | 
| children | 
 line source
     1 Snapshot = mondelefant.new_class()
     2 Snapshot.table = 'snapshot'
     3 Snapshot.primary_key = "id"
     5 function Snapshot:latest_by_issue_id(issue_id)
     6   return self:new_selector()
     7     :add_where{ "issue_id = ?", issue_id }
     8     :add_order_by("id DESC")
     9     :limit(1)
    10     :optional_object_mode()
    11     :exec()
    12 end
