Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added comment with (potential) fix for list creation.
  • Loading branch information
Dave Cross committed Aug 18, 2014
1 parent b20b729 commit bc55c9d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/create_lists
Expand Up @@ -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;
Expand Down Expand Up @@ -57,4 +68,4 @@ foreach my $con ($con_rs->all) {
});
sleep 2;
}
}
}

0 comments on commit bc55c9d

Please sign in to comment.