changeset 462:9b4b1e4ce313

fetch_weather: When force_update is set, do not load the old data cache.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 18 Dec 2017 14:42:15 +0200
parents 721a56cd62e3
children fe478b7bd80e
files fetch_weather.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/fetch_weather.pl	Mon Dec 18 14:41:51 2017 +0200
+++ b/fetch_weather.pl	Mon Dec 18 14:42:15 2017 +0200
@@ -329,7 +329,7 @@
 ###
 ### Load already cached data
 ###
-if (opt_chk_valid("outfile", 1))
+if (opt_chk_valid("outfile", 1) && !opt_chk_bool("force_update"))
 {
   my $filename = opt_get("outfile");
   if (-e "$filename")