Skip to content

Commit

Permalink
Check workstring length
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyd3L committed May 9, 2017
1 parent 63fa509 commit 51c6edd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions welab
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ def logout(username):
line = line.replace("INLAB",workTime(timein,timeout))
line = line.replace("\n","")
workdone = raw_input(HOSTNAME+": What have you done? -> ")
while len(workdone) > 128:
print HOSTNAME+": I didn't ask you the story of your life!"
workdone = raw_input(HOSTNAME+": What have you done? [BRIEFLY] -> ")
outline = line + " :: " + workdone + "\n"
logFile.write(outline)
print HOSTNAME + ": Logout successful!"
Expand Down

0 comments on commit 51c6edd

Please sign in to comment.