Add some temps prints for debugging
This commit is contained in:
parent
985565b348
commit
eb13a51303
3
main.go
3
main.go
|
@ -255,6 +255,9 @@ func getPaste(paste string, lang string) (string, string) {
|
|||
var expiry string
|
||||
err = db.QueryRow("select title, data, expiry from pastebin where id=?", param1).Scan(&title, &s, &expiry)
|
||||
check(err)
|
||||
fmt.Println(expiry)
|
||||
fmt.Println(time.Now().Format(time.RFC3339))
|
||||
fmt.Println(expiry > time.Now().Format(time.RFC3339))
|
||||
if expiry > time.Now().Format(time.RFC3339) {
|
||||
stmt, err := db.Prepare("delete from pastebin where id=?")
|
||||
check(err)
|
||||
|
|
Loading…
Reference in New Issue