changeset 2618:56cf10171f33

preopen
author ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp>
date Sat, 24 Oct 2015 11:14:17 +0900
parents 295f3a97ac24
children 78be1f94bac7
files opencampus2015/quest.rb
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/opencampus2015/quest.rb	Sat Oct 24 11:13:19 2015 +0900
+++ b/opencampus2015/quest.rb	Sat Oct 24 11:14:17 2015 +0900
@@ -26,11 +26,13 @@
 if chenge == 2
   db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no2=?,e2=?,t2=?,tm2=? where id = ?",no2,e2,t2,tm2,no1,e1,t1,tm1,id)
 calname = db.execute(newname,no2)[0][0]
+db.execute("update test set cal = ? where id = ?",calname,id)
 elsif chenge == 3
   db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no3=?,e3=?,t3=?,tm3=? where id = ?",no3,e3,t3,tm3,no1,e1,t1,tm1,id)
 calname = db.execute(newname,no3)[0][0]
+db.execute("update test set cal = ? where id = ?",calname,id)
 end
-db.execute("update test set cal = ? where id = ?",calname,id)
+
 
   
   cmps = c["cmps"]

yatex.org