We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae59b88 commit 3bc12eaCopy full SHA for 3bc12ea
src/types/models/mod_entity.rs
@@ -242,6 +242,17 @@ impl Mod {
242
243
let gd = query.gd.map(|x| vec![x, GDVersionEnum::All]);
244
245
+ /*
246
+ * VERY IMPORTANT MESSAGE BELOW.
247
+ * This beautiful chunk of code below uses format!() to reuse the same joins / where clauses
248
+ * in 2 queries. This uses prepared statements, the parameters are bound in the queries at the end.
249
+ *
250
+ * DO NOT, I repeat, DO NOT enter any user input inside the format!().
251
+ * I will find you personally if you do so.
252
253
+ * - Flame
254
+ */
255
+
256
let joins_filters = r#"
257
INNER JOIN mod_versions mv ON m.id = mv.mod_id
258
INNER JOIN mod_version_statuses mvs ON mvs.mod_version_id = mv.id
0 commit comments