From d9034b6215d53aee908358a6f9fbe3fdb0e260b1 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 30 Jan 2013 20:42:23 +0100 Subject: [PATCH] Consistently use row_id, and not itemid or rowid --- updater/scrapers/coursera.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updater/scrapers/coursera.py b/updater/scrapers/coursera.py index 43ab3a3..71e01b2 100644 --- a/updater/scrapers/coursera.py +++ b/updater/scrapers/coursera.py @@ -17,7 +17,7 @@ class Coursera(shared.Scraper): self.process_item(item) def process_item(self, item): - inserted, rowid = self.insert_topic(str(item["id"]), item["name"], description=item["short_description"], needs_enrollment=True) + inserted, row_id = self.insert_topic(str(item["id"]), item["name"], description=item["short_description"], needs_enrollment=True) if inserted: self.env.log("Inserted topic %s" % item["name"]) @@ -25,7 +25,7 @@ class Coursera(shared.Scraper): self.env.log("Skipped topic %s" % item["name"]) for course in item["courses"]: - self.process_course(course, rowid) + self.process_course(course, row_id) def process_course(self, course, topicid): try: @@ -35,7 +35,7 @@ class Coursera(shared.Scraper): title = self.generate_title(course['name'], start_date) - inserted, itemid = self.insert_item(str(course["id"]), title, course["home_link"], has_topic=True, itemtype=self.COURSE, description=course["certificate_description"], start_date=start_date, topic_id=topicid) + inserted, row_id = self.insert_item(str(course["id"]), title, course["home_link"], has_topic=True, itemtype=self.COURSE, description=course["certificate_description"], start_date=start_date, topic_id=topicid) if inserted: self.env.log("Inserted item %s" % title)