Skip to content

Commit

Permalink
comparing displayname of response with displayname of question texts
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetalKashid committed Jul 10, 2019
1 parent 77722c1 commit 897c31a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gnowsys-ndf/gnowsys_ndf/ndf/views/gcourse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4003,10 +4003,14 @@ def get_choice_text(choice_id, item,dispnm):
if c['id'] == choice_id ][0]
# print "choice_texts:",choice_texts

# each_ltxt=[each for each in choice_texts
# if each['languageTypeId']==dispnm]

each_ltxt=[each for each in choice_texts
if each['languageTypeId']==dispnm]
# print "each:",each_ltxt
return get_text_from_texts(choice_texts)
if each_ltxt:
return get_text_from_texts(each_ltxt)
else:
return get_text_from_texts(choice_texts)



Expand Down

0 comments on commit 897c31a

Please sign in to comment.