remove the collector from the view
the collector shouldn't run every time the view gets called
This commit is contained in:
parent
110c8da696
commit
9d01af07b9
|
@ -1,9 +1,7 @@
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from . import plot
|
from . import plot
|
||||||
from . import collector
|
|
||||||
|
|
||||||
def index_view(request):
|
def index_view(request):
|
||||||
collector.values_to_db()
|
|
||||||
plot_temp = plot.temperature()
|
plot_temp = plot.temperature()
|
||||||
plot_humidity = plot.humidity()
|
plot_humidity = plot.humidity()
|
||||||
plot_pressure = plot.pressure()
|
plot_pressure = plot.pressure()
|
||||||
|
|
Loading…
Reference in New Issue