#NEWLINE# @ staticmethod #NEWLINE# def getFilters( kwargs ) : #NEWLINE# #INDENT# filters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# filters [ 'sort' ] = kwargs . get ( 'sort' , 'endedAt,desc' ) . split ( ',' ) #NEWLINE# filters [ 'endedAt' ] = float ( kwargs . get ( 'endedAt' , ( time . time ( ) + 0.5 ) ) ) #NEWLINE# filters [ 'startedAt' ] = float ( kwargs . get ( 'startedAt' , ( time . time ( ) - ( ( 3600 * 24 ) * 7 ) ) ) ) #NEWLINE# filters [ 'elapsed' ] = kwargs . get ( 'elapsed' , None ) #NEWLINE# filters [ 'method' ] = kwargs . get ( 'method' , None ) #NEWLINE# filters [ 'name' ] = kwargs . get ( 'name' , None ) #NEWLINE# filters [ 'args' ] = json . dumps ( list ( kwargs . get ( 'args' , ( ) ) ) ) #NEWLINE# filters [ 'kwargs' ] = json . dumps ( kwargs . get ( 'kwargs' , ( ) ) ) #NEWLINE# filters [ 'sort' ] = kwargs . get ( 'sort' , 'endedAt,desc' ) . split ( ',' ) #NEWLINE# filters [ 'skip' ] = int ( kwargs . get ( 'skip' , 0 ) ) #NEWLINE# filters [ 'limit' ] = int ( kwargs . get ( 'limit' , 100 ) ) #NEWLINE# return kwargs