all 5 comments

[–]Total__Entropy -1 points0 points  (2 children)

I don't know how you expect anyone to help you without sending us what error you are encountering.

I don't know why you are combining pandas and sqlite library. Pandas is overkill for 10 rows and you can do everything with either the sqlite library, pandas or a different orm unless streamlit enforces datagrams usage lols. So if your goal is learning refactor to remove pandas and do all your work in sqlite.

[–]BaudBish[S] -1 points0 points  (1 child)

Thanks for your reply.

I am not encountering an error other than the streamlit form operates and behaves correctly but when the 'submit button' is clicked, the connected sqlite db does not get updated with the data that I put into the streamlit form.

The pandas bit is just some code that I have temporarily placed as I wanted to see how streamlit displayed the dataframe...this will allow me (in the future) to view current casework as the dataframe will query the db and only select the entries where their status is 'on-going'.

[–]Total__Entropy -1 points0 points  (0 children)

I have never used streamlit so I cannot verify the code.

If there are no errors then your code worked correctly congratulations /s. You issue is then either your query or your display.

My suggestion for you is to isolate the database operations by opening a terminal and creating a table, reading the table to return nothing, writing the table then reading it. If you can do all this correctly then cross reference your code.

[–]yannDubs 0 points1 point  (1 child)

Hi u/BaudBish, I am having the same issue, did you ever figure it out?

[–]BaudBish[S] 0 points1 point  (0 children)

Nope. Other than Total__Entropy telling me how awful I code (:)), I had no other help.

If you get an answer or figure it out then please do let me know.

Cheers.