Commit b40520e1 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '497-packagist-stats-not-displayed-in-downloads-by-month' into 'develop'

Resolve "Packagist stats not displayed in "Downloads by month""

Closes #497

See merge request services/extensions.typo3.org/ter!629
parents 0b903b1a 5005c9a2
Pipeline #10188 passed with stages
in 10 minutes and 53 seconds
......@@ -114,7 +114,7 @@ class PackagistCommand extends Command
foreach ($downloadData['package']['downloads']['versions'] as $version => $downloads) {
// To ensure packagist version with "v" in tag also gets counted e.g. v4.2.3 is 4.2.3 in TER.
$version = preg_replace('#v#', '', $version);
$version = ltrim($version, 'v');
$versionFound = $this->versionRepository->findOneByExtensionAndVersionString($extension, $version);
if (null === $versionFound) {
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment