Make progress on related objects.

This commit is contained in:
Brent Simmons
2017-09-11 06:46:32 -07:00
parent 07a44f7af0
commit 5ee58458a2
11 changed files with 288 additions and 173 deletions

View File

@@ -1,28 +0,0 @@
//
// ParsedItem+Database.swift
// Database
//
// Created by Brent Simmons on 9/2/17.
// Copyright © 2017 Ranchero Software. All rights reserved.
//
import Foundation
import RSParser
import Data
extension ParsedItem {
func databaseIdentifierWithFeed(_ feed: Feed) -> String {
if let identifier = syncServiceID {
return identifier
}
// Must be, and is, the same calculation as in Article.init.
return databaseIDWithString("\(feed.feedID) \(uniqueID)")
}
}