Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 1764:b8676efae0a0
hnko
author | KASHIWAGURA Aya<c115046@?.koeki-u.ac.jp> |
---|---|
date | Sat, 29 Jul 2017 21:33:03 +0900 |
parents | 05aebfc9476d |
children | 8834e4f8b41a |
files | event/oasis2017/idol/home.rb event/oasis2017/idol/idol.cgi |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/event/oasis2017/idol/home.rb Sat Jul 29 21:07:19 2017 +0900 +++ b/event/oasis2017/idol/home.rb Sat Jul 29 21:33:03 2017 +0900 @@ -130,7 +130,7 @@ qr = ARGV[0] -p id + point = nil if ARGV[0] == "A" #1つ目 point = "ID1" @@ -145,7 +145,7 @@ elsif ARGV[0] =="528856582528717535" #六つ目 point = "ID6" end -p point + if point db.execute("REPLACE INTO point VALUES(?, ?)", id, point) #db.execute("REPLACE INTO point VALUES(?)", id)
--- a/event/oasis2017/idol/idol.cgi Sat Jul 29 21:07:19 2017 +0900 +++ b/event/oasis2017/idol/idol.cgi Sat Jul 29 21:33:03 2017 +0900 @@ -3,7 +3,7 @@ require 'cgi' require 'json' require 'sqlite3' -dbfile = './db/data.sq3' +dbfile = '.././db/data.sq3' c = CGI.new({'accept_charset' => 'utf-8'}) #print "Content-type: application/json; charset=UTF-8\n\n"