use stats from arg
This commit is contained in:
parent
8439f3a56e
commit
c5e8c1bb31
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class Queue(object):
|
||||||
return (conn, c)
|
return (conn, c)
|
||||||
|
|
||||||
|
|
||||||
def push(self, data, plugin, misc=None):
|
def push(self, data, stats, plugin, misc=None):
|
||||||
if not HAS_SQL:
|
if not HAS_SQL:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
@ -56,7 +56,7 @@ class Queue(object):
|
||||||
'project': data.get('project'),
|
'project': data.get('project'),
|
||||||
'branch': data.get('branch'),
|
'branch': data.get('branch'),
|
||||||
'is_write': 1 if data.get('is_write') else 0,
|
'is_write': 1 if data.get('is_write') else 0,
|
||||||
'stats': data.get('stats'),
|
'stats': stats,
|
||||||
'misc': misc,
|
'misc': misc,
|
||||||
'plugin': plugin,
|
'plugin': plugin,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue