mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
add random expression
This commit is contained in:
parent
be7c63e68a
commit
3f1d19ad18
1 changed files with 6 additions and 0 deletions
|
|
@ -87,6 +87,12 @@ foreach ($config->cli->document->crawl->skip->stripos->url as $condition)
|
|||
$condition
|
||||
)
|
||||
)
|
||||
)->expression(
|
||||
'random',
|
||||
'rand()'
|
||||
)->sort(
|
||||
'random',
|
||||
'asc'
|
||||
)->limit(
|
||||
isset($argv[1]) ? (int) $argv[1] : 10
|
||||
)->get() as $document)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue