Skip to content

Commit

Permalink
Merge pull request #9 from genome21/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
genome21 committed Feb 4, 2016
2 parents 1b03c81 + c425acb commit 2137fa8
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions start.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import getpass
import datetime

morningstart = open('updates.txt', 'r')
morningstart.read()
linelist = morningstart.readline()
morningstart.close()
operstamp = getpass.getuser()
timestamp = datetime.datetime.now().strftime('%Y%m%d-%H:%M:%S')
dailyupdates = open('updates.txt', 'a')
print('This is your last update: ')
print (linelist)
print('What are your updates?')
typedupdates = input()
nline = "\n"
iline = " -- "
dailyupdates.write(operstamp)
dailyupdates.write(iline)
dailyupdates.write(timestamp)
dailyupdates.write(nline)
dailyupdates.write(typedupdates)
ender = "\nEOF-------------------------------------------EOF\n\n"
dailyupdates.write(ender)
dailyupdates.close()
with open('updates.txt', 'r') as morningstart:
morningstart.read()
linelist = morningstart.readline()
operstamp = getpass.getuser()
timestamp = datetime.datetime.now().strftime('%Y%m%d-%H:%M:%S')

with open('updates.txt', 'a') as dailyupdates:
print('This is your last update: ')
print (linelist)
print('What are your updates?')
typedupdates = input()
nline = "\n"
iline = " -- "
dailyupdates.write(operstamp)
dailyupdates.write(iline)
dailyupdates.write(timestamp)
dailyupdates.write(nline)
dailyupdates.write(typedupdates)
ender = "\nEOF-------------------------------------------EOF\n\n"
dailyupdates.write(ender)

0 comments on commit 2137fa8

Please sign in to comment.