Skip to content

Commit

Permalink
proper fix for setup isse introduced in 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed Aug 15, 2024
1 parent 167b756 commit 8609c68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions asite.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def allowed_file(filename):
def inject_menu():

markedbuildid2 = Build.get_marked_build()
if markedbuildid2 == None:
markedbuildid2 = 0
pinnedmodpacks = Modpack.get_by_pinned()

return dict(markedbuildid2=markedbuildid2, solderversion=solderpy_version, pinnedmodpacks=pinnedmodpacks)
Expand Down
4 changes: 2 additions & 2 deletions models/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def get_marked_build():
conn = Database.get_connection()
cur = conn.cursor(dictionary=True)
cur.execute("SELECT id FROM builds WHERE marked = 1")
build_id = cur.fetchone()["id"]
build_id = cur.fetchone()
if build_id:
return (build_id)
return None
return 0

def get_modversions_minimal(self):
conn = Database.get_connection()
Expand Down
2 changes: 1 addition & 1 deletion models/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from dotenv import load_dotenv

## Solderpy version
solderpy_version = "1.4.1"
solderpy_version = "1.4.2"

load_dotenv(".env")

Expand Down

0 comments on commit 8609c68

Please sign in to comment.