vnews 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/create.sql +1 -0
- data/lib/vnews/sql.rb +2 -2
- data/lib/vnews/version.rb +1 -1
- metadata +2 -2
data/lib/create.sql
CHANGED
data/lib/vnews/sql.rb
CHANGED
@@ -137,7 +137,7 @@ class Vnews
|
|
137
137
|
when 'Starred'
|
138
138
|
"SELECT items.title, items.guid, items.feed,
|
139
139
|
items.feed_title, items.pub_date, items.word_count, items.starred, items.unread from items
|
140
|
-
where items.starred = true order by items.pub_date asc"
|
140
|
+
where items.starred = true order by items.starred_at, items.pub_date asc"
|
141
141
|
when 'All'
|
142
142
|
"SELECT items.title, items.guid, items.feed,
|
143
143
|
items.feed_title, items.pub_date, items.word_count, items.starred, items.unread from items
|
@@ -168,7 +168,7 @@ class Vnews
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def star_item(guid, star=true)
|
171
|
-
@client.query "UPDATE items set starred = #{star} where guid = '#{e guid}'"
|
171
|
+
@client.query "UPDATE items set starred = #{star}, starred_at = now() where guid = '#{e guid}'"
|
172
172
|
end
|
173
173
|
|
174
174
|
def delete_item(guid)
|
data/lib/vnews/version.rb
CHANGED