popravki bugov
parent
e91b2a8893
commit
1d1efdec1b
|
@ -65,7 +65,7 @@ def commit_link(link, user_id):
|
||||||
flash(f"{card.title} imported successfully")
|
flash(f"{card.title} imported successfully")
|
||||||
dbsession.close()
|
dbsession.close()
|
||||||
|
|
||||||
get_engine().disolve()
|
get_engine().dispose()
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@bp.route('/import_txt', methods = ('GET', 'POST'))
|
@bp.route('/import_txt', methods = ('GET', 'POST'))
|
||||||
|
|
|
@ -293,7 +293,7 @@ def sr_session():
|
||||||
card_type = show_card.card_type
|
card_type = show_card.card_type
|
||||||
print("card type: ", card_type)
|
print("card type: ", card_type)
|
||||||
|
|
||||||
if card_type == 'PDF':
|
if card_type == 'PDF' or card_type== None:
|
||||||
#these factors should be better packaged
|
#these factors should be better packaged
|
||||||
return render_template("deck.html", username=username, card=show_card, maybe_in=round(interval*maybe_factor), no_in=round(no_factor*interval))
|
return render_template("deck.html", username=username, card=show_card, maybe_in=round(interval*maybe_factor), no_in=round(no_factor*interval))
|
||||||
elif card_type == 'URL':
|
elif card_type == 'URL':
|
||||||
|
|
Loading…
Reference in New Issue