git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/wrfeed@830
7aebc617-e5e2-0310-91dc-
80fb5f6d2477
description='Provides Atom Feed for Winterrodeln snow reports',
author='Philipp Spitzer',
author_email='philipp.spitzer@winterrodeln.org',
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):
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."""
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()
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('_', ' ')
if not page_title is None:
# page_title is given
page_title = page_title.replace('_', ' ')