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
94fd6acc
Commit
94fd6acc
authored
Jul 01, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dc7d3c9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
agile_tag_transfer.py
associate/utils/agile_tag_transfer.py
+4
-1
No files found.
associate/utils/agile_tag_transfer.py
View file @
94fd6acc
...
...
@@ -9,6 +9,7 @@ from libs.es import ESPerform
from
libs.cache
import
redis_client
import
json
import
base64
import
random
from
associate.models
import
agile_tag
from
associate.commons.commons
import
get_tips_suggest_list
from
django.conf
import
settings
...
...
@@ -29,7 +30,9 @@ class TagTransfer(object):
item_dict
[
"id"
]
=
getMd5Digest
(
str
(
name
))
item_dict
[
"ori_name"
]
=
name
item_dict
[
"is_online"
]
=
results
.
get
(
"is_online"
,
None
)
item_dict
[
"results_num"
]
=
QueryWordAttr
.
get_query_results_num
(
instance
.
agile_tag_id
)
# item_dict["results_num"] = QueryWordAttr.get_query_results_num(instance.agile_tag_id)
random_num
=
random
.
randint
(
3000
,
10000
)
item_dict
[
"results_num"
]
=
random_num
item_dict
[
"agile_tag_type"
]
=
instance
.
agile_tag_type
item_dict
[
"agile_tag_id"
]
=
instance
.
agile_tag_id
item_dict
[
"create_tag_type"
]
=
results
.
get
(
"create_tag_type"
,
None
)
...
...
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