Update name memorize_know to memorize_known
This commit is contained in:
@@ -193,10 +193,10 @@ def memorize(card_type, card_id=None):
|
||||
card_type=card_type,
|
||||
short_answer=short_answer, tags=tags)
|
||||
|
||||
@app.route('/memorize_know')
|
||||
@app.route('/memorize_know/<card_id>')
|
||||
@app.route('/memorize_know/<card_type>')
|
||||
def memorize_know(card_type, card_id=None):
|
||||
@app.route('/memorize_known')
|
||||
@app.route('/memorize_known/<card_id>')
|
||||
@app.route('/memorize_known/<card_type>')
|
||||
def memorize_known(card_type, card_id=None):
|
||||
tag = getTag(card_type)
|
||||
if tag is None:
|
||||
return redirect(url_for('cards'))
|
||||
@@ -211,7 +211,7 @@ def memorize_know(card_type, card_id=None):
|
||||
short_answer = (len(card['back']) < 75)
|
||||
tags = getAllTag()
|
||||
card_type = int(card_type)
|
||||
return render_template('memorize_know.html',
|
||||
return render_template('memorize_known.html',
|
||||
card=card,
|
||||
card_type=card_type,
|
||||
short_answer=short_answer, tags=tags)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<li><a href="{{ url_for('list_db') }}">list database</a></li>
|
||||
<li><a href="{{ url_for('create_db') }}">create database</a></li>
|
||||
<li><a href="{{ url_for('memorize', card_type='1') }}">memorize</a></li>
|
||||
<li><a href="{{ url_for('memorize_know', card_type='1') }}">memorize known items</a></li>
|
||||
<li><a href="{{ url_for('memorize_known', card_type='1') }}">memorize known items</a></li>
|
||||
<li> </li>
|
||||
<li><a href="{{ url_for('logout') }}">log out</a></li>
|
||||
{% endif %}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="col-xs-12 text-center">
|
||||
<div class="btn-group btn-group-lg" role="group" aria-label="card type">
|
||||
{% for tag in tags %}
|
||||
<a href="{{ url_for('memorize_know', card_type=tag.id) }}" class="btn btn-{{ "primary" if card_type == tag.id else "default" }}">{{tag.tagName}}</a>
|
||||
<a href="{{ url_for('memorize_known', card_type=tag.id) }}" class="btn btn-{{ "primary" if card_type == tag.id else "default" }}">{{tag.tagName}}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a href="{{ url_for('memorize_know', card_type=card_type) }}" class="btn btn-primary btn-lg">
|
||||
<a href="{{ url_for('memorize_known', card_type=card_type) }}" class="btn btn-primary btn-lg">
|
||||
Next Card
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user