Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1d6f827a
Commit
1d6f827a
authored
Nov 24, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
d5be6e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
weblate/trans/models/unit.py
weblate/trans/models/unit.py
+0
-14
No files found.
weblate/trans/models/unit.py
View file @
1d6f827a
...
...
@@ -153,20 +153,6 @@ class UnitManager(models.Manager):
"""
Cached counting of failing checks (and other stats).
"""
# Use precalculated data if we can
if
rqtype
==
'all'
:
return
translation
.
total
elif
rqtype
==
'fuzzy'
:
return
translation
.
fuzzy
elif
rqtype
==
'untranslated'
:
return
translation
.
total
-
translation
.
translated
elif
rqtype
==
'allchecks'
:
return
translation
.
failing_checks
elif
rqtype
==
'suggestions'
:
return
translation
.
have_suggestion
elif
rqtype
==
'comments'
:
return
translation
.
have_comment
# Try to get value from cache
cache_key
=
'counts-%s-%s-%s'
%
(
translation
.
subproject
.
get_full_slug
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment