Memoize weather segment for 30 minutes
This commit is contained in:
parent
a8846c0031
commit
0586bd059a
|
@ -85,7 +85,7 @@ def uptime(format='{days:02d}d {hours:02d}h {minutes:02d}m'):
|
|||
pass
|
||||
|
||||
|
||||
@memoize(600, persistent=True)
|
||||
@memoize(1800, persistent=True)
|
||||
def weather(unit='c', location_query=None):
|
||||
import json
|
||||
import urllib
|
||||
|
|
Loading…
Reference in New Issue