Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dev #89

Merged
merged 5 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_minimal(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