summaryrefslogtreecommitdiff
path: root/src/gizmo/wasp-copfish.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-05-01 17:06:41 -0400
committerLLLL Colonq <llll@colonq>2025-05-01 17:06:41 -0400
commitfb01362a9dd816fc0d0e50052ab4764dd30e46f3 (patch)
treed581df21e161a0483d8b02ea4519debb4501a4a7 /src/gizmo/wasp-copfish.el
parentb21ecce6645fc17c520b722de3d96e550c77c490 (diff)
You know we love updating with a horrendous commit message
Diffstat (limited to 'src/gizmo/wasp-copfish.el')
-rw-r--r--src/gizmo/wasp-copfish.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gizmo/wasp-copfish.el b/src/gizmo/wasp-copfish.el
index 024c27dc..7afa3414 100644
--- a/src/gizmo/wasp-copfish.el
+++ b/src/gizmo/wasp-copfish.el
@@ -28,20 +28,20 @@
:parser #'buffer-string
:success
(cl-function
- (lambda (&key data &allow-other-keys)
- (setq w/copfish-last-response data)
- (funcall k data))))
+ (lambda (&key data &allow-other-keys)
+ (setq w/copfish-last-response data)
+ (funcall k data))))
t)
(defun w/copfish-get-fish (user k)
"Retrieve USER's fish ratio from copfish API.
Pass the resulting fraction to K."
(w/copfish-get
- (s-concat "fishdex/" user)
- (lambda (s)
- (let ((sp (s-split " " s)))
- (when (= (length sp) 2)
- (funcall k (cons (string-to-number (car sp)) (string-to-number (cadr sp)))))))))
+ (s-concat "fishdex/" user)
+ (lambda (s)
+ (let ((sp (s-split " " s)))
+ (when (= (length sp) 2)
+ (funcall k (cons (string-to-number (car sp)) (string-to-number (cadr sp)))))))))
(defvar w/copfish-user-cache nil)
(defun w/copfish-update-user (user)
@@ -49,12 +49,12 @@ Pass the resulting fraction to K."
(unless (-contains? w/copfish-user-cache user)
(add-to-list 'w/copfish-user-cache user)
(w/copfish-get-fish
- user
- (lambda (ct)
- (w/user-bind
- user
- (lambda ()
- (setf (alist-get :copfish-ratio w/user-current) ct)))))))
+ user
+ (lambda (ct)
+ (w/user-bind
+ user
+ (lambda ()
+ (setf (alist-get :copfish-ratio w/user-current) ct)))))))
(provide 'wasp-copfish)
;;; wasp-copfish.el ends here