Working with database
Posted: Thu Feb 23, 2012 7:02 am
Hi!
I want to write addon, which will be write each win into database with timestamp (one win - one row).
1. How can i disable included win count system?
2.
You write string "strftime("%s","now")" instead of result of this function:) Because of this:
I want to write addon, which will be write each win into database with timestamp (one win - one row).
1. How can i disable included win count system?
2.
["name"]=>
string(17) "Nickname"
["uniqueid"]=>
string(19) "STEAM_x:x:xxxxxxxxx"
["wins"]=>
string(1) "4"
["timestamp"]=>
string(20) "strftime("%s","now")"
You write string "strftime("%s","now")" instead of result of this function:) Because of this:
def insert_winner(name, uniqueid, wins, timestamp='strftime("%s","now")'):