소스 검색

[gazprom] Fix defun order

OLIVER 7 년 전
부모
커밋
1c644b1ae1
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      plugins/gazprom.lisp

+ 4 - 4
plugins/gazprom.lisp

@@ -68,10 +68,6 @@
   (%api "getOrder.php" `(("count" . ,count) ("offset" . ,offset))))
 
 ;; Formatting
-(defun get-chat-card (chat-id)
-  (with-chat-credentials (chat-id)
-    (^get-card-info)))
-
 (defvar *account-fuel* "expenses:Transport:Car:Gas")
 (defvar *account-other* "expenses:Food:Snacks")
 (defvar *account-asset* "liabilities:Tinkoff:Platinum")
@@ -159,6 +155,10 @@
      (prog1 (progn ,@body)
        (setf (gethash ,chat-id *sessions*) *session*))))
 
+(defun get-chat-card (chat-id)
+  (with-chat-credentials (chat-id)
+    (^get-card-info)))
+
 (defun get-chat-last-n-orders (chat-id &optional (count 10))
   (with-chat-credentials (chat-id)
     (^get-order :count count)))