Skip to content

Commit

Permalink
Fix dsc ls crashes on initial load when unlisted
Browse files Browse the repository at this point in the history
releases are present and db select where clause includes a "None"
string.
  • Loading branch information
JOJ0 committed Nov 12, 2024
1 parent 40cfa23 commit 20850bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discodos/model/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ def get_sales_listing_details(self, listing_id):
Always returns a dict, not Row.
"""
if not listing_id:
listing_id = "NULL"
where = f"d_sales_listing_id == {listing_id}"

rows = self._select_simple(
Expand Down

0 comments on commit 20850bb

Please sign in to comment.