Mercurial > hg > egg-tcls
changeset 58:0da3461eb871
quotedb: Retrieving total number of quotes in the table does not seem to be working, so commenting out the code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Sep 2011 22:14:27 +0300 |
parents | 4a39a8707fdf |
children | 415c47fcc518 |
files | quotedb.tcl |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/quotedb.tcl Thu Sep 08 21:53:55 2011 +0300 +++ b/quotedb.tcl Thu Sep 08 22:14:27 2011 +0300 @@ -172,14 +172,15 @@ } set quoteID [quotedb last_insert_rowid] - set numQuotes 0 -# set numQuotes [quotedb ] +# set numQuotes 0 +# set usql "SELECT count(*) AS numQuotes FROM $utable" +# if {![qdb_sql_exec $upublic $unick $uchan $usql]} { return 0 } ### Log some data qdb_log "Added $utable #$quoteID ($unick/$uhand@$uchan): $utext" ### Report success to user - qdb_msg $upublic $unick $uchan "tietokantaa sörkitty (#$quoteID / $numQuotes), kiitos." + qdb_msg $upublic $unick $uchan "tietokantaa $utable sörkitty (#$quoteID), kiitos." return 1 }