Add scrap to database

This commit is contained in:
Em (Ethan) Ruszanowski 2024-02-28 17:41:40 -05:00
parent 9768d706f2
commit 9b5e1b2045
Signed by: em
GPG key ID: C725D6E571252B96
2 changed files with 3 additions and 11 deletions

11
app.py
View file

@ -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!'
)

View file

@ -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,