From 9b5e1b2045a92ec708c06e6e1f00befe2a41b0a0 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Wed, 28 Feb 2024 17:41:40 -0500 Subject: [PATCH] Add scrap to database --- app.py | 11 +---------- database/database.py | 3 ++- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/app.py b/app.py index f6c0d2c..4929a11 100644 --- a/app.py +++ b/app.py @@ -2,15 +2,6 @@ import streamlit as st import database as db -class Creature: - def __init__(self, name, nickname, power, max_spawns, hits_to_kill): - self.name = name - self.nickname = nickname - self.power = power - self.max_spawns = max_spawns - self.hits_to_kill = hits_to_kill - - class Run: def __init__(self, moon): self.moon = moon @@ -50,7 +41,7 @@ def main(): st.markdown('## Scrap Lookup') scrap_name = st.selectbox( - 'Scrap Name', + 'Scrap', db.get_scrap_list(), placeholder='Select a scrap name!' ) diff --git a/database/database.py b/database/database.py index 58b72bd..ee988f0 100644 --- a/database/database.py +++ b/database/database.py @@ -107,7 +107,8 @@ from moon as m join main.layout l on l.layout_id = m.default_layout_id join main.moon_tier mt on mt.moon_tier_id = m.moon_tier_id where m.moon_id = ? -limit 1;""" +limit 1; +""" moon = cursor.execute( query,