api/v0: make Tags model random_id return the display
This commit is contained in:
parent
d44435ac73
commit
c1463b36ef
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ sub count ($self)
|
|||
sub random_id ($self)
|
||||
{
|
||||
my $row = $self->{_dbh}->selectrow_arrayref(q{
|
||||
SELECT id FROM tag ORDER BY random() LIMIT 1
|
||||
SELECT display FROM tag ORDER BY random() LIMIT 1
|
||||
});
|
||||
|
||||
return defined($row) ? $row->[0] : undef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue