Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
alpha
physical
Commits
cc8bb647
Commit
cc8bb647
authored
May 14, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改搜索
parent
039e2627
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
error.py
libs/error.py
+1
-1
topic.py
search/utils/topic.py
+6
-7
No files found.
libs/error.py
View file @
cc8bb647
...
@@ -18,4 +18,4 @@ def logging_exception(send_to_sentry=True):
...
@@ -18,4 +18,4 @@ def logging_exception(send_to_sentry=True):
# send exception info to sentry, fail silently
# send exception info to sentry, fail silently
_sentry_client
.
captureException
()
_sentry_client
.
captureException
()
except
:
except
:
pass
pass
raven
.
contrib
.
django
.
raven_compat
.
models
search/utils/topic.py
View file @
cc8bb647
...
@@ -977,7 +977,12 @@ class TopicUtils(object):
...
@@ -977,7 +977,12 @@ class TopicUtils(object):
"match"
:
{
k
:
v
}
"match"
:
{
k
:
v
}
})
})
if
k
in
[
"create_time_gte"
,
"create_time_lte"
]:
elif
k
==
"virtual_content_level"
:
f
.
append
({
"match"
:
{
k
:
v
}
})
elif
k
in
[
"create_time_gte"
,
"create_time_lte"
]:
if
k
==
"create_time_gte"
:
if
k
==
"create_time_gte"
:
op
=
"gte"
op
=
"gte"
...
@@ -992,12 +997,6 @@ class TopicUtils(object):
...
@@ -992,12 +997,6 @@ class TopicUtils(object):
}
}
})
})
elif
k
==
"virtual_content_level"
:
f
.
append
({
"match"
:
{
k
:
v
}
})
else
:
else
:
if
isinstance
(
v
,
list
):
if
isinstance
(
v
,
list
):
...
...
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