Moves various things to the new DBCore (#21544)

```
- server: "Changed the synthsprites to use the new DBCore"
- server: "Changed the MalfAI to use the new DBCore"
- server: "Changed the Alien Whitelists to use the new DBCore"
- server: "Changed the Requests Console to use the new DBCore"
- server: "Changed the Contracts Uplink to use the new DBCore"
- server: "Changed the Admin Ranks to use the new DBCore"
- server: "Changed the Job Bans to use the new DBCore"
- server: "Changed the Tickets to use the new DBCore"
- server: "Changed the Create Command Report to use the new DBCore"
- server: "Changed the WebInterface interconnect to use the new DBCore"
- server: "Changed the CCIA Recorder to use the new DBCore"
- server: "Changed the IPCTags to use the new DBCore"
- server: "Changed the Main Menu Poll-Check to use the new DBCore"
- server: "Changed the Client-Procs to use the new DBCore"
```

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Arrow768
2026-04-13 22:45:29 +02:00
committed by GitHub
co-authored by Werner
parent 17721ddae4
commit 03f313a19d
33 changed files with 717 additions and 384 deletions
+9 -6
View File
@@ -244,8 +244,8 @@ Then check if it's true, if true return. This will stop the normal menu appearin
.["contracts_view"] = 1
query_details["status"] = "open"
var/DBQuery/index_query = GLOB.dbcon.NewQuery("SELECT count(*) as Total_Contracts FROM ss13_syndie_contracts WHERE deleted_at IS NULL AND status = :status:")
index_query.Execute(query_details)
var/datum/db_query/index_query = SSdbcore.NewQuery("SELECT count(*) as Total_Contracts FROM ss13_syndie_contracts WHERE deleted_at IS NULL AND status = :status", query_details)
index_query.Execute()
var/pages = 0
@@ -271,8 +271,8 @@ Then check if it's true, if true return. This will stop the normal menu appearin
query_details["offset"] = (.["contracts_current_page"] - 1) * 10
var/DBQuery/list_query = GLOB.dbcon.NewQuery("SELECT contract_id, contractee_name, title FROM ss13_syndie_contracts WHERE deleted_at IS NULL AND status = :status: LIMIT 10 OFFSET :offset:")
list_query.Execute(query_details)
var/datum/db_query/list_query = SSdbcore.NewQuery("SELECT contract_id, contractee_name, title FROM ss13_syndie_contracts WHERE deleted_at IS NULL AND status = :status LIMIT 10 OFFSET :offset",query_details)
list_query.Execute()
var/list/contracts = list()
while (list_query.NextRow())
@@ -283,6 +283,8 @@ Then check if it's true, if true return. This will stop the normal menu appearin
.["contracts"] = contracts
.["contracts_found"] = 1
qdel(list_query)
qdel(index_query)
if(tgui_menu == 31)
.["contracts_found"] = 0
@@ -299,8 +301,8 @@ Then check if it's true, if true return. This will stop the normal menu appearin
var/query_details[0]
query_details["contract_id"] = exploit_id
var/DBQuery/select_query = GLOB.dbcon.NewQuery("SELECT contract_id, contractee_name, status, title, description, reward_other FROM ss13_syndie_contracts WHERE contract_id = :contract_id:")
select_query.Execute(query_details)
var/datum/db_query/select_query = SSdbcore.NewQuery("SELECT contract_id, contractee_name, status, title, description, reward_other FROM ss13_syndie_contracts WHERE contract_id = :contract_id",query_details)
select_query.Execute()
if (select_query.NextRow())
.["contracts_found"] = 1
@@ -324,6 +326,7 @@ Then check if it's true, if true return. This will stop the normal menu appearin
contract["reward_other"] = select_query.item[6]
.["contract"] = contract
qdel(select_query)
// I placed this here because of how relevant it is.
// You place this in your uplinkable item to check if an uplink is active or not.