Skip to content

Commit

Permalink
Web site python3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Jan 17, 2020
1 parent c7e36d6 commit 78bd83d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rcdb_www/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SECRET_KEY = 'development key'
USERNAME = 'admin'
PASSWORD = 'default'
SQL_CONNECTION_STRING = "mysql+mysqlconnector://[email protected]/rcdb"
SQL_CONNECTION_STRING = "mysql+pymysql://[email protected]/rcdb"

app = Flask(__name__)
app.config.from_object(__name__)
Expand Down
2 changes: 1 addition & 1 deletion rcdb_www/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 78bd83d

Please sign in to comment.