Skip to content

Commit

Permalink
fix: books-and-reference not book-and-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sminez committed Jan 15, 2025
1 parent 4371ecd commit 38341f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion proto/ratings_features_chart.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum Timeframe {
// On 2024-02-03, it may need to be kept in sync.
enum Category {
ART_AND_DESIGN = 0;
BOOK_AND_REFERENCE = 1;
BOOKS_AND_REFERENCE = 1;
DEVELOPMENT = 2;
DEVICES_AND_IOT = 3;
EDUCATION = 4;
Expand Down
2 changes: 1 addition & 1 deletion src/db/categories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use sqlx::{PgConnection, Postgres, QueryBuilder};
#[strum(serialize_all = "kebab-case")]
pub enum Category {
ArtAndDesign = 0,
BookAndReference = 1,
BooksAndReference = 1,
Development = 2,
DevicesAndIot = 3,
Education = 4,
Expand Down
6 changes: 3 additions & 3 deletions src/proto/ratings.features.chart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Timeframe {
#[repr(i32)]
pub enum Category {
ArtAndDesign = 0,
BookAndReference = 1,
BooksAndReference = 1,
Development = 2,
DevicesAndIot = 3,
Education = 4,
Expand Down Expand Up @@ -91,7 +91,7 @@ impl Category {
pub fn as_str_name(&self) -> &'static str {
match self {
Category::ArtAndDesign => "ART_AND_DESIGN",
Category::BookAndReference => "BOOK_AND_REFERENCE",
Category::BooksAndReference => "BOOKS_AND_REFERENCE",
Category::Development => "DEVELOPMENT",
Category::DevicesAndIot => "DEVICES_AND_IOT",
Category::Education => "EDUCATION",
Expand All @@ -116,7 +116,7 @@ impl Category {
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ART_AND_DESIGN" => Some(Self::ArtAndDesign),
"BOOK_AND_REFERENCE" => Some(Self::BookAndReference),
"BOOKS_AND_REFERENCE" => Some(Self::BooksAndReference),
"DEVELOPMENT" => Some(Self::Development),
"DEVICES_AND_IOT" => Some(Self::DevicesAndIot),
"EDUCATION" => Some(Self::Education),
Expand Down

0 comments on commit 38341f9

Please sign in to comment.