Skip to content

Commit

Permalink
searches in features starts with min 4 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 18, 2018
1 parent 3109399 commit ad11808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions swiss_locator/swiss_locator_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ def fetchResults(self, search: str, context: QgsLocatorContext, feedback: QgsFee
if len(search) < 2:
return

if len(search) < 4 and self.type is FilterType.Feature:
return

self.result_found = False

url = 'https://api3.geo.admin.ch/rest/services/api/SearchServer'
Expand Down
2 changes: 1 addition & 1 deletion swiss_locator/swiss_locator_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
***************************************************************************/
"""

DEBUG = True
DEBUG = False

import os
from PyQt5.QtCore import QCoreApplication, QLocale, QSettings, QTranslator
Expand Down

0 comments on commit ad11808

Please sign in to comment.