liquid_feedback_frontend
annotate model/snapshot.lua @ 1680:6f28933dbc36
Fixed layout, do not show secret when set via link
author | bsw |
---|---|
date | Mon Sep 20 09:21:21 2021 +0200 (2021-09-20) |
parents | c5c18a861b85 |
children |
rev | line source |
---|---|
bsw@1629 | 1 Snapshot = mondelefant.new_class() |
bsw@1629 | 2 Snapshot.table = 'snapshot' |
bsw@1629 | 3 Snapshot.primary_key = "id" |
bsw@1629 | 4 |
bsw@1629 | 5 function Snapshot:latest_by_issue_id(issue_id) |
bsw@1629 | 6 return self:new_selector() |
bsw@1629 | 7 :add_where{ "issue_id = ?", issue_id } |
bsw@1629 | 8 :add_order_by("id DESC") |
bsw@1629 | 9 :limit(1) |
bsw@1629 | 10 :optional_object_mode() |
bsw@1629 | 11 :exec() |
bsw@1629 | 12 end |