forked from indymedia/epicyon
Tidying
parent
2956856e76
commit
a99483b3fc
4
git.py
4
git.py
|
@ -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
|
||||
|
|
2
inbox.py
2
inbox.py
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue