Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
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
rank
search_tips
Commits
e85a8c64
Commit
e85a8c64
authored
Jun 11, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d1c43d95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
cache.py
libs/cache.py
+2
-1
auto_tips.py
search/utils/auto_tips.py
+0
-5
No files found.
libs/cache.py
View file @
e85a8c64
...
...
@@ -4,4 +4,4 @@
import
redis
from
django.conf
import
settings
redis_client
=
redis
.
StrictRedis
.
from_url
(
settings
.
REDIS_URL
)
redis_client
=
redis
.
StrictRedis
.
from_url
(
settings
.
REDIS_URL
)
\ No newline at end of file
search/utils/auto_tips.py
View file @
e85a8c64
...
...
@@ -13,11 +13,6 @@ from libs.tools import point_distance
from
gm_rpcd.all
import
bind
from
trans2es.commons.words_utils
import
QueryWordAttr
,
get_tips_word_type
# lat经度
# lng纬度
def
get_suggest_tips
(
query
,
lat
,
lng
,
offset
=
0
,
size
=
50
):
try
:
# ios输入法在某些情况下会携带\\u2006
...
...
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