You've already forked AstralRinth
forked from didirus/AstralRinth
feat(search): Faceted search based on mod host (curse/modrinth) (#48)
This also adds a commandline argument library (gumdrop) for dealing with indices - reseting, reconfiguring, and skipping them. I don't know which library is best for this case, but gumdrop has shorter compile times and many fewer dependencies than clap, which is why I chose it.
This commit is contained in:
@@ -11,6 +11,7 @@ use actix_web::{post, HttpResponse};
|
||||
use futures::stream::StreamExt;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::postgres::PgPool;
|
||||
use std::borrow::Cow;
|
||||
use std::sync::Arc;
|
||||
use thiserror::Error;
|
||||
|
||||
@@ -416,7 +417,8 @@ async fn mod_create_inner(
|
||||
// TODO: store and return modified time
|
||||
date_modified: formatted,
|
||||
modified_timestamp: timestamp,
|
||||
empty: std::borrow::Cow::Borrowed("{}{}{}"),
|
||||
host: Cow::Borrowed("modrinth"),
|
||||
empty: Cow::Borrowed("{}{}{}"),
|
||||
};
|
||||
|
||||
indexing_queue.add(index_mod);
|
||||
|
||||
Reference in New Issue
Block a user