Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Issue #38 Fixed - 닉네임 추천 후 돌아갑니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
minhoryang committed Mar 1, 2016
1 parent cf42c42 commit 7d95978
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nickname.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def add_routes(app):
app.route('/api/nickname/delete/<idx>/', methods=["POST"])(DelMyNick)
app.route('/api/nickname/manage/<idx>/', methods=["POST"])(ManageRecommNick)


def RecommendNickname():
"""Issue #9, A라는 사용자가 B라는 사용자에게 nick이라는 별명을 추천하는 함수입니다.
하지만 정민교(크하하하하)가 로그인 되었는지 알려주는 함수를 만들었기 때문에!
Expand All @@ -48,7 +47,14 @@ def RecommendNickname():
new.username = target
db.session.add(new)
db.session.commit()
return '추천되었습니다!'
return """
<html>
<head>
<META http-equiv="refresh" content="1;URL=/%s/">
</head>
<body>추천되었습니다!</body>
</html>
""" % (request.form['target'],)


def ManageMyNicknames(link):
Expand Down

0 comments on commit 7d95978

Please sign in to comment.