Fix sog filters in HistoryForm
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 17 Apr 2011 10:48:53 +0000 (10:48 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 17 Apr 2011 10:48:53 +0000 (10:48 +0000)
bin/djais/views.py

index 7e0701f5fe646b2b08a6db99d69427e7366f55c5..2e9d993f7d7bf7c4c4e13bd6a613d8928fcec843 100644 (file)
@@ -252,11 +252,11 @@ class HistoryForm(forms.Form):
             command += u' --filter-area \'' + filter_area + u'\''
 
         filter_sog_le = data.get('filter_sog_le', None)
-        if filter_area:
+        if filter_sog_le:
             command += u' --filter_sog_le ' + unicode(filter_sog_le)
 
         filter_sog_ge = data.get('filter_sog_ge', None)
-        if filter_area:
+        if filter_sog_ge:
             command += u' --filter_sog_ge ' + unicode(filter_sog_ge)
 
         return command, extension