Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
F
ffm-baseline
  • 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
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ML
  • ffm-baseline
  • Merge Requests
  • !48

Merged
Opened 5 years ago by 赵威@zhaowei 
  • Report abuse
Report abuse

update increment dict

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b offic origin/offic

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout master
git merge --no-ff offic

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Request to merge offic into master

Merged by 赵威 5 years ago

The changes were merged into master with 68e6fa3b

  • Discussion 0
  • Commits 1
  • Changes 1
  • 赵威 @zhaowei merged · 5 years ago

    merged

  • 赵威 @zhaowei mentioned in commit 68e6fa3b · 5 years ago

    mentioned in commit 68e6fa3b

Please register or sign in to reply
Hide whitespace changes
Showing
  • tag3_update_user_portrait_offline.py eda/smart_rank/tag3_update_user_portrait_offline.py +11 -1
  • No files found
with 11 additions and 1 deletion
+11 -1
eda/smart_rank/tag3_update_user_portrait_offline.py
Edit View file @ 2f5972f0
...
...
@@ -76,8 +76,18 @@ def update_tag3_user_portrait(cl_id):
redis_client.expire(key, 60 * 60 * 24 * 30)
# only need the first time
res2 = {
"first_demands": list(first_demands_score.keys()),
"second_demands": list(second_demands_score.keys()),
"first_solutions": list(first_solutions_score.keys()),
"second_solutions": list(second_solutions_score.keys()),
"first_positions": list(first_positions_score.keys()),
"second_positions": list(second_positions_score.keys()),
"projects": list(projects_score.keys())
}
key2 = "doris:user_portrait:tag3:increment_update:device_id:" + str(cl_id)
redis_client.set(key2, json.dumps(res))
redis_client.delete(key2)
redis_client.set(key2, json.dumps(res2))
redis_client.expire(key2, 60 * 60 * 24 * 30)
write_user_portrait(cl_id, ",".join(first_solutions_score.keys()), ",".join(second_solutions_score.keys()),
...
...
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • View project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: ML/ffm-baseline!48

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.