diff --git a/app/musicmuster.py b/app/musicmuster.py index ed912f5..f19e82e 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -914,8 +914,6 @@ class Window(QMainWindow, Ui_MainWindow): plr.playlist_id = dst_playlist_id plr.row_number = row row += 1 - # Need to commit each row individually else only one row - # gets updated (don't know why) session.commit() diff --git a/poetry.lock b/poetry.lock index b29dfe2..f73ca82 100644 --- a/poetry.lock +++ b/poetry.lock @@ -182,6 +182,24 @@ parso = ">=0.8.0,<0.9.0" qa = ["flake8 (==3.8.3)", "mypy (==0.782)"] testing = ["Django (<3.1)", "colorama", "docopt", "pytest (<7.0.0)"] +[[package]] +name = "line-profiler" +version = "4.0.2" +description = "Line-by-line profiler" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.extras] +all = ["pytest", "pytest-cov", "coverage", "ubelt", "cython", "scikit-build", "cmake", "ninja", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel", "ipython", "ipython"] +all-strict = ["pytest (==4.6.11)", "pytest-cov (==2.10.1)", "coverage[toml] (==5.3)", "ubelt (==1.0.1)", "Cython (==3.0.0a11)", "scikit-build (==0.11.1)", "cmake (==3.21.2)", "ninja (==1.10.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.8.1)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)", "IPython (==0.13)", "IPython (==0.13)"] +build = ["cython", "scikit-build", "cmake", "ninja", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel", "cibuildwheel"] +build-strict = ["Cython (==3.0.0a11)", "scikit-build (==0.11.1)", "cmake (==3.21.2)", "ninja (==1.10.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.8.1)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)", "cibuildwheel (==2.11.2)"] +ipython-strict = ["IPython (==0.13)", "IPython (==0.13)"] +ipython = ["ipython", "ipython"] +tests = ["pytest", "pytest-cov", "coverage", "ubelt", "ipython", "ipython"] +tests-strict = ["pytest (==4.6.11)", "pytest-cov (==2.10.1)", "coverage[toml] (==5.3)", "ubelt (==1.0.1)", "IPython (==0.13)", "IPython (==0.13)"] + [[package]] name = "mako" version = "1.2.0" @@ -716,7 +734,7 @@ python-versions = "*" [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "0fdda77377246e18b5e85459fa2c26173f14467f32e71c576b30fa0899ced8b0" +content-hash = "8a7dd5f873d901ffbe422d010464bcc8bb2acfa79329a95e4f18f213e120b5a7" [metadata.files] alembic = [ @@ -828,6 +846,7 @@ jedi = [ {file = "jedi-0.18.1-py2.py3-none-any.whl", hash = "sha256:637c9635fcf47945ceb91cd7f320234a7be540ded6f3e99a50cb6febdfd1ba8d"}, {file = "jedi-0.18.1.tar.gz", hash = "sha256:74137626a64a99c8eb6ae5832d99b3bdd7d29a3850fe2aa80a4126b2a7d949ab"}, ] +line-profiler = [] mako = [ {file = "Mako-1.2.0-py3-none-any.whl", hash = "sha256:23aab11fdbbb0f1051b93793a58323ff937e98e34aece1c4219675122e57e4ba"}, {file = "Mako-1.2.0.tar.gz", hash = "sha256:9a7c7e922b87db3686210cf49d5d767033a41d4010b284e747682c92bddd8b39"}, diff --git a/pyproject.toml b/pyproject.toml index a03b648..b263cb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ mypy = "^0.931" pytest = "^7.0.1" pytest-qt = "^4.0.2" pydub-stubs = "^0.25.1" +line-profiler = "^4.0.2" [build-system] requires = ["poetry-core>=1.0.0"]