From 41d68a0e05cdb140012dd49864fa580bc110e21a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Jun 2019 11:59:16 +0100 Subject: [PATCH] Variable names --- epicyon.py | 4 ++-- posts.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epicyon.py b/epicyon.py index 9c62abad..ae8262f9 100644 --- a/epicyon.py +++ b/epicyon.py @@ -33,12 +33,12 @@ session = createSession(useTor) privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True) setPreferredUsername(username,domain,'badger') setBio(username,domain,'Some personal info') -createPublicPost(username, domain, https, "G'day world!", False, True, None, None, 'Not suitable for Vogons') +#createPublicPost(username, domain, https, "G'day world!", False, True, None, None, 'Not suitable for Vogons') #runDaemon(domain,port,federationList,useTor) #testHttpsig() -sys.exit() +#sys.exit() #pprint(person) #print('\n') diff --git a/posts.py b/posts.py index 8b3c5e04..054d9cbb 100644 --- a/posts.py +++ b/posts.py @@ -45,12 +45,12 @@ def parseUserFeed(session,feedUrl,asHeader) -> None: pprint(feedJson) if 'orderedItems' in feedJson: - for item in feed['orderedItems']: + for item in feedJson['orderedItems']: yield item nextUrl = None if 'first' in feedJson: - nextUrl = feed['first'] + nextUrl = feedJson['first'] elif 'next' in feedJson: nextUrl = feedJson['next']