From a73a5d3cc2b5a74e1163dfec5d3513d93c92a189 Mon Sep 17 00:00:00 2001 From: whikernel Date: Mon, 9 Dec 2024 17:02:33 +0100 Subject: [PATCH] [FIX] Issue with and_ conditions in alerts --- source/app/datamgmt/alerts/alerts_db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/app/datamgmt/alerts/alerts_db.py b/source/app/datamgmt/alerts/alerts_db.py index 6d84d747c..d91186fa5 100644 --- a/source/app/datamgmt/alerts/alerts_db.py +++ b/source/app/datamgmt/alerts/alerts_db.py @@ -21,8 +21,7 @@ from datetime import datetime, timedelta from flask_login import current_user from functools import reduce -from operator import and_ -from sqlalchemy import desc, asc, func, tuple_, or_, not_ +from sqlalchemy import desc, asc, func, tuple_, or_, not_, and_ from sqlalchemy.orm import aliased, make_transient, selectinload from typing import List, Tuple, Dict