Added docstrings for the ease of modification

This commit is contained in:
Ali Parlakci
2018-08-06 08:13:07 +03:00
parent be7508540d
commit 20b9747330
2 changed files with 25 additions and 3 deletions

View File

@@ -455,6 +455,9 @@ def isPostExists(POST):
possibleExtensions = [".jpg",".png",".mp4",".gif",".webm",".md"]
"""If you change the filenames, don't forget to add them here.
Please don't remove existing ones
"""
for extension in possibleExtensions:
OLD_FILE_PATH = PATH / (
@@ -481,6 +484,8 @@ def isPostExists(POST):
return False
def downloadPost(SUBMISSION):
"""Download directory is declared here for each file"""
directory = GLOBAL.directory / SUBMISSION['postSubreddit']
global lastRequestTime