mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 09:36:08 +08:00
core: 计量尝试人数而非提交量
suggested by @Menci
This commit is contained in:
1 parent
e5d715d02b
commit
e49ffa9f7b
17 files changed
+102
-138
No files matched your search
@@ -21,7 +21,7 @@ export async function udoc(report) {
|
||||
{
|
||||
$group: {
|
||||
_id: { domainId: '$_id.domainId', uid: '$_id.uid' },
|
||||
nSubmit: { $sum: '$nSubmit' },
|
||||
nSubmit: { $sum: { $min: ['$nSubmit', 1] } },
|
||||
nAccept: { $sum: { $min: ['$nAccept', 1] } },
|
||||
},
|
||||
},
|
||||
@@ -68,7 +68,7 @@ export async function psdoc(report) {
|
||||
export async function pdoc(report) {
|
||||
report({ message: 'Pdoc' });
|
||||
const pipeline = [
|
||||
{ $match: { hidden: false, type: { $ne: 'run' }, effective: true } },
|
||||
{ $match: { hidden: false, type: { $ne: 'run' } } },
|
||||
{
|
||||
$group: {
|
||||
_id: { domainId: '$domainId', pid: '$pid', uid: '$uid' },
|
||||
|
||||
Reference in new issue
Block a user