Skip to content

Commit

Permalink
fix: 태그를 초기화하지않고 추가만 하는 버그
Browse files Browse the repository at this point in the history
  • Loading branch information
shinkeonkim committed Sep 11, 2021
1 parent b8f4bc0 commit 7557477
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ def get_public_profile(cover_name):

public_profile.name = resume['name'] if 'name' in resume else ''
public_profile.email = resume['email'] if 'email' in resume else ''


public_profile.primary_tags.clear()
public_profile.secondary_tags.clear()

public_profile.primary_tags.add(*[tagDict['name'] for tagDict in resume['primaryTags']] if 'primaryTags' in resume else [])
public_profile.secondary_tags.add(*[tagDict['name'] for tagDict in resume['secondaryTags']] if 'secondaryTags' in resume else [])

Expand Down

0 comments on commit 7557477

Please sign in to comment.