liquid_feedback_frontend
annotate model/scheduled_notification_to_send.lua @ 1557:09423cf96e9d
Fixed display of incoming voting weight
author | bsw |
---|---|
date | Mon Nov 09 18:00:14 2020 +0100 (2020-11-09) |
parents | 659e3eda2fad |
children |
rev | line source |
---|---|
bsw@1248 | 1 ScheduledNotificationToSend = mondelefant.new_class() |
bsw@1248 | 2 ScheduledNotificationToSend.table = 'scheduled_notification_to_send' |
bsw@1248 | 3 |
bsw@1248 | 4 function ScheduledNotificationToSend:get_next() |
bsw@1248 | 5 return self:new_selector() |
bsw@1248 | 6 :add_order_by("pending DESC") |
bsw@1252 | 7 :add_order_by("random()") |
bsw@1248 | 8 :limit(1) |
bsw@1248 | 9 :optional_object_mode() |
bsw@1248 | 10 :exec() |
bsw@1248 | 11 end |