Skip to content

Commit

Permalink
fix api for modversion not working
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed May 26, 2024
1 parent 12829d9 commit 9f9f3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_version(self, version):
cur.execute("SELECT * FROM modversions WHERE mod_id = %s AND version = %s", (self.id, version))
row = cur.fetchone()
if row:
return Modversion(row["id"], row["mod_id"], row["version"], row["md5"], row["created_at"], row["updated_at"], row["filesize"])
return Modversion(row["id"], row["mod_id"], row["version"], row["mcversion"], row["md5"], row["created_at"], row["updated_at"], row["filesize"])
return None

def to_json(self):
Expand Down

0 comments on commit 9f9f3cc

Please sign in to comment.