def _get_rereview_themes(reviewer):
 locks = ThemeLock.objects.select_related().no_cache().filter(reviewer=reviewer, theme__rereviewqueuetheme__isnull=False).exclude(theme__addon__status=amo.STATUS_REJECTED)
 (num, updated_locks) = _calc_num_themes_checkout(locks)
 if updated_locks:
  locks = updated_locks
 themes = RereviewQueueTheme.objects.no_cache().filter(theme__addon__isnull=False, theme__themelock=None).exclude(theme__addon__status=amo.STATUS_REJECTED)
 return (num, themes, locks)

def _get_rereview_themes ( reviewer ) : locks = ThemeLock . objects . select_related ( ) . no_cache ( ) . filter ( reviewer = reviewer , theme__rereviewqueuetheme__isnull = False ) . exclude ( theme__addon__status = amo . STATUS_REJECTED ) ( num , updated_locks ) = _calc_num_themes_checkout ( locks ) if updated_locks : locks = updated_locks themes = RereviewQueueTheme . objects . no_cache ( ) . filter ( theme__addon__isnull = False , theme__themelock = None ) . exclude ( theme__addon__status = amo . STATUS_REJECTED ) return ( num , themes , locks )
check out re-uploaded themes .