Check-in [c80c675266]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:c80c6752665f91deef1ec8764969351ecf2ea53f
Date: 2009-11-01 09:19:48
User: dmitry
Comment:Remove logging.
Tags And Properties
Changes

Changes to TimelineGenerator.m

Old (3bcebc4b752cbaeb) New (a00cff8377cb079d)
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 #import <sqlite3.h> 2 #import <sqlite3.h>
3 3
4 NSMutableString *HTMLTimelineForDatabase(const char *database, int limit) 4 NSMutableString *HTMLTimelineForDatabase(const char *database, int limit)
5 { 5 {
65 hidden lines
71 @"SELECT bgcolor, type, datetime(mtime,'localtime') AS timestamp, " 71 @"SELECT bgcolor, type, datetime(mtime,'localtime') AS timestamp, "
72 "substr(uuid,0,10) AS uuid, comment, user FROM event " 72 "substr(uuid,0,10) AS uuid, comment, user FROM event "
73 "JOIN blob where blob.rid = event.objid " 73 "JOIN blob where blob.rid = event.objid "
74 "ORDER BY mtime DESC limit %d", limit] UTF8String]; 74 "ORDER BY mtime DESC limit %d", limit] UTF8String];
75 75
76 NSLog(@"%s", sql); <
77 rc = sqlite3_prepare_v2(db, sql, -1, &st, 0); 76 rc = sqlite3_prepare_v2(db, sql, -1, &st, 0);
78 77
79 BOOL isOdd = NO; 78 BOOL isOdd = NO;
80 while (sqlite3_step(st) == SQLITE_ROW) { 79 while (sqlite3_step(st) == SQLITE_ROW) {
81 // 0 - bgcolor 80 // 0 - bgcolor
26 hidden lines
108 if (value) 107 if (value)
109 [html appendFormat:@"<span class=user>%s</span>\n", value]; 108 [html appendFormat:@"<span class=user>%s</span>\n", value];
110 [html appendString:@"</div>\n\n"]; 109 [html appendString:@"</div>\n\n"];
111 isOdd = !isOdd; 110 isOdd = !isOdd;
112 } 111 }
113 <
114 //printf("%s", [html UTF8String]); <
115 112
116 sqlite3_finalize(st); 113 sqlite3_finalize(st);
117 114
118 out: 115 out:
119 sqlite3_close(db); 116 sqlite3_close(db);
120 return html; 117 return html;
121 } 118 }