mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Tweak anonymous patron count SQL
This commit is contained in:
parent
64a8ccb082
commit
0907dacae1
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ $anonymousPatronCount = Db::QueryInt('SELECT sum(cnt)
|
||||||
UserId is null
|
UserId is null
|
||||||
and
|
and
|
||||||
(
|
(
|
||||||
(Amount >= 100 and Created >= utc_timestamp() - interval 1 year)
|
(Amount >= 100 and IsRecurring = false and Created >= utc_timestamp() - interval 1 year)
|
||||||
or
|
or
|
||||||
(Amount >= 10 and IsRecurring = true and Created >= utc_timestamp() - interval 30 day)
|
(Amount >= 10 and IsRecurring = true and Created >= utc_timestamp() - interval 30 day)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue