Memoize weather segment for 30 minutes

This commit is contained in:
Kim Silkebækken 2013-01-20 19:18:55 +01:00
parent a8846c0031
commit 0586bd059a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ def uptime(format='{days:02d}d {hours:02d}h {minutes:02d}m'):
pass pass
@memoize(600, persistent=True) @memoize(1800, persistent=True)
def weather(unit='c', location_query=None): def weather(unit='c', location_query=None):
import json import json
import urllib import urllib