From 7b9e98bc5b1c28b0440b861677f45e30fcb49396 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 1 Jun 2014 01:52:49 -0400 Subject: [PATCH] Thanks @riamse --- bitshift/database/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitshift/database/__init__.py b/bitshift/database/__init__.py index 8235aa7..0c7ec83 100644 --- a/bitshift/database/__init__.py +++ b/bitshift/database/__init__.py @@ -107,9 +107,9 @@ class Database(object): dict_cursor.execute(query, (codelet_id,)) row = dict_cursor.fetchall()[0] if row["origin_url_base"]: - url = row["codelet_url"] - else: url = row["origin_url_base"] + row["codelet_url"] + else: + url = row["codelet_url"] origin = (row["origin_name"], row["origin_url"], row["origin_image"]) authors = self._get_authors_for_codelet(cursor, codelet_id)