remove the collector from the view

the collector shouldn't run every time the view gets called
This commit is contained in:
Andreas Zweili 2019-10-20 22:50:52 +02:00
parent 110c8da696
commit 9d01af07b9
1 changed files with 0 additions and 2 deletions

View File

@ -1,9 +1,7 @@
from django.shortcuts import render
from . import plot
from . import collector
def index_view(request):
collector.values_to_db()
plot_temp = plot.temperature()
plot_humidity = plot.humidity()
plot_pressure = plot.pressure()