Variable names

master
Bob Mottram 2019-06-29 11:59:16 +01:00
parent 8defe2003f
commit 41d68a0e05
2 changed files with 4 additions and 4 deletions

View File

@ -33,12 +33,12 @@ session = createSession(useTor)
privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True) privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True)
setPreferredUsername(username,domain,'badger') setPreferredUsername(username,domain,'badger')
setBio(username,domain,'Some personal info') 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) #runDaemon(domain,port,federationList,useTor)
#testHttpsig() #testHttpsig()
sys.exit() #sys.exit()
#pprint(person) #pprint(person)
#print('\n') #print('\n')

View File

@ -45,12 +45,12 @@ def parseUserFeed(session,feedUrl,asHeader) -> None:
pprint(feedJson) pprint(feedJson)
if 'orderedItems' in feedJson: if 'orderedItems' in feedJson:
for item in feed['orderedItems']: for item in feedJson['orderedItems']:
yield item yield item
nextUrl = None nextUrl = None
if 'first' in feedJson: if 'first' in feedJson:
nextUrl = feed['first'] nextUrl = feedJson['first']
elif 'next' in feedJson: elif 'next' in feedJson:
nextUrl = feedJson['next'] nextUrl = feedJson['next']