using the new url escaping in EagleEyev3 0.0.18

main
Mark Cotton 2023-08-30 09:01:40 -05:00
parent a7d6911489
commit 6891d581a3
2 changed files with 3 additions and 4 deletions

5
app.py
View File

@ -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,

View File

@ -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