setup(
name='wrfeed',
- version='0.1.4',
+ version='0.1.5',
description='Provides Atom Feed for Winterrodeln snow reports',
author='Philipp Spitzer',
author_email='philipp.spitzer@winterrodeln.org',
def create_feed(page_title=None, page_ids=None):
- """If a page_title is given, only the reports for the given sled are shown.
+ """If a page_title is given, only the reports for the given sledrun are shown.
If a list of page_ids is given, only the reports for the selected pages are shown.
Otherwise, all reports are shown."""
limit = int(config['feedentrylimit'])
conn = engine.connect()
- select = "select id, wrreport.page_title, date_report, date_entry, `condition`, description, author_name, author_username, position_longitude, position_latitude from wrreport left outer join wrsleddingcache on wrreport.page_id=wrsleddingcache.page_id "
+ select = "select id, wrreport.page_title, date_report, date_entry, `condition`, description, author_name, author_username, position_longitude, position_latitude from wrreport left outer join wrsledruncache on wrreport.page_id=wrsledruncache.page_id "
if not page_title is None:
# page_title is given
page_title = page_title.replace('_', ' ')