Skip to content

Commit

Permalink
no longer use random refetch order
Browse files Browse the repository at this point in the history
  • Loading branch information
avoonix committed Aug 16, 2024
1 parent 522e97c commit 43c11fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzzle/src/database/queries/sticker_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Database {
) -> Result<Vec<String>, DatabaseError> {
Ok(sticker_set::table
.select(sticker_set::id)
.order_by(sql::<BigInt>("random()")) // TODO: change back to least recently
.order_by(sticker_set::last_fetched)
.limit(n)
.load(&mut self.pool.get()?)?)
}
Expand Down

0 comments on commit 43c11fd

Please sign in to comment.