Completely refactors Karma (#17447)

* Refactors Karma

* I FELL VICTIM TO MY OWN CI

* Update code/modules/client/client_procs.dm

* Update SQL/updates/31-32.py

* Mochi tweaks

Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>

Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
This commit is contained in:
AffectedArc07
2022-03-08 21:14:05 +00:00
committed by GitHub
parent e19931c643
commit 95ce462b14
21 changed files with 545 additions and 368 deletions

View File

@@ -18,7 +18,7 @@ orderedSqlFiles = sorted(orderedSqlFiles)
for index in orderedSqlFiles:
# Yes I know half of the casts below this are probably not necassary, but python is very picky
# AND YES I KNOW THIS IS SNOWFLAKEY AS HELL, BUT IT MUST BE DONE FOR PROPER CI
if index in [16, 17]:
if index in [16, 17, 31]:
orderedSqlFiles[index] = str(index) + "-" + (str(int(index)+1)) + ".py"
else:
orderedSqlFiles[index] = str(index) + "-" + (str(int(index)+1)) + ".sql"
@@ -57,6 +57,8 @@ for file in orderedSqlFiles:
scriptLines.append("python3 SQL/updates/" + str(file) + " 127.0.0.1 root root paradise_gamedb feedback round\n")
elif file == "17-18.py":
scriptLines.append("python3 SQL/updates/" + str(file) + " 127.0.0.1 root root paradise_gamedb feedback feedback_2\n")
elif file == "31-32.py":
scriptLines.append("python3 SQL/updates/" + str(file) + " 127.0.0.1 root root paradise_gamedb\n")
else:
print("ERROR: CI failed due to invalid python file in SQL/updates")
exit(1)