Kaynağa Gözat

inverting practices exclusion method

practices
Simon Bowie 1 yıl önce
ebeveyn
işleme
6620aae2d3
2 değiştirilmiş dosya ile 9 ekleme ve 15 silme
  1. +8
    -14
      web/app/practice.py
  2. +1
    -1
      web/content/colophon.md

+ 8
- 14
web/app/practice.py Dosyayı Görüntüle

@@ -15,7 +15,7 @@ from . import db
import os
import markdown
from sqlalchemy.sql import func
from sqlalchemy import or_
from sqlalchemy import or_, not_

practice = Blueprint('practice', __name__)

@@ -37,19 +37,13 @@ def get_practices():
practices_query = Resource.query.filter_by(type=resource_type)

# temporarily removing incomplete practices from main list
practices_query = Resource.query.filter(
or_(
Resource.id==53,
Resource.id==56,
Resource.id==57,
Resource.id==59,
Resource.id==61,
Resource.id==62,
Resource.id==63,
Resource.id==64,
Resource.id==65,
Resource.id==66
))
practices_query = practices_query.filter(
not_(or_(
Resource.id==52,
Resource.id==54,
Resource.id==55,
Resource.id==58
)))

# finalise the query and add pagination
practices = practices_query.order_by(Resource.name).paginate(page=page, per_page=25)

+ 1
- 1
web/content/colophon.md Dosyayı Görüntüle

@@ -6,7 +6,7 @@ Back-end coding by [Simon Bowie](https://simonxix.com), front-end coding by [Joe

Special thanks to Gary Hall, Rebekka Kiesewetter, Marcell Mars, Toby Steiner, and Samuel Moore, and everyone who has provided feedback on our research or shared suggestions of examples to feature, including the participants of COPIM’s experimental publishing workshop, and Nicolás Arata, Dominique Babini, Maria Fernanda Pampin, Sebastian Nordhoff, Abel Packer, and Armanda Ramalho, and Agatha Morka.

Our appreciation also goes out to the [Next Generation Library Publishing Project](https://educopia.org/next-generation-library-publishing/) for sharing an early catalogue-in-progress version of [SComCat](https://www.scomcat.net/) with us, which formed one of the inspirations behind the Compendium.
Our appreciation also goes out to the [Next Generation Library Publishing Project](https://educopia.org/next-generation-library-publishing/) for sharing an early catalogue-in-progress version of [SComCat](https://www.scomcat.net/) with us which formed one of the inspirations behind the Compendium.
___

Copyright © 2023 [COPIM](https://copim.ac.uk/).

Yükleniyor…
İptal
Kaydet