Fix name.
This commit is contained in:
		@@ -64,7 +64,7 @@ def lab_temp():
 | 
				
			|||||||
		return render_template("no_sensor.html")
 | 
							return render_template("no_sensor.html")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@app.route("/history", methods=['GET'])  #Add date limits in the URL #Arguments: from=2015-03-04&to=2015-03-05
 | 
					@app.route("/history", methods=['GET'])  #Add date limits in the URL #Arguments: from=2015-03-04&to=2015-03-05
 | 
				
			||||||
def pi_temp_db():
 | 
					def history():
 | 
				
			||||||
	temperatures, humidities, timezone, from_date_str, to_date_str = get_records()
 | 
						temperatures, humidities, timezone, from_date_str, to_date_str = get_records()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# Create new record tables so that datetimes are adjusted back to the user browser's time zone.
 | 
						# Create new record tables so that datetimes are adjusted back to the user browser's time zone.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
      <div class="row">
 | 
					      <div class="row">
 | 
				
			||||||
	      <form id="datetime_range" action="/pi_temp_db" method="GET"> 
 | 
						      <form id="datetime_range" action="/history" method="GET"> 
 | 
				
			||||||
	        <!-- <div class="row">          -->
 | 
						        <!-- <div class="row">          -->
 | 
				
			||||||
	          <div class="three columns">
 | 
						          <div class="three columns">
 | 
				
			||||||
	            <label for="from">From date</label>
 | 
						            <label for="from">From date</label>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user