Skip to content

Commit

Permalink
Removed CSV manifest file export for Notion profile (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Jan 1, 2024
1 parent 2d930bb commit 3b28efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,16 @@ extension NotionExportProfile {
payload: Payload,
noMedia: Bool
) throws {
try csvWriteManifest(
csvPath: payload.csvPayload.csvPath,
noMedia: noMedia,
preparedMarkers
)

try jsonWriteManifest(
jsonPath: payload.jsonPayload.jsonPath,
jsonPath: payload.jsonPath,
noMedia: noMedia,
preparedMarkers
)
}

public func resultFileContent(payload: Payload) throws -> ExportResult.ResultDictionary {
[
.csvManifestPath: .url(payload.csvPayload.csvPath),
.jsonManifestPath: .url(payload.jsonPayload.jsonPath)
.jsonManifestPath: .url(payload.jsonPath)
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Logging

public class NotionExportProfile: NSObject, ProgressReporting, ExportProfile {
// ExportProfile
public typealias Payload = CSVJSONExportPayload
public typealias Payload = JSONExportPayload
public typealias PreparedMarker = StandardExportMarker
public static let profile: ExportProfileFormat = .notion
public static let isMediaCapable: Bool = true
Expand Down

0 comments on commit 3b28efb

Please sign in to comment.