aboutsummaryrefslogtreecommitdiff
path: root/QSThingsPlugin/Parsers/QSThingsProjectsParser.m
diff options
context:
space:
mode:
Diffstat (limited to 'QSThingsPlugin/Parsers/QSThingsProjectsParser.m')
-rw-r--r--QSThingsPlugin/Parsers/QSThingsProjectsParser.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/QSThingsPlugin/Parsers/QSThingsProjectsParser.m b/QSThingsPlugin/Parsers/QSThingsProjectsParser.m
index 1a7956e..b59a420 100644
--- a/QSThingsPlugin/Parsers/QSThingsProjectsParser.m
+++ b/QSThingsPlugin/Parsers/QSThingsProjectsParser.m
@@ -1,6 +1,4 @@
-#import "Constants.h"
#import "QSThingsProjectsParser.h"
-#import "SQLHelper.h"
@implementation QSThingsProjectsParser
- (BOOL)validParserForPath:(NSString *)path {
@@ -26,15 +24,7 @@
NSMutableArray *objects = [NSMutableArray array];
[results enumerateObjectsUsingBlock:^(NSDictionary *dictionary, NSUInteger i, BOOL *stop) {
-
- QSObject *newObject = [QSObject
- makeObjectWithIdentifier:[dictionary objectForKey:@"uuid"]];
- [newObject setObject:dictionary forType:kProjectType];
- [newObject setName:[dictionary objectForKey:@"title"]];
- [newObject setDetails:[dictionary objectForKey:@"notes"]];
- [newObject setPrimaryType:kProjectType];
-
- [objects addObject:newObject];
+ [objects addObject:[ObjectHelper projectFromSQLResult:dictionary usingPath:path ]];
}];
return objects;