Sfoglia il codice sorgente

[gazprom] Fix defun order

OLIVER 7 anni fa
parent
commit
1c644b1ae1
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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)))