Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
baab6bcb
Commit
baab6bcb
authored
8 years ago
by
Adam Tauber
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #616 from stepshal/blank
Fix quantity of blank lines after code object.
parents
678b87f9
cd9b494c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
1 deletion
+9
-1
basic_engine.py
examples/basic_engine.py
+1
-0
filecrop.py
searx/engines/filecrop.py
+1
-0
preferences.py
searx/preferences.py
+2
-0
results.py
searx/results.py
+1
-0
utils.py
searx/utils.py
+1
-0
webapp.py
searx/webapp.py
+1
-0
test_preferences.py
tests/unit/test_preferences.py
+2
-0
fetch_currencies.py
utils/fetch_currencies.py
+0
-1
No files found.
examples/basic_engine.py
View file @
baab6bcb
categories
=
[
'general'
]
# optional
def
request
(
query
,
params
):
'''pre-request callback
params<dict>:
...
...
This diff is collapsed.
Click to expand it.
searx/engines/filecrop.py
View file @
baab6bcb
...
...
@@ -8,6 +8,7 @@ paging = True
class
FilecropResultParser
(
HTMLParser
):
def
__init__
(
self
):
HTMLParser
.
__init__
(
self
)
self
.
__start_processing
=
False
...
...
This diff is collapsed.
Click to expand it.
searx/preferences.py
View file @
baab6bcb
...
...
@@ -166,6 +166,7 @@ class SwitchableSetting(Setting):
class
EnginesSetting
(
SwitchableSetting
):
def
_post_init
(
self
):
super
(
EnginesSetting
,
self
)
.
_post_init
()
transformed_choices
=
[]
...
...
@@ -191,6 +192,7 @@ class EnginesSetting(SwitchableSetting):
class
PluginsSetting
(
SwitchableSetting
):
def
_post_init
(
self
):
super
(
PluginsSetting
,
self
)
.
_post_init
()
transformed_choices
=
[]
...
...
This diff is collapsed.
Click to expand it.
searx/results.py
View file @
baab6bcb
...
...
@@ -91,6 +91,7 @@ def result_score(result):
class
ResultContainer
(
object
):
"""docstring for ResultContainer"""
def
__init__
(
self
):
super
(
ResultContainer
,
self
)
.
__init__
()
self
.
results
=
defaultdict
(
list
)
...
...
This diff is collapsed.
Click to expand it.
searx/utils.py
View file @
baab6bcb
...
...
@@ -74,6 +74,7 @@ def highlight_content(content, query):
class
HTMLTextExtractor
(
HTMLParser
):
def
__init__
(
self
):
HTMLParser
.
__init__
(
self
)
self
.
result
=
[]
...
...
This diff is collapsed.
Click to expand it.
searx/webapp.py
View file @
baab6bcb
...
...
@@ -735,6 +735,7 @@ class ReverseProxyPathFix(object):
:param app: the WSGI application
'''
def
__init__
(
self
,
app
):
self
.
app
=
app
...
...
This diff is collapsed.
Click to expand it.
tests/unit/test_preferences.py
View file @
baab6bcb
...
...
@@ -4,6 +4,7 @@ from searx.testing import SearxTestCase
class
PluginStub
(
object
):
def
__init__
(
self
,
id
,
default_on
):
self
.
id
=
id
self
.
default_on
=
default_on
...
...
@@ -11,6 +12,7 @@ class PluginStub(object):
class
TestSettings
(
SearxTestCase
):
# map settings
def
test_map_setting_invalid_initialization
(
self
):
with
self
.
assertRaises
(
MissingArgumentException
):
setting
=
MapSetting
(
3
,
wrong_argument
=
{
'0'
:
0
})
...
...
This diff is collapsed.
Click to expand it.
utils/fetch_currencies.py
View file @
baab6bcb
...
...
@@ -37,7 +37,6 @@ def add_currency_name(name, iso4217):
db_names
=
db
[
'names'
]
if
not
isinstance
(
iso4217
,
basestring
):
print
"problem"
,
name
,
iso4217
return
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment