Skip to content

Commit

Permalink
Fixed /plugins and /plugins/datasette-dashboards for non-release pack…
Browse files Browse the repository at this point in the history
…ages, refs #98
  • Loading branch information
simonw committed Apr 8, 2022
1 parent 915b2ea commit ee3fc29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions build_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def cli(
users.login as owner,
repos.description as description,
repos.stargazers_count,
releases.tag_name,
max(releases.created_at) as latest_release_at,
pypi_versions.name,
max(pypi_releases.upload_time) as latest_release_at,
repos.created_at as created_at,
datasette_repos.openGraphImageUrl,
datasette_repos.usesCustomOpenGraphImage,
Expand Down Expand Up @@ -224,7 +224,8 @@ def cli(
from
datasette_repos
join repos on datasette_repos.id = repos.node_id
join releases on repos.id = releases.repo
left join pypi_releases on pypi_releases.package = repos.name
left join pypi_versions on pypi_releases.version = pypi_versions.id
join users on users.id = repos.owner
where
datasette_repos.nameWithOwner in (
Expand All @@ -236,7 +237,7 @@ def cli(
group by
repos.id
order by
latest_release_at desc
latest_release_at desc;
""".format(
repo_table=repo_table
).strip(),
Expand Down
1 change: 1 addition & 0 deletions plugin_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@
- simonw/datasette-packages
- simonw/datasette-auth0
- simonw/datasette-hovercards
- rclement/datasette-dashboards
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test_path "/for/exploratory-analysis"
test_path "/plugins"
test_path "/plugins/datasette-cluster-map"
test_path "/plugins/datasette-geojson"
test_path "/plugins/datasette-dashboard"
test_path "/plugins/datasette-dashboards"
test_path "/tools"
test_path "/tools/shapefile-to-sqlite"
test_path "/news"
Expand Down

0 comments on commit ee3fc29

Please sign in to comment.