mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-22 17:10:59 +00:00
Minor changes, updated README
This commit is contained in:
parent
094b650be5
commit
f6bd993b38
4 changed files with 55 additions and 5 deletions
|
@ -6,7 +6,7 @@ from flask_swagger_ui import get_swaggerui_blueprint
|
|||
from flask_limiter.util import get_remote_address
|
||||
|
||||
|
||||
def create_app(char_limit=-1, req_limit=-1, google_analytics=None, debug=False):
|
||||
def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
|
||||
boot()
|
||||
app = Flask(__name__)
|
||||
|
||||
|
@ -35,7 +35,7 @@ def create_app(char_limit=-1, req_limit=-1, google_analytics=None, debug=False):
|
|||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return render_template('index.html', gaId=google_analytics)
|
||||
return render_template('index.html', gaId=ga_id)
|
||||
|
||||
@app.route("/languages")
|
||||
def langs():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue