diff --git a/create_es.sh b/create_es.sh index 5b0c564..44510f4 100755 --- a/create_es.sh +++ b/create_es.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# create indicies named "nyaa" and "sukebei", these are hardcoded +# create indices named "nyaa" and "sukebei", these are hardcoded curl -v -XPUT 'localhost:9200/nyaa?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml curl -v -XPUT 'localhost:9200/sukebei?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml diff --git a/nyaa/views/account.py b/nyaa/views/account.py index 2736147..ca6b5a4 100644 --- a/nyaa/views/account.py +++ b/nyaa/views/account.py @@ -164,7 +164,7 @@ def password_reset(payload=None): @bp.route('/profile', methods=['GET', 'POST']) def profile(): if not flask.g.user: - # so we dont get stuck in infinite loop when signing out + # so we don't get stuck in infinite loop when signing out return flask.redirect(flask.url_for('main.home')) form = forms.ProfileForm(flask.request.form) diff --git a/tests/__init__.py b/tests/__init__.py index 4663455..2d7f047 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -16,7 +16,7 @@ class NyaaTestCase(unittest.TestCase): app.config['TESTING'] = True cls.app_context = app.app_context() - # Use a seperate database for testing + # Use a separate database for testing # if USE_MYSQL: # cls.db_name = 'nyaav2_tests' # db_uri = 'mysql://root:@localhost/{}?charset=utf8mb4'.format(cls.db_name) @@ -24,7 +24,7 @@ class NyaaTestCase(unittest.TestCase): # cls.db_name = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'test.db') # db_uri = 'sqlite:///{}?check_same_thread=False'.format(cls.db_name) - # if not os.environ.get('TRAVIS'): # Travis doesn't need a seperate DB + # if not os.environ.get('TRAVIS'): # Travis doesn't need a separate DB # app.config['USE_MYSQL'] = USE_MYSQL # app.config['SQLALCHEMY_DATABASE_URI'] = db_uri