diff --git a/apiV2/app/controllers/apiv2/Projects.scala b/apiV2/app/controllers/apiv2/Projects.scala index 20db5626a..6432627a3 100644 --- a/apiV2/app/controllers/apiv2/Projects.scala +++ b/apiV2/app/controllers/apiv2/Projects.scala @@ -440,7 +440,6 @@ class Projects( .map { project => val urlOwner = URLEncoder.encode(project.ownerName, "UTF-8") val urlSlug = URLEncoder.encode(project.slug, "UTF-8") - println(s"/api/v2/projects/$urlOwner/$urlSlug/$path") Redirect( s"/api/v2/projects/$urlOwner/$urlSlug/$path", request.queryString ++ Map("ore-dont-pluginid-redirect" -> Seq("true")), diff --git a/apiV2/app/db/impl/query/apiv2/ProjectQueries.scala b/apiV2/app/db/impl/query/apiv2/ProjectQueries.scala index 9abd340af..2fc90d0b4 100644 --- a/apiV2/app/db/impl/query/apiv2/ProjectQueries.scala +++ b/apiV2/app/db/impl/query/apiv2/ProjectQueries.scala @@ -96,7 +96,7 @@ object ProjectQueries extends APIV2Queries { | FROM (SELECT unnest(ppv.platforms) AS platform, | unnest(ppv.platform_coarse_versions) AS platform_coarse_version, | ppv.stability - | FROM promoted_versions ppv) AS promoted """.stripMargin ++ + | FROM promoted_versions ppv WHERE ppv.project_id = p.id) AS promoted """.stripMargin ++ Fragments.whereAndOpt( NonEmptyList .fromList(platformsWithVersion) diff --git a/ore/app/db/impl/query/AppQueries.scala b/ore/app/db/impl/query/AppQueries.scala index 966734b13..dd2f1cf9e 100644 --- a/ore/app/db/impl/query/AppQueries.scala +++ b/ore/app/db/impl/query/AppQueries.scala @@ -208,7 +208,6 @@ object AppQueries extends DoobieOreProtocol { fr"LIMIT $limit OFFSET $offset" ).query[DbRef[Project]] - println(res.sql) res } } diff --git a/oreClient/src/main/assets/components/ProjectList.vue b/oreClient/src/main/assets/components/ProjectList.vue index 8b4cd8782..16584089e 100644 --- a/oreClient/src/main/assets/components/ProjectList.vue +++ b/oreClient/src/main/assets/components/ProjectList.vue @@ -159,7 +159,7 @@ export default { this.update() this.debouncedUpdateProps = debounce(this.update, 500) this.$watch( - (vm) => [vm.q, vm.categories, vm.tags, vm.owner, vm.sort, vm.relevance, vm.limit, vm.offset].join(), + (vm) => [vm.q, vm.categories, vm.platforms, vm.owner, vm.sort, vm.relevance, vm.limit, vm.offset].join(), () => { this.debouncedUpdateProps() } diff --git a/orePlayCommon/app/db/impl/access/ProjectBase.scala b/orePlayCommon/app/db/impl/access/ProjectBase.scala index 4cdd77dc6..2acaff1e1 100644 --- a/orePlayCommon/app/db/impl/access/ProjectBase.scala +++ b/orePlayCommon/app/db/impl/access/ProjectBase.scala @@ -113,8 +113,6 @@ object ProjectBase { p <- TableQuery[ProjectTable] if v.projectId === p.id } yield (p.ownerName, p.name, v) - println(s"Foobar: ${allVersions.result.statements.toVector}") - service.runDBIO(allVersions.result).flatMap { versions => fileIO .traverseLimited(versions.toVector) {