Browse Source

inverting practices exclusion method

practices
Simon Bowie 1 year ago
parent
commit
6620aae2d3
2 changed files with 9 additions and 15 deletions
  1. +8
    -14
      web/app/practice.py
  2. +1
    -1
      web/content/colophon.md

+ 8
- 14
web/app/practice.py View File

import os import os
import markdown import markdown
from sqlalchemy.sql import func from sqlalchemy.sql import func
from sqlalchemy import or_
from sqlalchemy import or_, not_


practice = Blueprint('practice', __name__) practice = Blueprint('practice', __name__)


practices_query = Resource.query.filter_by(type=resource_type) practices_query = Resource.query.filter_by(type=resource_type)


# temporarily removing incomplete practices from main list # 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 # finalise the query and add pagination
practices = practices_query.order_by(Resource.name).paginate(page=page, per_page=25) practices = practices_query.order_by(Resource.name).paginate(page=page, per_page=25)

+ 1
- 1
web/content/colophon.md View File



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. 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/). Copyright © 2023 [COPIM](https://copim.ac.uk/).

Loading…
Cancel
Save