Separate change entries
This commit is contained in:
parent
0d3a8dbe6e
commit
bb3ed0e8c3
@ -270,7 +270,7 @@ final class CapServer: ServerOwner {
|
||||
df.dateFormat = "yy-MM-dd-HH-mm-ss"
|
||||
let dateString = df.string(from: Date())
|
||||
while let entry = entries.popLast() {
|
||||
let content = "\(dateString):\(entry.cap):\(entry.image)".data(using: .utf8)!
|
||||
let content = "\(dateString):\(entry.cap):\(entry.image)\n".data(using: .utf8)!
|
||||
try handle.write(contentsOf: content)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user