Explorar el Código

add PI name to printed list

George C. Privon hace 6 años
padre
commit
ed55200c3b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      update_proposals.rkt

+ 3 - 1
update_proposals.rkt

@@ -46,6 +46,8 @@
                  (vector-ref entry 1)
                  "("
                  (vector-ref entry 2)
+                 "; PI: "
+                 (vector-ref entry 4)
                  ") \""
                  (vector-ref entry 3)
                  "\"\n")))
@@ -96,7 +98,7 @@
 ; retrieve and print the proposals whose status is still listed as "submitted"
 (define (printopen)
    ; retrieve all proposals wh
-  (define unfinished (query-rows conn "SELECT ID,telescope,solicitation,title FROM proposals WHERE status='submitted'"))
+  (define unfinished (query-rows conn "SELECT ID,telescope,solicitation,title,PI FROM proposals WHERE status='submitted'"))
   (write-string (string-append (make-string (length unfinished)) " pending proposals found:\n"))
   ; print all the unresolved proposals to the screen
   (map printentry unfinished))