diff options
| author | Jules <jules@asdf.us> | 2018-04-05 07:31:07 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2018-04-05 07:31:07 -0400 |
| commit | dc6a03508538d23591a3dd27839ebdd5ad47b209 (patch) | |
| tree | 09d17075e6663c090c19ea8b961ded2f81b1ac9d /lib/db/index.js | |
| parent | f886ab318b4bde2063c4319c49bf98b5146fa639 (diff) | |
Diffstat (limited to 'lib/db/index.js')
| -rw-r--r-- | lib/db/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/index.js b/lib/db/index.js index a9e29be..2a8c954 100644 --- a/lib/db/index.js +++ b/lib/db/index.js @@ -31,7 +31,7 @@ db.getRandom = function () { } db.getRandomAscii = function () { return ShaderImage.query(function(qb){ - qb.where("tag", "ascii").orderBy(knex.raw('RAND()')).limit(1) + qb.where("tag", "ascii").andWhere("name", "in", ["bamboo","mmi","thorns","orange","ghostdad","nicolashorch","anndunham","vase","a1","dmgk","kiny","humptydumpty","daytimetelevisio","shoelashe","Jarias","the_bar_at_panke","kiptok","eel","dmagik","oui","dvvidw","jules","flunker","dentistbro","mthw","kint","bleu_ivy"]).orderBy(knex.raw('RAND()')).limit(1) }).fetch() } db.getIndex = function(limit, offset) { |
