Skip to content

Commit bb0da77

Browse files
committed
Add seed categories to better match real database
1 parent 70a10f9 commit bb0da77

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

migrations/seeds.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
)
6666
records.append(record)
6767

68-
for idx, category in enumerate(["2", "3"]):
68+
for idx, category in enumerate(["null", "2", "3"]):
6969
record = PythonMajorDownloadCount(
7070
date=date,
7171
package=package,
@@ -74,7 +74,9 @@
7474
)
7575
records.append(record)
7676

77-
for idx, category in enumerate(["2.7", "3.4", "3.5", "3.6", "3.7", "3.8"]):
77+
for idx, category in enumerate(
78+
["null", "2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
79+
):
7880
record = PythonMinorDownloadCount(
7981
date=date,
8082
package=package,
@@ -83,7 +85,7 @@
8385
)
8486
records.append(record)
8587

86-
for idx, category in enumerate(["windows", "linux", "darwin"]):
88+
for idx, category in enumerate(["null", "windows", "linux", "darwin"]):
8789
record = SystemDownloadCount(
8890
date=date,
8991
package=package,

0 commit comments

Comments
 (0)