aboutsummaryrefslogtreecommitdiff
path: root/sx-question.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-16 00:40:26 -0500
committerSean Allred <code@seanallred.com>2015-01-16 00:41:20 -0500
commitb9eab6419e514fc6e1ce3096892bccd8a8ffb121 (patch)
treed3bc1d7a5d711a826a1edc6c8bc6656354bba4dc /sx-question.el
parent67f1cd1dc24560a21eef8186590020d26d9e55d7 (diff)
Use assq instead of assoc
Diffstat (limited to 'sx-question.el')
-rw-r--r--sx-question.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/sx-question.el b/sx-question.el
index 7c687e8..e199966 100644
--- a/sx-question.el
+++ b/sx-question.el
@@ -192,15 +192,15 @@ If no cache exists for it, initialize one with SITE."
(sx--create-comparator sx-answer-higher-score-p
"Return t if answer A has a higher score than answer B."
- #'> (lambda (x) (cdr (assoc 'score x))))
+ #'> (lambda (x) (cdr (assq 'score x))))
(sx--create-comparator sx-answer-older-p
"Return t if answer A was posted later than answer B."
- #'< (lambda (x) (cdr (assoc 'creation_date x))))
+ #'< (lambda (x) (cdr (assq 'creation_date x))))
(sx--create-comparator sx-answer-more-active-p
"Return t if answer A was updated after answer B."
- #'> (lambda (x) (cdr (assoc 'last_activity_date x))))
+ #'> (lambda (x) (cdr (assq 'last_activity_date x))))
(provide 'sx-question)
;;; sx-question.el ends here