From 9fb3b51656ca4dc93168c462f8884857ea4d2c89 Mon Sep 17 00:00:00 2001 From: edfarialand <105104922+edfarialand@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:37:32 -0400 Subject: [PATCH 1/4] Update app.py Idk pogo edit --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 983c624..425c59c 100644 --- a/app.py +++ b/app.py @@ -98,6 +98,8 @@ def write_listing(i, item_index, _exp_count): st.image(listing["photo_urls"]) val_item_type = st.radio("Device", ["bad device"] + PHONES, horizontal=True, key=f"ver_{i}", index=item_index) val_grade = st.radio("Grade", GRADES, horizontal=True, key=f"grade_{i}", index=1) + val_model = st.radio("Model", MODELS, horizontal=True, key=f"model_{i}", index=1) + # Creating columns for different options st.markdown("
Damage
", unsafe_allow_html=True) back_col, cam_col = st.columns(2) @@ -114,6 +116,7 @@ def write_listing(i, item_index, _exp_count): with lock_col: with st.container(border=True): val_lock = st.checkbox("ICloud Lock", key=f"lock_{i}") + st.button("Next", on_click=_next, args=(_exp_count,), key=f"next_{i}", use_container_width=True) # Returning selected values as a dictionary results = { From 105e64b6d1b2c2d449386dfa2874c3150282ec86 Mon Sep 17 00:00:00 2001 From: edfarialand <105104922+edfarialand@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:43:22 -0400 Subject: [PATCH 2/4] Update config.py --- offerup/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/offerup/config.py b/offerup/config.py index 3e928e5..6103ce8 100644 --- a/offerup/config.py +++ b/offerup/config.py @@ -7,7 +7,7 @@ PHONES = list(reversed(["iphone 11", "iphone 12", "iphone 13", "iphone 14", "iphone 15"])) - +MODELS = list(reversed(["Pro", "ProMax", "Reg", "Plus", ""])) if platform.system() == 'Windows': CHROME_DATA_PATH = f"user-data-dir={os.path.expanduser('~')}\\AppData\\Local\\Google\\Chrome\\User Data" else: @@ -52,6 +52,7 @@ def __getitem__(self, item): def _default(cls) -> Self: return cls( valid_iphone_models=PHONES, + valid_iphone_size=MODELS, location=("Atlanta", "Georgia"), listing_limit=30, ) @@ -62,6 +63,7 @@ def _test(cls) -> Self: return cls( # valid_iphone_models=["Gamer Guy Bath water"], valid_iphone_models=PHONES, + valid_iphone_size=MODELS, location=("Atlanta", "Georgia"), listing_limit=10, ) From eca1f8947f226607c2f918b5d05c4db191307847 Mon Sep 17 00:00:00 2001 From: edfarialand <105104922+edfarialand@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:50:54 -0400 Subject: [PATCH 3/4] Update config.py --- offerup/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/offerup/config.py b/offerup/config.py index 6103ce8..acbfad9 100644 --- a/offerup/config.py +++ b/offerup/config.py @@ -7,7 +7,7 @@ PHONES = list(reversed(["iphone 11", "iphone 12", "iphone 13", "iphone 14", "iphone 15"])) -MODELS = list(reversed(["Pro", "ProMax", "Reg", "Plus", ""])) +SIZES = list(reversed(["Pro", "ProMax", "Reg", "Plus", ""])) if platform.system() == 'Windows': CHROME_DATA_PATH = f"user-data-dir={os.path.expanduser('~')}\\AppData\\Local\\Google\\Chrome\\User Data" else: @@ -26,8 +26,9 @@ class Config: loaded = False # dotenv loaded valid_iphone_models: list[str] + valid_sizes: list2[str] location: tuple[str, str] - listing_limit: int + listing_limit: intq chrome_data_path = CHROME_DATA_PATH firefox_data_path = FIREFOX_DATA_PATH @@ -52,7 +53,7 @@ def __getitem__(self, item): def _default(cls) -> Self: return cls( valid_iphone_models=PHONES, - valid_iphone_size=MODELS, + valid_iphone_size=SIZE, location=("Atlanta", "Georgia"), listing_limit=30, ) From caa78e1cf0769bc60b7add2cd4520bbf2b31fc33 Mon Sep 17 00:00:00 2001 From: edfarialand <105104922+edfarialand@users.noreply.github.com> Date: Mon, 19 Aug 2024 09:54:35 -0400 Subject: [PATCH 4/4] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 425c59c..d120465 100644 --- a/app.py +++ b/app.py @@ -98,7 +98,7 @@ def write_listing(i, item_index, _exp_count): st.image(listing["photo_urls"]) val_item_type = st.radio("Device", ["bad device"] + PHONES, horizontal=True, key=f"ver_{i}", index=item_index) val_grade = st.radio("Grade", GRADES, horizontal=True, key=f"grade_{i}", index=1) - val_model = st.radio("Model", MODELS, horizontal=True, key=f"model_{i}", index=1) + val_size = st.radio("Size/Pro", SIZES, horizontal=True, key=f"size_{i}", index=1) # Creating columns for different options st.markdown("
Damage
", unsafe_allow_html=True)