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

Implement dynamic category lookups #5

Zarthus opened this Issue Jan 2, 2019 · 0 comments


None yet
1 participant
Copy link

Zarthus commented Jan 2, 2019

I currently hardcode the categories and offer the ApiBuilderSimple to work around it if need be.

The aim should be to have a more dynamic system in place that does not need manual updating.

/// TODO: Future solutions might include a dynamic category, although the
/// TODO: builder completely allows for custom integers.
#[derive(Copy, Clone, Deserialize, Debug)]
pub enum Category {
/// Do not filter for any category.
Any = 0,
GeneralKnowledge = 9,
EntertainmentBooks = 10,
EntertainmentFilm = 11,

@Zarthus Zarthus added the enhancement label Jan 2, 2019

@Zarthus Zarthus added this to the v1.1.0 milestone Jan 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment