Indentation

merge-requests/30/head
Bob Mottram 2024-05-09 13:17:59 +01:00
parent 622635fda5
commit d9c4daca61
1 changed files with 8 additions and 8 deletions

View File

@ -423,7 +423,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type == 'newblog': elif post_type == 'newblog':
# citations button on newblog screen # citations button on newblog screen
if citations_button_press: if citations_button_press:
@ -508,7 +508,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type == 'editblogpost': elif post_type == 'editblogpost':
print('Edited blog post received') print('Edited blog post received')
post_filename = \ post_filename = \
@ -717,7 +717,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type == 'newfollowers': elif post_type == 'newfollowers':
city = get_spoofed_city(city, base_dir, nickname, domain) city = get_spoofed_city(city, base_dir, nickname, domain)
save_to_file = False save_to_file = False
@ -823,7 +823,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type == 'newdm': elif post_type == 'newdm':
message_json = None message_json = None
print('A DM was posted') print('A DM was posted')
@ -943,7 +943,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type == 'newreminder': elif post_type == 'newreminder':
message_json = None message_json = None
handle = nickname + '@' + domain_full handle = nickname + '@' + domain_full
@ -1047,7 +1047,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
nickname, nickname,
curr_session, proxy_type): curr_session, proxy_type):
return 1 return 1
return -1 return -1
elif post_type == 'newreport': elif post_type == 'newreport':
if attachment_media_type: if attachment_media_type:
if attachment_media_type != 'image': if attachment_media_type != 'image':
@ -1094,7 +1094,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
nickname, nickname,
curr_session, proxy_type): curr_session, proxy_type):
return 1 return 1
return -1 return -1
elif post_type == 'newquestion': elif post_type == 'newquestion':
if not fields.get('duration'): if not fields.get('duration'):
return -1 return -1
@ -1286,7 +1286,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
max_replies, max_replies,
debug) debug)
return 1 return 1
return -1 return -1
elif post_type in ('newshare', 'newwanted'): elif post_type in ('newshare', 'newwanted'):
if not fields.get('itemQty'): if not fields.get('itemQty'):
print(post_type + ' no itemQty') print(post_type + ' no itemQty')