Procházet zdrojové kódy

removing unnecessary randomisation

joel
Simon Bowie před 1 rokem
rodič
revize
fff98119d5
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +1
    -1
      web/app/book.py
  2. +1
    -1
      web/app/practice.py
  3. +1
    -1
      web/app/tool.py

+ 1
- 1
web/app/book.py Zobrazit soubor

@@ -27,7 +27,7 @@ def get_books():
intro_text = markdown.markdown(intro_text)
view = request.args.get('view')
resource_type = 'book'
books_query = Resource.query.filter_by(type=resource_type).order_by(func.random())
books_query = Resource.query.filter_by(type=resource_type)
for key in request.args.keys():
if key != 'view':
if (key == 'practice' and request.args.get(key) != ''):

+ 1
- 1
web/app/practice.py Zobrazit soubor

@@ -27,7 +27,7 @@ def get_practices():
intro_text = f.read()
intro_text = markdown.markdown(intro_text)
view = request.args.get('view')
practices = Resource.query.filter_by(type='practice').order_by(func.random())
practices = Resource.query.filter_by(type='practice')
# temporarily removing incomplete practices from main list
practices = Resource.query.filter(
or_(

+ 1
- 1
web/app/tool.py Zobrazit soubor

@@ -27,7 +27,7 @@ def get_tools():
intro_text = markdown.markdown(intro_text)
view = request.args.get('view')
resource_type = 'tool'
tools_query = Resource.query.filter_by(type=resource_type).order_by(func.random())
tools_query = Resource.query.filter_by(type=resource_type)
for key in request.args.keys():
if key != 'view':
if (key == 'practice' and request.args.get(key) != ''):

Načítá se…
Zrušit
Uložit