Missing parameter

main2
Bob Mottram 2019-10-20 10:49:26 +01:00
parent f3c4baadb1
commit b82a60bf8c
1 changed files with 5 additions and 2 deletions

View File

@ -1908,7 +1908,10 @@ def createBoxIndex(boxDir: str,postsInBoxDict: {}) -> int:
postsCtr+=1 postsCtr+=1
return postsCtr return postsCtr
def createSharedInboxIndex(baseDir: str,sharedBoxDir: str,postsInBoxDict: {},postsCtr: int,nickname: str,domain: str) -> int: def createSharedInboxIndex(baseDir: str,sharedBoxDir: str, \
postsInBoxDict: {},postsCtr: int, \
nickname: str,domain: str, \
ocapAlways: bool) -> int:
""" Creates an index for the given shared inbox """ Creates an index for the given shared inbox
""" """
handle=nickname+'@'+domain handle=nickname+'@'+domain
@ -2039,7 +2042,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
postsCtr= \ postsCtr= \
createSharedInboxIndex(baseDir,sharedBoxDir, \ createSharedInboxIndex(baseDir,sharedBoxDir, \
postsInBoxDict,postsCtr, \ postsInBoxDict,postsCtr, \
nickname,domain) nickname,domain,ocapAlways)
# sort the list in descending order of date # sort the list in descending order of date
postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=True)) postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=True))