Skip to content

Commit

Permalink
get etherpad id for and article
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitbonik committed Sep 10, 2018
1 parent 80c3718 commit d6b727f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion etherpad/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,9 @@ def create_session_group(request, group_id):
ether_user = str(ether_user.user_ether_id)
validUntil = int(time())+28800
result = epclient.createSession(ether_group, ether_user, validUntil)
return result['sessionID']
return result['sessionID']


def get_pad_id(article_id):
article = EtherArticle.objects.get(article=article_id)
return article.article_ether_id

0 comments on commit d6b727f

Please sign in to comment.