Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds serverTime and field on json export #262

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Modules/History/lootHistory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1647,6 +1647,7 @@ do
tinsert(export, string.format("\"%s\":\"%s\"", "note", QuotesEscape(d.note)))
tinsert(export, string.format("\"%s\":\"%s\"", "owner", tostring(d.owner or "Unknown")))
tinsert(export, string.format("\"%s\":\"%s\"", "itemName", ItemUtils:GetItemNameFromLink(d.lootWon)))
tinsert(export, string.format("\"%s\":%s", "serverTime", tostring(d.serverTime or 0)))

processedEntries = processedEntries + 1;

Expand Down
1 change: 1 addition & 0 deletions ml_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ function RCLootCouncilML:TrackAndLogLoot(winner, link, responseID, boss, reason,
history_table["id"] = time(date("!*t")).."-"..historyCounter -- New in v2.7+. A unique id for the history entry.
history_table["owner"] = owner or self.lootTable[session] and self.lootTable[session].owner or winner -- New in v2.9+.
history_table["typeCode"] = self.lootTable[session] and self.lootTable[session].typeCode -- New in v2.15+.
history_table["serverTime"] = GetServerTime()

historyCounter = historyCounter + 1

Expand Down