1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:19:59 +00:00

Correct spelling mistakes. (#495)

This commit is contained in:
Edward Betts 2018-05-28 12:54:54 +01:00 committed by Arylide
parent b999f8d39f
commit d407f09cab
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/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/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 curl -v -XPUT 'localhost:9200/sukebei?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml

View file

@ -164,7 +164,7 @@ def password_reset(payload=None):
@bp.route('/profile', methods=['GET', 'POST']) @bp.route('/profile', methods=['GET', 'POST'])
def profile(): def profile():
if not flask.g.user: 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')) return flask.redirect(flask.url_for('main.home'))
form = forms.ProfileForm(flask.request.form) form = forms.ProfileForm(flask.request.form)

View file

@ -16,7 +16,7 @@ class NyaaTestCase(unittest.TestCase):
app.config['TESTING'] = True app.config['TESTING'] = True
cls.app_context = app.app_context() cls.app_context = app.app_context()
# Use a seperate database for testing # Use a separate database for testing
# if USE_MYSQL: # if USE_MYSQL:
# cls.db_name = 'nyaav2_tests' # cls.db_name = 'nyaav2_tests'
# db_uri = 'mysql://root:@localhost/{}?charset=utf8mb4'.format(cls.db_name) # 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') # 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) # 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['USE_MYSQL'] = USE_MYSQL
# app.config['SQLALCHEMY_DATABASE_URI'] = db_uri # app.config['SQLALCHEMY_DATABASE_URI'] = db_uri