Skip to content

Commit 1d1820e

Browse files
authored
Merge pull request #215 from openzim/fix_dev_script
Fix dev script used to populate DB
2 parents d3a9cf2 + 89dd092 commit 1d1820e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dev/scripts/setup_notifications.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"Flavour": "maxi",
5353
"Illustration_48x48@1": FAVICON_BLUE,
5454
},
55-
"zimcheck": {"status": "pass"},
5655
"folder_name": "wikipedia",
5756
"filename": "wikipedia_en_all_maxi_2025-01.zim",
5857
},
@@ -71,7 +70,6 @@
7170
"Flavour": "maxi",
7271
"Illustration_48x48@1": FAVICON_GREEN,
7372
},
74-
"zimcheck": {"status": "pass"},
7573
"folder_name": "wiktionary",
7674
"filename": "wiktionary_fr_all_maxi_2025-01.zim",
7775
},
@@ -90,7 +88,6 @@
9088
"Flavour": "maxi",
9189
"Illustration_48x48@1": FAVICON_RED,
9290
},
93-
"zimcheck": {"status": "pass"},
9491
"folder_name": "",
9592
"filename": "wiktionary_en_all_maxi_2025-01.zim",
9693
},
@@ -121,6 +118,9 @@ def create_notifications():
121118
# Generate random notification ID
122119
notification_id = uuid4()
123120

121+
# Set fake zimcheck_url
122+
content["zimcheck_url"] = f"https://foo.acme.com/{notification_id}.json"
123+
124124
# Create notification record
125125
notification = ZimfarmNotification(
126126
id=notification_id,

0 commit comments

Comments
 (0)