Changeset 106 in lab


Ignore:
Timestamp:
Jan 10, 2011 7:35:17 PM (9 years ago)
Author:
mitty
Message:
  • save status.yml only when new tweets were found
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Dev/twitter/twitterbot.pl

    r105 r106  
    144144} 
    145145 
    146 if ($tweets) { 
     146if (ref $tweets and keys %{$tweets}) { 
    147147    # save last status to yaml file 
    148148    DEBUG  or YAML::Tiny::DumpFile("$Bin/status.yml", $stat); 
Note: See TracChangeset for help on using the changeset viewer.