|
@@ -6,7 +6,7 @@ from random import randint
|
|
|
import ujson
|
|
|
|
|
|
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()
|
|
|
db_engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI'])
|
|
|
plugin = sqlalchemy.Plugin(db_engine, keyword='db', )
|
|
@@ -73,7 +73,7 @@ def update_worlds(db):
|
|
|
num_queries = int(request.query.queries or '1')
|
|
|
if num_queries < 1:
|
|
|
num_queries = 1
|
|
|
- else if num_queries > 500:
|
|
|
+ elif num_queries > 500:
|
|
|
num_queries = 500
|
|
|
|
|
|
worlds = []
|