Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: artygo8/streamlit-sqlalchemy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.2.2
Choose a base ref
...
head repository: artygo8/streamlit-sqlalchemy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on May 29, 2024

  1. fix: except_column failing with foreign keys

    ```
    Traceback (most recent call last):
      File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
        exec(code, module.__dict__)
    File "/home/agossuin/...", line 42, in my_class_view
        MyClass.st_crud_tabs(
      File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 288, in st_crud_tabs
        cls.st_update_select_form(
      File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 228, in st_update_select_form
        if selected_obj_to_update.st_update_form(
      File "/home/agossuin/.local/lib/python3.10/site-packages/streamlit_sqlalchemy/mixin.py", line 582, in st_update_form
        kwargs[field] = kwargs[field].id
    AttributeError: 'int' object has no attribute 'id'
    ```
    
    + small typehinting addition
    artygo8 committed May 29, 2024
    Configuration menu
    Copy the full SHA
    bc082fb View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. fix: allow using None for foreign keys

    ```
    AttributeError: 'NoneType' object has no attribute 'id'
    ```
    
    If it were to fail, it should be on the DB side, not in the library.
    artygo8 committed May 30, 2024
    Configuration menu
    Copy the full SHA
    94e5fe1 View commit details
    Browse the repository at this point in the history
Loading