Fix some twitter feeds not working.
This commit is contained in:
parent
85c24975e0
commit
b2c3287144
@ -9,7 +9,7 @@
|
||||
<i class="share square outline icon"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<div class="header" id="author"><a href="{{url_for('u', username=post.op.replace('@',''))}}">{{ post.op }}</a></div>
|
||||
<div class="header" id="author"><a href="{{url_for('/', username=post.op.replace('@',''))}}">{{ post.op }}</a></div>
|
||||
<div class="meta">
|
||||
<span class="category" id="time"><i class="clock icon"></i> {{post.date}} </span>
|
||||
{% if post.isPinned %}
|
||||
|
@ -38,13 +38,12 @@ def get_feed(usernames, daysMaxOld=10, includeRT=True):
|
||||
else:
|
||||
userFeed.append(tweet)
|
||||
else:
|
||||
userFeed.append(feed)
|
||||
userFeed+=feed
|
||||
try:
|
||||
for uf in userFeed:
|
||||
if uf == 'emptyFeed':
|
||||
userFeed.remove(uf)
|
||||
userFeed.sort(key=lambda item:item['timeStamp'], reverse=True)
|
||||
#userFeed.sort(key=lambda x: datetime.datetime.strptime(x['timeStamp'], '%Y-%m-%d %H:%M:%S'), reverse=True)
|
||||
except:
|
||||
return userFeed
|
||||
return userFeed
|
Reference in New Issue
Block a user