29thStPublishing / Dumpling2

0 stars 0 forks source link

Asset getFirstAssetFor returning same asset #37

Closed eelzon closed 9 years ago

eelzon commented 9 years ago

When I call [Asset getFirstAssetFor:@"" articleId:[article globalId] volumeId:@""], I'm getting the same asset returned regardless of the articleID. I thought it might be because issueID should be part of this line:

https://github.com/29thStPublishing/Dumpling2/blob/master/Dumpling2/Dumpling2/Models/Asset.swift#L529

But I changed the line and recompiled locally and it made no difference. Could this have to do with how images are stored locally for articles that are downloaded with ArticleHandler? They're currently all in the same Documents folder with no article-by-article organization.

lata-nga commented 9 years ago

There was an error in the predicate when retrieving assets for articles. The location of the assets does not affect the records returned