def _rank_qr(self, choices):
from bernard.platforms.facebook import layers as fbl<EOL>try:<EOL><INDENT>qr = self.request.get_layer(fbl.QuickReply)<EOL>self.chosen = choices[qr.slug]<EOL>self.slug = qr.slug<EOL>if self.when is None or self.when == qr.slug:<EOL><INDENT>return <NUM_LIT:1.0><EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>
Look for the QuickReply layer's slug into available choices.