diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-12-01 15:31:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 15:31:10 +0100 |
| commit | 219af243a20899d0c8a677700c36e339d7cdcc74 (patch) | |
| tree | b7b98f65cf6cc8127f1d6a06e37419fe45222871 /searx/engines/base.py | |
| parent | a1e6bc4cee2690eb7f2103901ada9a50846a7419 (diff) | |
| parent | 8aa2a7556ad80d3d644287fc17832050f3a5a303 (diff) | |
Merge pull request #2318 from dalf/add-pylint
Add pylint
Diffstat (limited to 'searx/engines/base.py')
| -rwxr-xr-x | searx/engines/base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/base.py b/searx/engines/base.py index 0114f9798..3648d7ed0 100755 --- a/searx/engines/base.py +++ b/searx/engines/base.py @@ -80,10 +80,7 @@ def response(resp): date = datetime.now() # needed in case no dcdate is available for an item for item in entry: - if item.attrib["name"] == "dchdate": - harvestDate = item.text - - elif item.attrib["name"] == "dcdate": + if item.attrib["name"] == "dcdate": date = item.text elif item.attrib["name"] == "dctitle": |