File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ struct Post {
7
7
id int
8
8
title string
9
9
text string
10
- url string @[skip]
10
+ url string @[skip]
11
11
nr_comments int
12
12
time time.Time @[orm: skip]
13
13
last_reply time.Time
@@ -40,7 +40,7 @@ order by last_reply desc')!
40
40
return [
41
41
Post{
42
42
title: 'Hello world!'
43
- text: 'Hello world from Vorum ;)'
43
+ text: 'Hello world from Vorum ;)'
44
44
},
45
45
]
46
46
}
@@ -52,12 +52,12 @@ order by last_reply desc')!
52
52
ts := row.vals[3 ]
53
53
is_locked := row.vals[5 ]
54
54
posts << Post{
55
- id: id or { '' }.int ()
56
- url: '/post/${id} '
57
- title: title or { '' }
55
+ id: id or { '' }.int ()
56
+ url: '/post/${id} '
57
+ title: title or { '' }
58
58
nr_comments: nr_comments or { '' }.int ()
59
- time: time.unix (ts or { '' }.int ())
60
- is_locked: is_locked or { '' } == 't'
59
+ time: time.unix (ts or { '' }.int ())
60
+ is_locked: is_locked or { '' } == 't'
61
61
}
62
62
}
63
63
return posts
You can’t perform that action at this time.
0 commit comments