Commit 166ab535 authored by nanahira's avatar nanahira

remove lines of current date before starting

parent 3e9c29ed
Pipeline #241 failed with stages
in 4 minutes and 30 seconds
......@@ -75,6 +75,8 @@ export class Tx3Fetcher {
" `totalScore` int(11) UNSIGNED NOT NULL,\n" +
" PRIMARY KEY (`id`)\n" +
") ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci");
console.log(`Removing existing records of ${this.curDate}.`);
await this.db.query("delete from userdata where date = ?", this.curDate);
}
if(this.config.proxy.useProxy) {
await this.proxyFetcher.initProxies();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment