Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 08b045c

Browse files
richard-julienaHenryJard
authored andcommitted
[connectors] Adapt pylint, adding global rule no-value-for-parameter
1 parent a1cb55f commit 08b045c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pycti/entities/opencti_stix_sighting_relationship.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ def __init__(self, opencti):
263263

264264
@staticmethod
265265
def generate_id(
266-
relationship_type,
267266
sighting_of_ref,
268267
where_sighted_refs,
269268
first_seen=None,
@@ -276,22 +275,22 @@ def generate_id(
276275

277276
if first_seen is not None and last_seen is not None:
278277
data = {
279-
"type": relationship_type,
278+
"type": "sighting",
280279
"sighting_of_ref": sighting_of_ref,
281280
"where_sighted_refs": where_sighted_refs,
282281
"first_seen": first_seen,
283282
"last_seen": last_seen,
284283
}
285284
elif first_seen is not None:
286285
data = {
287-
"type": relationship_type,
286+
"type": "sighting",
288287
"sighting_of_ref": sighting_of_ref,
289288
"where_sighted_refs": where_sighted_refs,
290289
"first_seen": first_seen,
291290
}
292291
else:
293292
data = {
294-
"type": relationship_type,
293+
"type": "sighting",
295294
"sighting_of_ref": sighting_of_ref,
296295
"where_sighted_refs": where_sighted_refs,
297296
}
@@ -302,7 +301,6 @@ def generate_id(
302301
@staticmethod
303302
def generate_id_from_data(data):
304303
return StixSightingRelationship.generate_id(
305-
data["type"],
306304
data["sighting_of_ref"],
307305
data["where_sighted_refs"],
308306
data.get("first_seen"),

0 commit comments

Comments
 (0)