Skip to content

Commit a1d6c80

Browse files
Retrieve snapshot and stored HMAC signature
1 parent ef7e291 commit a1d6c80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pydatastructs/graphs/graph.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def get_snapshot(self, timestamp: int):
134134
if timestamp not in self.snapshots:
135135
raise ValueError(f"Snapshot for timestamp {timestamp} does not exist. "
136136
f"Available timestamps: {sorted(self.snapshots.keys())}")
137-
return self.snapshots[timestamp]
137+
snapshot_info = self.snapshots[timestamp]
138+
snapshot_graph = snapshot_info["graph"]
139+
stored_signature = snapshot_info["signature"]
138140
def list_snapshots(self):
139141
"""Returns all stored timestamps in sorted order."""
140142
return sorted(self.snapshots.keys())

0 commit comments

Comments
 (0)