changeset 3:3de939253e55 draft

Uploaded
author greg
date Tue, 27 Nov 2018 09:53:52 -0500
parents 57c418290b61
children 9ca3ff390666
files validate_temperature_data.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/validate_temperature_data.py	Tue Nov 27 09:52:13 2018 -0500
+++ b/validate_temperature_data.py	Tue Nov 27 09:53:52 2018 -0500
@@ -52,10 +52,10 @@
 
 def validate_mmdd(line_no, mmdd, accumulated_msgs):
     try:
-        datetime.datetime.strptime(date_string, '%m-%d')
+        datetime.datetime.strptime(mmdd, '%m-%d')
         return accumulated_msgs
     except ValueError:
-        return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (%s must be mm-dd)." % (line_no, date_string))
+        return add_error_msg(accumulated_msgs, "Line %d contains an incorrect date format (%s must be mm-dd)." % (line_no, mmdd))
 
 
 accumulated_msgs = ""