浏览代码

massage query for recent proposal submissions, to get a list

George C. Privon 2 年之前
父节点
当前提交
420ba68290
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      update_proposals.rkt

+ 1 - 1
update_proposals.rkt

@@ -75,7 +75,7 @@
 
 ; get information from the most recent proposal submission
 (define (last-proposal-call conn)
-  (query-list conn "SELECT type, organization, solicitation, telescope FROM proposals ORDER BY id DESC LIMIT 1"))
+  (vector->list (query-row conn "SELECT type, organization, solicitation, telescope FROM proposals ORDER BY id DESC LIMIT 1")))
 
 ; add a new proposal to the database
 (define (addnew conn)