mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
End of an era - Moves SQL to rustlibs and bins rustg. (#30461)
* Probably my magnum opus tbqh * Knew I'd forget something * guh * Oh we lint for that now. Man I am outta touch. * oogabooga * Build Rust library * library pls * Build Rust library * balls to it * off me * DOES THIS WORK NOW? * if this works I am done * this is a fucking violation * hopium * Build Rust library * Build Rust library * Fixes a major panic * Build Rust library * Sort macros out while I am at it --------- Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent
ae4489cb2f
commit
e692356100
@@ -373,7 +373,7 @@
|
||||
if(!SSdbcore.IsConnected())
|
||||
return
|
||||
var/num_books = clamp(amount, 1, 50) //you don't need more than 50 random books <3
|
||||
var/list/sql_params = list("amount" = num_books )
|
||||
var/list/sql_params = list("amount" = num_books)
|
||||
var/sql = "SELECT id, author, title, content, summary, rating, primary_category, secondary_category, tertiary_category, ckey, reports FROM library GROUP BY title ORDER BY rand() LIMIT :amount"
|
||||
var/datum/db_query/query = SSdbcore.NewQuery(sql, sql_params)
|
||||
if(!query.warn_execute())
|
||||
|
||||
Reference in New Issue
Block a user