all-the-public-replicate-models 1.350.0 → 1.352.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "all-the-public-replicate-models",
3
3
  "description": "Metadata for all the public models on Replicate, bundled up into an npm package",
4
4
  "repository": "https://github.com/replicate/all-the-public-replicate-models",
5
- "version": "1.350.0",
5
+ "version": "1.352.0",
6
6
  "devDependencies": {
7
7
  "chai": "^4.3.10",
8
8
  "lodash-es": "^4.17.21",
package/script/stats.js CHANGED
@@ -77,7 +77,12 @@ for (const commitSha of commits) {
77
77
  totalRuns,
78
78
  dailyRuns,
79
79
  };
80
- stats[nwo].push(dailyStats);
80
+
81
+
82
+ // Only add stats for new dates to avoid duplicates from multiple commits on the same day
83
+ if (stats[nwo].length === 0 || stats[nwo][stats[nwo].length - 1].date !== formattedDate) {
84
+ stats[nwo].push(dailyStats);
85
+ }
81
86
  }
82
87
 
83
88
  } catch (error) {