File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ def makerow(r):
8282 (?<m>\\ d{2}) # month
8383 (?<d>\\ d{2})Z$ # day" ;
8484 "\( .y ) -\( .m ) -\( .d ) " ; "ix" )),
85- .value
85+ .value ,
86+ "PackageCloud"
8687 ] |
8788 flatten
8889;
@@ -106,7 +107,8 @@ def makeclonerows(name):
106107 null ,
107108 "HEAD" ,
108109 ( .timestamp | split ("T" )[0 ]),
109- .count
110+ .count ,
111+ "GitHub"
110112 ]
111113;
112114
@@ -145,7 +147,8 @@ def makegemrows(name):
145147 null ,
146148 .number ,
147149 $today ,
148- .downloads_count
150+ .downloads_count ,
151+ "RubyGems"
149152 ]
150153 )
151154;
@@ -160,7 +163,8 @@ def makepullrow(name):
160163 null ,
161164 "all" ,
162165 ((now - 86400 ) | strftime ("%Y-%m-%d" )),
163- .pull_count
166+ .pull_count ,
167+ "Docker Hub"
164168 ]
165169;
166170
@@ -195,6 +199,7 @@ def makebrewrows(name):
195199 null ,
196200 $version ,
197201 brewdate (. [0 ]),
198- . [1 ]])
202+ . [1 ],
203+ "Homebrew" ])
199204 ) | flatten (1 )
200205;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ CREATE TABLE download_stats
66 pg_version decimal ,
77 version text NOT NULL ,
88 " date" date NOT NULL ,
9- downloads integer NOT NULL
9+ downloads integer NOT NULL ,
10+ source text
1011);
1112CREATE INDEX ON download_stats (" date" );
1213
@@ -18,7 +19,8 @@ CREATE TABLE download_levels
1819 pg_version decimal ,
1920 version text NOT NULL ,
2021 " date" date NOT NULL ,
21- total_downloads integer NOT NULL
22+ total_downloads integer NOT NULL ,
23+ source text
2224);
2325CREATE INDEX ON download_levels (" date" );
2426
You can’t perform that action at this time.
0 commit comments