From 17284c19eb5fee3b512c5afbffdca748569d630c Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 28 Aug 2023 21:25:16 -0400 Subject: [PATCH] Added League ID column and updated README --- README.md | 2 +- google-civic-api.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a1c1e98..30a3ddb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This may be freely redistributed under the terms of the GNU General Public Licen 1st argument can be one of these types: google (all members with senate/delegate district query) which prints out this csv data: - 'Name,Email,Phone,Address,Join Date,Delegate District,Senate District,' + 'Name,Email,Phone,Address,Delegate District,Senate District,League ID,Join Date' ALL (all members without senate/delegate district query) League ID: WV000 (members at large) WV102 (Huntington) WV103 (Morgantown-Monogalia) WV107 (Wood County) WV112 (Jefferson) diff --git a/google-civic-api.pl b/google-civic-api.pl index e9da8c5..bc7648e 100755 --- a/google-civic-api.pl +++ b/google-civic-api.pl @@ -62,7 +62,7 @@ open $fh, "<", $file; my $curl = WWW::Curl::Simple->new(); my $csv = - "Name,Email,Phone,Address,Join Date,Delegate District,Senate District,\n"; + "Name,Email,Phone,Address,Delegate District,Senate District,League ID,Join Date\n"; print $csv; $csv = ""; while ( my $line = <$fh> ) { @@ -190,6 +190,7 @@ while ( my $line = <$fh> ) { else { $csv .= ","; } + $csv .= "$leagueId,"; } }