@@ -308,12 +308,11 @@ def user_per_month( self, trans, **kwd ):
308308 trends = trends ,
309309 workflows = workflows ,
310310 message = message )
311-
311+
312312 @web .expose
313313 def per_workflow ( self , trans , ** kwd ):
314314 message = ''
315315
316- params = util .Params ( kwd )
317316 specs = sorter ( 'workflow_name' , kwd )
318317 sort_id = specs .sort_id
319318 order = specs .order
@@ -330,17 +329,16 @@ def per_workflow( self, trans, **kwd ):
330329 sa .func .count ( model .WorkflowInvocation .table .c .id ).label ( 'total_runs' ) ),
331330 from_obj = [ model .Workflow .table ,
332331 model .WorkflowInvocation .table ],
333- whereclause = sa .and_ ( model .WorkflowInvocation .table .c .workflow_id == model .Workflow .table .c .id ),
332+ whereclause = sa .and_ ( model .WorkflowInvocation .table .c .workflow_id == model .Workflow .table .c .id ),
334333 group_by = [ model .Workflow .table .c .id ],
335- order_by = [ _order ]
336- )
334+ order_by = [ _order ] )
337335
338336 all_runs_per_workflow = sa .select ( ( model .Workflow .table .c .id .label ( 'workflow_id' ),
339337 model .Workflow .table .c .name .label ( 'workflow_name' ),
340338 self .select_day ( model .WorkflowInvocation .table .c .create_time ).label ( 'date' ) ),
341339 from_obj = [ model .Workflow .table ,
342340 model .WorkflowInvocation .table ],
343- whereclause = sa .and_ ( model .WorkflowInvocation .table .c .workflow_id == model .Workflow .table .c .id ) )
341+ whereclause = sa .and_ ( model .WorkflowInvocation .table .c .workflow_id == model .Workflow .table .c .id ) )
344342
345343 currday = date .today ()
346344 trends = dict ()
0 commit comments