diff --git a/rcdb_www/__init__.py b/rcdb_www/__init__.py index 7ebf771..8346a57 100644 --- a/rcdb_www/__init__.py +++ b/rcdb_www/__init__.py @@ -11,7 +11,7 @@ SECRET_KEY = 'development key' USERNAME = 'admin' PASSWORD = 'default' -SQL_CONNECTION_STRING = "mysql+mysqlconnector://rcdb@127.0.0.1/rcdb" +SQL_CONNECTION_STRING = "mysql+pymysql://rcdb@127.0.0.1/rcdb" app = Flask(__name__) app.config.from_object(__name__) diff --git a/rcdb_www/pagination.py b/rcdb_www/pagination.py index f6ed048..6878987 100644 --- a/rcdb_www/pagination.py +++ b/rcdb_www/pagination.py @@ -31,7 +31,7 @@ def item_limit_to(self): def iter_pages(self, left_edge=2, left_current=2, right_current=5, right_edge=2): last = 0 - for num in xrange(1, self.pages + 1): + for num in range(1, self.pages + 1): if num <= left_edge or \ (num > self.page - left_current - 1 and \ num < self.page + right_current) or \