def store_sitemap_index(bucket, count): key = Key(bucket) key.key = g.sitemap_subreddit_keyname g.log.debug("Uploading %r", key) upload_sitemap(key, sitemap_index(count))
def store_sitemaps(): sitemap_updater = SitemapUpdater() for subreddit_sitemap in subreddit_sitemaps(find_all_subreddits()): sitemap_updater.add_subreddit_sitemap(subreddit_sitemap) sitemap_updater.add_sitemap_index(sitemap_index(sitemap_updater.count))