Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added comment with (potential) fix for list creation.

  • Loading branch information...
commit bc55c9d4b52a7aee914deabc7153bd437acc2701 1 parent b20b729
@davorg authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 bin/create_lists
View
13 bin/create_lists
@@ -23,6 +23,17 @@ my $t = TwittElection::Twitter->new(
$t->authorise;
+# Here's how this should work.
+#
+# IF constit has a list id and that list exists
+# Delete all members
+# ELSE
+# Create new list
+# Update list name and list id
+# END
+#
+# Insert list members
+
foreach my $con ($con_rs->all) {
next unless $con->candidates->count;
say $con->name;
@@ -57,4 +68,4 @@ foreach my $con ($con_rs->all) {
});
sleep 2;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.