Skip to content

Commit

Permalink
small change due to tmobile page layout. Omitting messages now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithhub committed Oct 27, 2011
1 parent 2bfca20 commit f7010bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions poll_balance.pl
Expand Up @@ -44,7 +44,6 @@
or die "Couldn't execute statement: "; or die "Couldn't execute statement: ";


my $user_id; my $user_id;
$DB::single=2;
unless (($user_id) = $user_query_sth->fetchrow_array()) { unless (($user_id) = $user_query_sth->fetchrow_array()) {


$ins_user_sth->execute( $ins_user_sth->execute(
Expand All @@ -68,10 +67,10 @@


my $exp_time = Date::Parse::str2time($prepay_info->{expiration}); my $exp_time = Date::Parse::str2time($prepay_info->{expiration});


for my $key (qw(minutes, messages, balance)) { for my $key (qw(minutes balance)) {
exists $prepay_info->{$key} and exists $prepay_info->{$key} and
defined $prepay_info->{$key} defined $prepay_info->{$key}
or die "Missing data, can't update db: %s", $key; or die sprintf("Missing data, can't update db: %s", $key);
} }


$ins_usage_sth->execute( $ins_usage_sth->execute(
Expand Down
Binary file modified usage.db
Binary file not shown.

0 comments on commit f7010bd

Please sign in to comment.