chore: Add debug prints in modify_feed
This commit is contained in:
parent
612930411a
commit
babe21ed14
|
@ -7,11 +7,23 @@ log = logging.getLogger(__name__)
|
|||
|
||||
def modify_feed(context, feed):
|
||||
pprint.pprint(context)
|
||||
|
||||
print()
|
||||
print('---------------------------------------')
|
||||
print()
|
||||
|
||||
if 'articles' in context:
|
||||
for article in context['articles']:
|
||||
pprint.pprint(article.__dict__)
|
||||
break
|
||||
pass
|
||||
|
||||
print()
|
||||
print('---------------------------------------')
|
||||
print()
|
||||
|
||||
for i in feed.items:
|
||||
pprint.pprint(i)
|
||||
break
|
||||
|
||||
def register():
|
||||
signals.feed_generated.connect(modify_feed)
|
||||
|
|
Loading…
Reference in New Issue
Block a user