Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djrandom-py
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
djrandom-py
Commits
7227d04f
Commit
7227d04f
authored
13 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
provide some progress feedback on stdout
parent
95ee6a06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/djrandom/model/verify.py
+6
-2
6 additions, 2 deletions
server/djrandom/model/verify.py
with
6 additions
and
2 deletions
server/djrandom/model/verify.py
+
6
−
2
View file @
7227d04f
import
os
import
optparse
import
logging
import
sys
import
time
from
djrandom
import
daemonize
from
djrandom
import
utils
...
...
@@ -12,9 +13,12 @@ log = logging.getLogger(__name__)
def
fix_solr
():
print
'
rebuilding the SOLR index...
'
for
mp3
in
MP3
.
query
:
for
count
,
mp3
in
enumerate
(
MP3
.
query
)
:
indexer
.
add_mp3
(
mp3
)
print
'
commit...
'
if
count
%
100
==
0
:
sys
.
stdout
.
write
(
'
%d
\r
'
%
count
)
sys
.
stdout
.
flush
()
print
'
\n
commit...
'
indexer
.
commit
()
print
'
done.
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment