Skip to content

Commit

Permalink
Sort shamir certificates in get certificates output.
Browse files Browse the repository at this point in the history
  • Loading branch information
AureliaDolo committed Jun 20, 2024
1 parent 97fae58 commit a716e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/parsec/components/memory/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ async def get_certificates(

shamir_recovery_certificates: list[bytes] = []

for user_id, shamir in org.shamir_setup.items():
for user_id, shamir in sorted(org.shamir_setup.items(), key=lambda x: x[1].brief.timestamp):
# filter on timestamp
if shamir_recovery_after is not None and shamir.brief.timestamp < shamir_recovery_after:
continue
Expand Down

0 comments on commit a716e42

Please sign in to comment.