diff --git a/extract-passwords-for-email.py b/extract-passwords-for-email.py new file mode 100644 index 0000000000000000000000000000000000000000..6bea4060b01dd03bcbb006a81589286b24709fd1 --- /dev/null +++ b/extract-passwords-for-email.py @@ -0,0 +1,17 @@ +# +# extract voter_id and passwords for a particular email address +# may return many rows, if they all have the same email address +# +# python extract-passwords-for-email.py <email_address> +# + +from django.core.management import setup_environ +import settings, sys + +setup_environ(settings) + +email = sys.argv[1] + +from helios.models import * +print email +print str(Election.objects.count())