def repository_feed_atom(repo: str) -> Response: return (flask.render_template( 'repository-feed-atom.xml', repo=repo, history=unicalize_feed_timestamps(get_db().get_repository_feed( repo=repo, timespan=datetime.timedelta(weeks=4), limit=config['HISTORY_PER_PAGE']))), { 'Content-type': 'application/atom+xml' })
def repository_feed(repo: str) -> Response: autorefresh = flask.request.args.to_dict().get('autorefresh') return flask.render_template('repository-feed.html', repo=repo, history=unicalize_feed_timestamps( get_db().get_repository_feed( repo=repo, limit=config['HISTORY_PER_PAGE'])), autorefresh=autorefresh)
def maintainer_repo_feed_atom(maintainer: str, repo: str) -> Any: return (flask.render_template( 'maintainer-repo-feed-atom.xml', maintainer=maintainer, repo=repo, history=unicalize_feed_timestamps(get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, timespan=datetime.timedelta(weeks=4), limit=config['HISTORY_PER_PAGE']))), { 'Content-type': 'application/atom+xml' })
def maintainer_repo_feed(maintainer: str, repo: str) -> Any: autorefresh = flask.request.args.to_dict().get('autorefresh') return flask.render_template('maintainer-repo-feed.html', maintainer=maintainer, repo=repo, history=unicalize_feed_timestamps( get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, limit=config['HISTORY_PER_PAGE'])), autorefresh=autorefresh)
def repository_feed_atom(repo: str) -> Response: return ( flask.render_template( 'repository-feed-atom.xml', repo=repo, history=unicalize_feed_timestamps( get_db().get_repository_feed( repo=repo, limit=config['ATOM_FEED_MAX_ENTRIES'], max_age=datetime.timedelta(days=config['ATOM_FEED_MAX_AGE_DAYS']), min_count=config['ATOM_FEED_MIN_ENTRIES'] ) ) ), {'Content-type': 'application/atom+xml'} )
def maintainer_repo_feed(maintainer: str, repo: str) -> Response: autorefresh = flask.request.args.to_dict().get('autorefresh') return flask.render_template( 'maintainer-repo-feed.html', maintainer=maintainer, repo=repo, history=unicalize_feed_timestamps( get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, limit=config['HTML_FEED_MAX_ENTRIES'] ) ), autorefresh=autorefresh )