Try partial

merge-requests/6/head
Bob Mottram 2020-01-12 22:19:33 +00:00
parent 7a7f2e0e97
commit 88c7e49aa5
1 changed files with 2 additions and 1 deletions

View File

@ -5659,7 +5659,8 @@ def runDaemon(mediaInstance: bool,maxRecentPosts: int, \
if unitTest:
httpd = ThreadingHTTPServer(serverAddress, PubServerUnitTest)
else:
httpd = ThreadingHTTPServer(serverAddress, PubServer)
pubHandler = partial(PubServer)
httpd = ThreadingHTTPServer(serverAddress, pubHandler)
httpd.useBlurHash=useBlurHash
httpd.mediaInstance=mediaInstance