Skip to content

Commit

Permalink
Fix standard attribute when importing random curves
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Aug 10, 2023
1 parent eaab519 commit 797038c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/utils/database_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _format_curve(curve):
elif isinstance(curve["cofactor"], str): # Workaround for std database
c["cofactor"] = hex(int(curve["cofactor"], base=16))

c["standard"] = False if "sim" in curve["category"] else True
c["standard"] = curve.get("standard", False if "sim" in curve["category"] else True)
c["example"] = curve.get("example", False)

if curve.get("simulation"):
Expand Down

0 comments on commit 797038c

Please sign in to comment.