You've already forked AstralRinth
forked from didirus/AstralRinth
Optimizations (#676)
This commit is contained in:
@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
|
||||
const PROJECTS_NAMESPACE: &str = "projects";
|
||||
const PROJECTS_SLUGS_NAMESPACE: &str = "projects_slugs";
|
||||
const PROJECTS_DEPENDENCIES_NAMESPACE: &str = "projects_dependencies";
|
||||
const DEFAULT_EXPIRY: i64 = 3600; // 60 minutes
|
||||
const DEFAULT_EXPIRY: i64 = 1800; // 30 minutes
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct DonationUrl {
|
||||
@@ -524,7 +524,8 @@ impl Project {
|
||||
{
|
||||
remaining_strings.retain(|x| {
|
||||
&to_base62(project.inner.id.0 as u64) != x
|
||||
&& project.inner.slug.as_ref() != Some(x)
|
||||
&& project.inner.slug.as_ref().map(|x| x.to_lowercase())
|
||||
!= Some(x.to_lowercase())
|
||||
});
|
||||
found_projects.push(project);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user