summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/lib/Server/Reports/importscript.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/Server/Reports/importscript.py b/src/lib/Server/Reports/importscript.py
index 1781e2fac..b6a3c2599 100755
--- a/src/lib/Server/Reports/importscript.py
+++ b/src/lib/Server/Reports/importscript.py
@@ -133,12 +133,9 @@ def load_stats(cdata, sdata, vlevel, logger, quick=False, location=''):
try:
rr = None
- if not quick:
- try:
- rr = Reason.objects.filter(**kargs)[0]
- except IndexError:
- pass
- if not rr:
+ try:
+ rr = Reason.objects.filter(**kargs)[0]
+ except IndexError:
rr = Reason(**kargs)
rr.save()
if vlevel > 0: