Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
testing sql query hold ( #77 )
Browse files Browse the repository at this point in the history
  • Loading branch information
MinIsMin committed Jul 7, 2018
1 parent 32f47e9 commit ad42369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/sv_stats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ hook.Add("PlayerDeath", "PlayerDeath_SpecDMStats", function(ply, inflictor, kill
end)

hook.Add("TTTEndRound", "TTTEndRound_SpecDMStats", function()
sql.Begin()
for _, v in pairs(player.GetHumans()) do
if v.specdm_stats_newupdates then
for column, update in pairs(v.specdm_stats_newupdates) do
Expand All @@ -167,6 +168,7 @@ hook.Add("TTTEndRound", "TTTEndRound_SpecDMStats", function()
end
end
end
sql.Commit()
end)

local general_sorted = {
Expand Down

0 comments on commit ad42369

Please sign in to comment.