Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix scraping on postgres

Cette révision appartient à :
sfan5 2017-06-25 13:17:39 +02:00
Parent b59b5c092b
révision 1dd7c9d5d3

Voir le fichier

@ -205,7 +205,7 @@ func (sc *Scraper) Scrape(packets uint) {
"date > ? AND "+
"torrent_id NOT IN (SELECT torrent_id FROM %[2]s)"+
") ORDER BY torrent_id DESC LIMIT ?",
") AS x ORDER BY torrent_id DESC LIMIT ?",
config.Conf.Models.TorrentsTableName, config.Conf.Models.ScrapeTableName)
rows, err := db.ORM.Raw(query, oldest, now, oldest, packets*ScrapesPerPacket).Rows()