New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagging system #22

fluffy-critter opened this Issue Apr 5, 2018 · 1 comment


None yet
1 participant

fluffy-critter commented Apr 5, 2018

It'd be helpful to be able to tag/filter posts (separately from Entry-Type); Entry-Type generally is used only for affecting layout/visibility, whereas tags are used for filtering with one or more attributes. (For example, in a comic, being able to tag entries based on characters or subject matters.)

An efficient strategy for implementing this would start with adding Tag and EntryTag columns to the database, where Tag provides the plaintext strings and EntryTag associates them with the entry. When an entry is scanned its EntryTag associations would be destroyed before the existing ones are added. Adding the appropriate joined expression to the view query is not something I want to think about right now.


This comment has been minimized.


fluffy-critter commented Apr 5, 2018

Well, okay, the query would probably be something like:

select = select.join(Tag)
if type(tag) == str:
    where = where & ( == tag)
    where = where & ( << tag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment