Skip to content

Commit

Permalink
Fixing merge and adding missing background image file.
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoochild committed Feb 3, 2012
2 parents 922dced + f9e9fa1 commit e2be60f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file added app/static/img/tactile_noise.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions app/views.py
Expand Up @@ -4,7 +4,7 @@

def dashboard(request):
"""Dashboard view."""
stories = Story.objects.filter(latest=True, source='Storify')[:settings.STORIES_PER_FEED]
stories = Story.objects.filter(latest=True, source='Storify').order_by('-timestamp')[:settings.STORIES_PER_FEED]
storyjson = []
for story in stories:
storyjson.append({
Expand All @@ -20,7 +20,7 @@ def dashboard(request):

})

tweetminster_stories = Story.objects.filter(latest=True, source='Tweetminster')[:settings.STORIES_PER_FEED]
tweetminster_stories = Story.objects.filter(latest=True, source='Tweetminster').order_by('-timestamp')[:settings.STORIES_PER_FEED]
tweetjson = []
for tweetstory in tweetminster_stories:
tweetjson.append({
Expand All @@ -35,7 +35,7 @@ def dashboard(request):
'stories': tweetjson
})

contentapi_stories = Story.objects.filter(latest=True, source='ContentAPI')[:settings.STORIES_PER_FEED]
contentapi_stories = Story.objects.filter(latest=True, source='ContentAPI').order_by('-timestamp')[:settings.STORIES_PER_FEED]
contentapijson = []
for contentapi_story in contentapi_stories:
contentapijson.append({
Expand Down

0 comments on commit e2be60f

Please sign in to comment.