mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-04-01 01:17:00 +02:00
Fix reviewed filter (#10038)
This commit is contained in:
parent
9801534f11
commit
4e5546cc78
@ -2397,7 +2397,7 @@ def vod_event(id):
|
|||||||
def review():
|
def review():
|
||||||
cameras = request.args.get("cameras", "all")
|
cameras = request.args.get("cameras", "all")
|
||||||
labels = request.args.get("labels", "all")
|
labels = request.args.get("labels", "all")
|
||||||
reviewed = request.args.get("reviewed", default=False)
|
reviewed = request.args.get("reviewed", type=int, default=0)
|
||||||
limit = request.args.get("limit", 100)
|
limit = request.args.get("limit", 100)
|
||||||
severity = request.args.get("severity", None)
|
severity = request.args.get("severity", None)
|
||||||
|
|
||||||
@ -2426,7 +2426,7 @@ def review():
|
|||||||
label_clause = reduce(operator.or_, label_clauses)
|
label_clause = reduce(operator.or_, label_clauses)
|
||||||
clauses.append((label_clause))
|
clauses.append((label_clause))
|
||||||
|
|
||||||
if not reviewed:
|
if reviewed == 1:
|
||||||
clauses.append((ReviewSegment.has_been_reviewed == False))
|
clauses.append((ReviewSegment.has_been_reviewed == False))
|
||||||
|
|
||||||
if severity:
|
if severity:
|
||||||
|
@ -45,7 +45,7 @@ export default function Events() {
|
|||||||
const pagedParams = {
|
const pagedParams = {
|
||||||
cameras: reviewSearchParams["cameras"],
|
cameras: reviewSearchParams["cameras"],
|
||||||
labels: reviewSearchParams["labels"],
|
labels: reviewSearchParams["labels"],
|
||||||
reviewed: reviewSearchParams["showReviewed"] || false,
|
reviewed: reviewSearchParams["showReviewed"] == true ? 1 : 0,
|
||||||
before: lastDate,
|
before: lastDate,
|
||||||
after: reviewSearchParams["after"] || timeRange.after,
|
after: reviewSearchParams["after"] || timeRange.after,
|
||||||
limit: API_LIMIT,
|
limit: API_LIMIT,
|
||||||
@ -56,7 +56,7 @@ export default function Events() {
|
|||||||
const params = {
|
const params = {
|
||||||
cameras: reviewSearchParams["cameras"],
|
cameras: reviewSearchParams["cameras"],
|
||||||
labels: reviewSearchParams["labels"],
|
labels: reviewSearchParams["labels"],
|
||||||
reviewed: reviewSearchParams["showReviewed"] || false,
|
reviewed: reviewSearchParams["showReviewed"] == true ? 1 : 0,
|
||||||
limit: API_LIMIT,
|
limit: API_LIMIT,
|
||||||
before: reviewSearchParams["before"] || timeRange.before,
|
before: reviewSearchParams["before"] || timeRange.before,
|
||||||
after: reviewSearchParams["after"] || timeRange.after,
|
after: reviewSearchParams["after"] || timeRange.after,
|
||||||
|
Loading…
Reference in New Issue
Block a user