summaryrefslogtreecommitdiff
path: root/Aktywator/Setting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/Setting.cs')
-rw-r--r--Aktywator/Setting.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Aktywator/Setting.cs b/Aktywator/Setting.cs
index 2cf1120..657c822 100644
--- a/Aktywator/Setting.cs
+++ b/Aktywator/Setting.cs
@@ -174,6 +174,19 @@ namespace Aktywator
}
}
+ public static void saveScoringType(Sql sql, int value, string section)
+ {
+ StringBuilder sb = new StringBuilder("UPDATE `Section` SET `ScoringType` = ");
+ sb.Append(value);
+ if (section != null)
+ {
+ sb.Append(" WHERE `ID` = ");
+ sb.Append(section);
+ }
+ sb.Append(";");
+ sql.query(sb.ToString());
+ }
+
public static void saveSectionGroups(Sql sql, bool value, int teamTableOffset = 0)
{
if (teamTableOffset == 0)