Skip to content
Snippets Groups Projects
Commit 8c0ebe4a authored by ale's avatar ale
Browse files

log progress

parent 810d9cb8
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import os
import optparse
import logging
import json
import sys
import time
from sqlalchemy import select
from djrandom import daemonize
......@@ -71,7 +72,12 @@ class DeDuper(object):
(MP3.sha1 == Fingerprint.sha1)
& (MP3.state == MP3.READY)
& (MP3.has_fingerprint == True))
count = 0
for row in self._engine.execute(q):
count += 1
if (count % 100) == 0:
sys.stderr.write('%d \r' % count)
sys.stderr.flush()
code = self._generate_code_json(row.echoprint_fp, row.sha1)
if not code:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment