Skip to content

Commit

Permalink
Fix small bug forgot argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkuip committed Sep 3, 2024
1 parent 34c4f09 commit b3c356e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_by_modpack(modpack):
return [Build(**build) for build in builds]
flash("unable to get modpack", "error")
return []

@staticmethod
def get_by_modpack_cid(modpack, cid):
conn = Database.get_connection()
Expand All @@ -142,7 +142,7 @@ def get_by_modpack_cid(modpack, cid):
WHERE modpack_id = %s
AND is_published = 1 AND (private = 0 OR modpack_id IN (SELECT modpack_id FROM client_modpack cm JOIN clients c ON cm.client_id = c.id WHERE c.uuid = %s))
ORDER BY builds.id DESC
""", (modpack.id,))
""", (modpack.id, cid))
builds = cursor.fetchall()
if builds:
return [Build(**build) for build in builds]
Expand Down

0 comments on commit b3c356e

Please sign in to comment.