Skip to content
Browse files

Fixed some name errors.

  • Loading branch information...
1 parent f1214c9 commit 1fd87e8aec298b66f97dc83f38ec0d0f563d4274 @ericflo committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 couch_lifestream/management/commands/fetch_lifestream_items.py
View
14 couch_lifestream/management/commands/fetch_lifestream_items.py
@@ -58,7 +58,7 @@ def callback(item):
parse_json(url, 'twitter', callback)
def fetch_pownce_items():
- url = 'http://api.pownce.com/2.0/note_lists/%s.json' % (POWNCE_USERNAME,)
+ url = 'http://api.pownce.com/2.0/note_lists/%s.json' % (un['POWNCE'],)
def callback(item):
y, month, d, h, m, s, wd, jd, ds = time.gmtime(item['timestamp'])
couch_lifestream_date = datetime.datetime(y, month, d, h, m, s)
@@ -94,16 +94,16 @@ class Command(NoArgsCommand):
help = 'Fetch the latest lifestream items and insert them into CouchDB.'
def handle_noargs(self, **options):
- if TWITTER_USERNAME is not None:
+ if un['TWITTER'] is not None:
fetch_twitter_items()
- if POWNCE_USERNAME is not None:
+ if un['POWNCE'] is not None:
fetch_pownce_items()
- if REDDIT_USERNAME is not None:
+ if un['REDDIT'] is not None:
fetch_reddit_items()
- if FLICKR_USER_ID is not None:
+ if un['FLICKR'] is not None:
fetch_flickr_items()
- if GITHUB_USERNAME is not None:
+ if un['GITHUB'] is not None:
fetch_github_items()
- if DIGG_USERNAME is not None:
+ if un['DIGG'] is not None:
fetch_digg_items()
print "Finished loading lifestream items."

0 comments on commit 1fd87e8

Please sign in to comment.
Something went wrong with that request. Please try again.