forked from SunRed/discord-tweeter
chore: Remove debugging code and comments
This commit is contained in:
parent
eca46fcadd
commit
e35576fb3f
3 changed files with 2 additions and 53 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"github.com/jmoiron/sqlx"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
ts "github.com/n0madic/twitter-scraper"
|
||||
//"log"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
|
@ -118,7 +117,6 @@ func (db *Database) PruneOldestTweets(channel string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
//log.Println(count)
|
||||
|
||||
if count > KeepTweets {
|
||||
tx, err := db.Beginx()
|
||||
|
@ -134,7 +132,6 @@ func (db *Database) PruneOldestTweets(channel string) error {
|
|||
for rows.Next() {
|
||||
var i int
|
||||
err = rows.Scan(&i)
|
||||
//log.Println(i)
|
||||
if err != nil {
|
||||
tx.Rollback()
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue