Permalink
Browse files

mostly implemented feed info page in Flask

  • Loading branch information...
Fazal Majid
Fazal Majid committed Oct 23, 2016
1 parent 81afe39 commit c40df04ee70d46d37ea5d2425c8fe5b31fbf2aa8
Showing with 286 additions and 518 deletions.
  1. +1 −0 .gitignore
  2. +12 −1 dbop.py
  3. +2 −0 filters.py
  4. +188 −499 server.py
  5. +76 −0 templates/feed.html
  6. +1 −1 templates/view.html
  7. +6 −17 update.py
View
@@ -7,3 +7,4 @@ ChangeLog
*.pid
modules
private.py
backups
View
13 dbop.py
@@ -174,7 +174,18 @@ def view_sql(c, where, sort, params, overload_threshold):
tag_dict.setdefault(item_uid, []).append(tag_name)
return tag_dict, c.execute("""select * from articles
order by """ + sort + """, item_uid DESC""")
def feed_info_sql(c, feed_uid):
mv_on_demand(c)
return c.execute("""select feed_title, feed_desc, feed_filter,
feed_html, feed_xml, feed_pubxml,
last_modified, interesting, unread, uninteresting, filtered, total,
feed_status, feed_private, feed_exempt, feed_dupcheck, feed_errors
from v_feeds_snr
where feed_uid=?
group by feed_uid, feed_title, feed_html, feed_xml
""", [feed_uid])
c = db()
mv_on_demand(c)
rebuild_v_feed_stats(c)
View
@@ -166,6 +166,8 @@ def normalize_rule(rule):
wrapper.wordsep_re = re.compile(r'(\s+)')
def rule_lines(rule):
"Find how many lines are needed for the rule in a word-wrapped <textarea>"
if not rule:
return 4
lines = 0
for line in rule.splitlines():
if line.strip():
Oops, something went wrong.

0 comments on commit c40df04

Please sign in to comment.