Correcting additional flake8 failures on privacy_server.py

Corrected:
E712 comparison to True should be 'if cond is True:' or 'if cond:'
E265 block comment should start with '# '
This commit is contained in:
Jake Herbst
2022-05-11 08:10:52 -04:00
parent a7e4ef3777
commit 6a6826c59e
+1 -1
View File
@@ -228,7 +228,7 @@ def analyzeAudioData(chunks, lat, lon, week, sensitivity, overlap,):
# Save result and timestamp # Save result and timestamp
pred_end = pred_start + 3.0 pred_end = pred_start + 3.0
if HUMAN_DETECTED == True: if HUMAN_DETECTED is True:
p = [('Human_Human', 0.0)] * 10 p = [('Human_Human', 0.0)] * 10
print("HUMAN DETECTED!!!", p) print("HUMAN DETECTED!!!", p)