From 8f7a459106e94ddb3ae1f7a7ec75b718e30be667 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Sun, 9 Feb 2014 11:25:03 -0800
Subject: [PATCH] added utility file to help with users who have lost their
 credentials

---
 extract-passwords-for-email.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 extract-passwords-for-email.py

diff --git a/extract-passwords-for-email.py b/extract-passwords-for-email.py
new file mode 100644
index 0000000..6bea406
--- /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())
-- 
GitLab