[damned-lies] Minor nitpick: simplify a code path
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Minor nitpick: simplify a code path
- Date: Fri, 12 Oct 2012 15:44:08 +0000 (UTC)
commit faa4a5c4447d9ca399fdf6ff10279a9b59149bdf
Author: Gil Forcada <gforcada gnome org>
Date: Fri Oct 12 17:33:48 2012 +0200
Minor nitpick: simplify a code path
stats/models.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index e3b29b1..a27a8aa 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1627,11 +1627,10 @@ class Statistics(models.Model):
# Import here to prevent a circular dependency
from vertimus.models import State, Action
+ scope = "full"
if dtype.endswith('-part'):
dtype = dtype[:-5]
scope = "part"
- else:
- scope = "full"
stats = {'dtype':dtype, 'totaltrans':0, 'totalfuzzy':0, 'totaluntrans':0,
'totaltransperc': 0, 'totalfuzzyperc': 0, 'totaluntransperc': 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]