Skip to content

Commit

Permalink
Merge pull request #89 from Thorfusion/main
Browse files Browse the repository at this point in the history
update dev
  • Loading branch information
maggi373 authored Oct 16, 2024
2 parents 11437dd + c7913c0 commit 2674b49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions models/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ def get_marked_build():
def get_modversions_api(self, tag: str):
conn = Database.get_connection()
cursor = conn.cursor(dictionary=True)
if tag == "OPTIONAL":
if tag == "optional":
cursor.execute(
"""SELECT modversions.id, modversions.mod_id, modversions.version, modversions.mcversion, modversions.md5, modversions.created_at, modversions.updated_at, modversions.filesize, mods.name AS modname, build_modversion.optional
FROM modversions
INNER JOIN build_modversion ON modversions.id = build_modversion.modversion_id JOIN mods ON modversions.mod_id = mods.id
WHERE build_modversion.build_id = %s AND build_modversion.optional = 1 AND mods.side IN ('CLIENT','BOTH')
WHERE build_modversion.build_id = %s AND mods.side IN ('CLIENT','BOTH')
""", (self.id,))
elif tag == "SERVER":
elif tag == "server":
cursor.execute(
"""SELECT modversions.id, modversions.mod_id, modversions.version, modversions.mcversion, modversions.md5, modversions.created_at, modversions.updated_at, modversions.filesize, mods.name AS modname, build_modversion.optional
FROM modversions
Expand Down
2 changes: 1 addition & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from models.database import Database

## Solderpy version
solderpy_version = "1.5.1"
solderpy_version = "1.5.2"

load_dotenv(".env")

Expand Down

0 comments on commit 2674b49

Please sign in to comment.