We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7946e commit ee2b2f1Copy full SHA for ee2b2f1
bin/json_helpers.py
@@ -18,19 +18,9 @@ def load_json(
18
) -> tuple[Dict[str, Any]]:
19
"""Load issues from JSON file and return issues + timestamp."""
20
if not os.path.exists(filename):
21
- return {}
+ return None
22
23
with open(filename, "r", encoding="utf-8") as f:
24
data = json.load(f)
25
26
return data
27
-
28
- # Handle old format (just a list) vs new format (dict with metadata)
29
- if isinstance(data, list):
30
- issues = data
31
- timestamp = "Unknown (old format)"
32
- else:
33
- issues = data.get("issues", [])
34
- timestamp = data.get("fetch_timestamp_human", "Unknown")
35
36
- print(f"Loaded {len(issues)} issues from {filename} (last fetched: {timestamp})")
0 commit comments