瀏覽代碼

Initial event reporting for the term dashboard works now

master
Peter J. Jones 2 年之前
父節點
當前提交
4724ee9c01
簽署人: Peter Jones <pjones@devalot.com> GPG 金鑰 ID: 9DAFAA8D01941E49
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      lib/Merkel/Operations/Term/Event.hs

+ 4
- 4
lib/Merkel/Operations/Term/Event.hs 查看文件

@@ -108,14 +108,14 @@ vmEventsAfter key cutoff =
, VirtualMachineConstructor
)

sql = "SELECT DISTINCT ON (vme_event) \
sql = "SELECT DISTINCT ON (vme_event, vme_machine) \
\ vme_machine, vme_time, vme_event, \
\ vm_name, vm_term, vm_assigned_student, vm_address, \
\ vm_available, 'vm_root_password#clear', 'vm_root_password#hashed', \
\ 'vm_student_password#clear', 'vm_student_password#hashed', vm_access_token \
\ vm_available, \"vm_root_password#clear\", \"vm_root_password#hashed\", \
\ \"vm_student_password#clear\", \"vm_student_password#hashed\", vm_access_token \
\ FROM virtual_machine_event_log, virtual_machine \
\ WHERE vme_machine = virtual_machine.id \
\ AND virtual_machine.vm_assigned_student IS NOT NULL \
\ AND virtual_machine.vm_term = ? \
\ AND vme_time >= ? \
\ ORDER BY vme_event, vme_time DESC"
\ ORDER BY vme_event, vme_machine, vme_time DESC"

Loading…
取消
儲存