Skip to content

Commit a5d0899

Browse files
committed
Fix many condition attempt 2
1 parent 734b873 commit a5d0899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/service_sync/data_processing/get_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_dos_service_and_history_one_query(service_id: int) -> tuple[DoSService,
102102
# Query the DoS database for the service
103103
cursor = query_dos_db(connection=connection, query=sql_query, query_vars=query_vars)
104104
rows: DictRow = cursor.fetchall()
105-
if len(rows) > 1:
105+
if len(rows) >= 1:
106106
# Select first row (service) and create DoSService object
107107
service = DoSService(rows[0])
108108
logger.append_keys(service_name=service.name)

0 commit comments

Comments
 (0)