Browse Source

Fixed else if error

Patrick Falls 12 years ago
parent
commit
50b736905c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bottle/app.py

+ 2 - 2
bottle/app.py

@@ -6,7 +6,7 @@ from random import randint
 import ujson
 import ujson
 
 
 app = Bottle()
 app = Bottle()
-app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://benchmarkdbuser:benchmarkdbpass@DBHOSTNAME:3306/hello_world'
+app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://benchmarkdbuser:benchmarkdbpass@localhost:3306/hello_world'
 Base = declarative_base()
 Base = declarative_base()
 db_engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
 db_engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
 plugin = sqlalchemy.Plugin(db_engine, keyword='db', )
 plugin = sqlalchemy.Plugin(db_engine, keyword='db', )
@@ -73,7 +73,7 @@ def update_worlds(db):
   num_queries = int(request.query.queries or '1')
   num_queries = int(request.query.queries or '1')
   if num_queries < 1:
   if num_queries < 1:
     num_queries = 1
     num_queries = 1
-  else if num_queries > 500:
+  elif num_queries > 500:
     num_queries = 500
     num_queries = 500
 
 
   worlds = []
   worlds = []