Changes to index, topRedditPost, topSubPort and weatherdata, mostly styling

This commit is contained in:
2016-10-10 21:42:33 +00:00
parent a6c25e99de
commit ec9f3c99f0
4 changed files with 12 additions and 10 deletions

6
topRedditPost.py Normal file → Executable file
View File

@@ -16,7 +16,7 @@ def getShowerThought():
for submission in subreddit.get_hot(limit = 5):
submissionArray.append(submission.title)
with open('topSubPost.txt', 'w') as outputFile:
with open('/var/www/html/topSubPost.txt', 'w') as outputFile:
print(submissionArray[2])
outputFile.write(str(submissionArray[2]))
@@ -72,7 +72,7 @@ def getWeatherReport():
forcastList.insert(0,timeOfDay())
print(forcastList)
with open('weatherData.txt', 'w') as outputFile:
with open('/var/www/html/weatherData.txt', 'w') as outputFile:
for element in forcastList:
outputFile.write(str(element) + '\n')
@@ -80,4 +80,4 @@ def main():
getShowerThought()
getWeatherReport()
main()
main()