Skip to content

Instantly share code, notes, and snippets.

@ernestom
Created February 28, 2013 04:46
Show Gist options
  • Save ernestom/5054264 to your computer and use it in GitHub Desktop.
Save ernestom/5054264 to your computer and use it in GitHub Desktop.
# python -m enelcine.cms.manage shell
from enelcine.cms.models import Theater
vip_names = {1: 'VIP', 2: 'Premier', 7: 'Platino', 14: 'Premiere'}
vip_theaters = Theater.objects.filter(is_vip=1)
mislabeled_theaters = [t for t in vip_theaters if t.theater.find(vip_names[t.chain_id]) < 0]
for t in mislabeled_theaters:
print '%s\t%s' % (t.theater_id, t.url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment