Browse Source

[fix] remove unused imports ++ int token timestamp by default

Adam Tauber 8 years ago
parent
commit
104cdb7d03
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      searx/engines/wolframalpha_noapi.py

+ 1
- 3
searx/engines/wolframalpha_noapi.py View File

8
 # @stable      no
8
 # @stable      no
9
 # @parse       url, infobox
9
 # @parse       url, infobox
10
 
10
 
11
-from cgi import escape
12
 from json import loads
11
 from json import loads
13
 from time import time
12
 from time import time
14
 from urllib import urlencode
13
 from urllib import urlencode
15
-from lxml.etree import XML
16
 
14
 
17
 from searx.poolrequests import get as http_get
15
 from searx.poolrequests import get as http_get
18
 
16
 
36
 referer_url = url + 'input/?{query}'
34
 referer_url = url + 'input/?{query}'
37
 
35
 
38
 token = {'value': '',
36
 token = {'value': '',
39
-         'last_updated': None}
37
+         'last_updated': 0}
40
 
38
 
41
 # pods to display as image in infobox
39
 # pods to display as image in infobox
42
 # this pods do return a plaintext, but they look better and are more useful as images
40
 # this pods do return a plaintext, but they look better and are more useful as images