Skip to content

Commit

Permalink
house keeping
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Aug 30, 2019
1 parent 1166511 commit f187fbb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions isogeo.py
Expand Up @@ -37,15 +37,13 @@
from functools import partial

# PyQT
from qgis.PyQt.QtCore import QByteArray, QCoreApplication, QSettings, Qt, QTranslator, QUrl, qVersion, QSize, pyqtSlot
from qgis.PyQt.QtCore import QByteArray, QCoreApplication, QSettings, Qt, QTranslator, qVersion, QSize, pyqtSlot
from qgis.PyQt.QtWidgets import QAction, QComboBox, QProgressBar
from qgis.PyQt.QtGui import QIcon, QStandardItemModel, QStandardItem
from qgis.PyQt.QtNetwork import QNetworkRequest
from qgis.PyQt.QtGui import QIcon

# PyQGIS
from qgis.utils import iface, plugin_times
from qgis.core import (QgsCoordinateReferenceSystem, QgsCoordinateTransform, QgsDataSourceUri, QgsMessageLog, QgsPointXY, QgsRectangle, QgsRasterLayer, QgsVectorLayer, QgsProject,
QgsApplication)
from qgis.core import (QgsCoordinateReferenceSystem, QgsMessageLog, QgsRectangle, QgsVectorLayer, QgsApplication)
try:
from qgis.core import Qgis
except ImportError:
Expand Down Expand Up @@ -426,10 +424,8 @@ def search(self, show: bool = False, page_change: int = 0):
# Info for _offset parameter
if page_change != 0:
if page_change < 0 and self.page_index > 1:
logger.debug("previous_page function called.")
self.page_index -= 1
elif page_change > 0 and self.page_index < plg_tools.results_pages_counter(total=self.results_count):
logger.debug("next_page function called.")
self.page_index += 1
else:
return False
Expand Down

0 comments on commit f187fbb

Please sign in to comment.