Skip to content

Commit

Permalink
Quick vreme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyLemon committed Dec 19, 2016
1 parent c675e3e commit 12a3416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vreme.coffee
Expand Up @@ -104,7 +104,7 @@ module.exports = (bot) ->
cached_time_geo = 356 * 24 * 60 * 60 #1 leto
url_geo = "http://maps.googleapis.com/maps/api/geocode/json?address=#{encodeURI(key)},%20slovenija&sensor=true"
bot.fetchJSONCached redis, cached_time_geo, url_geo, (res) ->
if res? # ne najde kraja
if res.status == "ZERO_RESULTS" # ne najde kraja
vreme key, (msg)->
cb "#{key}: #{msg}"
else #najde kraj
Expand Down

0 comments on commit 12a3416

Please sign in to comment.