def get_scene_absolute_numbering_for_show(indexer_id, indexer):
 if (indexer_id is None):
  return {}
 indexer_id = int(indexer_id)
 indexer = int(indexer)
 result = {}
 for dbData in [x[u'doc'] for x in sickrage.srCore.mainDB.db.get_many(u'scene_numbering', indexer_id, with_doc=True)]:
  absolute_number = int((dbData[u'absolute_number'] or 0))
  scene_absolute_number = int((dbData[u'scene_absolute_number'] or 0))
  if ((int(dbData[u'indexer']) != indexer) or (scene_absolute_number == 0)):
   continue
  result[absolute_number] = scene_absolute_number
 return result

def get_scene_absolute_numbering_for_show ( indexer_id , indexer ) : if ( indexer_id is None ) : return { } indexer_id = int ( indexer_id ) indexer = int ( indexer ) result = { } for dbData in [ x [ u'doc' ] for x in sickrage . srCore . mainDB . db . get_many ( u'scene_numbering' , indexer_id , with_doc = True ) ] : absolute_number = int ( ( dbData [ u'absolute_number' ] or 0 ) ) scene_absolute_number = int ( ( dbData [ u'scene_absolute_number' ] or 0 ) ) if ( ( int ( dbData [ u'indexer' ] ) != indexer ) or ( scene_absolute_number == 0 ) ) : continue result [ absolute_number ] = scene_absolute_number return result
returns a dict of : mappings for an entire show .