mirror of
https://github.com/ethanrusz/scouter.git
synced 2024-11-24 04:27:46 -05:00
Add scrap to database
This commit is contained in:
parent
9768d706f2
commit
9b5e1b2045
2 changed files with 3 additions and 11 deletions
11
app.py
11
app.py
|
@ -2,15 +2,6 @@ import streamlit as st
|
||||||
import database as db
|
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:
|
class Run:
|
||||||
def __init__(self, moon):
|
def __init__(self, moon):
|
||||||
self.moon = moon
|
self.moon = moon
|
||||||
|
@ -50,7 +41,7 @@ def main():
|
||||||
st.markdown('## Scrap Lookup')
|
st.markdown('## Scrap Lookup')
|
||||||
|
|
||||||
scrap_name = st.selectbox(
|
scrap_name = st.selectbox(
|
||||||
'Scrap Name',
|
'Scrap',
|
||||||
db.get_scrap_list(),
|
db.get_scrap_list(),
|
||||||
placeholder='Select a scrap name!'
|
placeholder='Select a scrap name!'
|
||||||
)
|
)
|
||||||
|
|
|
@ -107,7 +107,8 @@ from moon as m
|
||||||
join main.layout l on l.layout_id = m.default_layout_id
|
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
|
join main.moon_tier mt on mt.moon_tier_id = m.moon_tier_id
|
||||||
where m.moon_id = ?
|
where m.moon_id = ?
|
||||||
limit 1;"""
|
limit 1;
|
||||||
|
"""
|
||||||
|
|
||||||
moon = cursor.execute(
|
moon = cursor.execute(
|
||||||
query,
|
query,
|
||||||
|
|
Loading…
Reference in a new issue