Skip to content

Commit

Permalink
use job URL instead of the job ID, if it is available, in data exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aapis committed Feb 2, 2023
1 parent 6e890b5 commit 04230ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DLPrototype/Views/Today/LogTable/ToolbarButtons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ struct ToolbarButtons: View {

if ignoredJobs != nil {
if !ignoredJobs!.contains(record.job!.jid.string) {
pasteboardContents += "\(record.timestamp!) - \(record.job!.jid.string) - \(cleaned.message!)\n"
let url = record.job!.uri

if url != nil {
pasteboardContents += "\(record.timestamp!) - \(record.job!.uri!.absoluteString) - \(cleaned.message!)\n"
} else {
pasteboardContents += "\(record.timestamp!) - \(record.job!.jid.string) - \(cleaned.message!)\n"
}
}
}
}
Expand Down

0 comments on commit 04230ff

Please sign in to comment.