#NEWLINE# def _GeneratePendingCounts( self ) : #NEWLINE# #INDENT# 'Generates a dictionary of all install names and their pending count.' #NEWLINE# d = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for munki_name in [ self . munki_name for p in models . PackageInfo . all ( ) ] : #NEWLINE# #INDENT# d [ munki_name ] = models . Computer . AllActive ( keys_only = True ) . filter ( 'pkgs_to_install =' , munki_name ) . count ( 999999 ) #NEWLINE# #UNINDENT# models . ReportsCache . SetPendingCounts ( d )