main
Bob Mottram 2020-05-02 16:13:02 +00:00
parent 2956856e76
commit a99483b3fc
2 changed files with 3 additions and 3 deletions

4
git.py
View File

@ -68,8 +68,8 @@ def receiveGitPatch(baseDir: str, nickname: str, domain: str,
# replace html formatting, so that it's more
# like the original patch file
contentStr = content.replace('<br>','\n').replace('<br />','\n')
contentStr = contentStr.replace('<p>','').replace('</p>','\n')
contentStr = content.replace('<br>', '\n').replace('<br />', '\n')
contentStr = contentStr.replace('<p>', '').replace('</p>', '\n')
patchLines = contentStr.split('\n')
patchFilename = None

View File

@ -2052,7 +2052,7 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
print('Debug git 1')
if isinstance(postJsonObject['object'], dict):
print('Debug git 2')
pprint(postJsonObject)
pprint(postJsonObject)
if postJsonObject['object'].get('content') and \
postJsonObject['object'].get('summary'):
print('Debug git 3')