mirror of https://gitlab.com/bashrc2/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
|
# replace html formatting, so that it's more
|
||||||
# like the original patch file
|
# like the original patch file
|
||||||
contentStr = content.replace('<br>','\n').replace('<br />','\n')
|
contentStr = content.replace('<br>', '\n').replace('<br />', '\n')
|
||||||
contentStr = contentStr.replace('<p>','').replace('</p>','\n')
|
contentStr = contentStr.replace('<p>', '').replace('</p>', '\n')
|
||||||
|
|
||||||
patchLines = contentStr.split('\n')
|
patchLines = contentStr.split('\n')
|
||||||
patchFilename = None
|
patchFilename = None
|
||||||
|
|
2
inbox.py
2
inbox.py
|
@ -2052,7 +2052,7 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
print('Debug git 1')
|
print('Debug git 1')
|
||||||
if isinstance(postJsonObject['object'], dict):
|
if isinstance(postJsonObject['object'], dict):
|
||||||
print('Debug git 2')
|
print('Debug git 2')
|
||||||
pprint(postJsonObject)
|
pprint(postJsonObject)
|
||||||
if postJsonObject['object'].get('content') and \
|
if postJsonObject['object'].get('content') and \
|
||||||
postJsonObject['object'].get('summary'):
|
postJsonObject['object'].get('summary'):
|
||||||
print('Debug git 3')
|
print('Debug git 3')
|
||||||
|
|
Loading…
Reference in New Issue