using the new url escaping in EagleEyev3 0.0.18
parent
a7d6911489
commit
6891d581a3
5
app.py
5
app.py
|
@ -293,12 +293,11 @@ def camera_detail(esn=None, days=DAYS_OF_HISTORY):
|
|||
een = session['een']
|
||||
|
||||
camera = een.get_camera_by_id(esn)
|
||||
now = een.time_now()
|
||||
|
||||
# because of API limitation, can only query 24 hours max
|
||||
for i in tqdm(range(0, days)):
|
||||
camera.get_list_of_events(end_timestamp=een.time_before(ts=now, hours=24*i), \
|
||||
start_timestamp=een.time_before(ts=now, hours=24*(i+1)))
|
||||
camera.get_list_of_events(end_timestamp=een.time_before(hours=24*i), \
|
||||
start_timestamp=een.time_before(hours=24*(i+1)))
|
||||
|
||||
values = {
|
||||
"current_user": een.current_user,
|
||||
|
|
|
@ -14,7 +14,7 @@ Werkzeug==2.3.6
|
|||
gunicorn==20.1.0
|
||||
cachelib==0.10.2
|
||||
Flask-Session==0.5.0
|
||||
EagleEyev3>=0.0.15
|
||||
EagleEyev3>=0.0.18
|
||||
tqdm
|
||||
pandas
|
||||
numpy
|
||||
|
|
Loading…
Reference in New Issue