File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,13 @@ def upload( # noqa: C901,PLR0913
159159 ts .save ()
160160 logger .debug (f"ThumbnailSource { ts .uuid } created for file { uploaded_file .uuid } " )
161161
162- # create jobs
163- uploaded_file .create_jobs ()
164-
165162 # get file using the manager so the returned object has annotations
166163 uploaded_file = BaseFile .bmanager .get (uuid = uploaded_file .uuid )
167164
165+ # create jobs
166+ uploaded_file .create_jobs ()
167+ uploaded_file .refresh_from_db ()
168+
168169 # all good
169170 return 201 , {"bma_response" : uploaded_file , "message" : f"File { uploaded_file .uuid } uploaded OK!" }
170171
Original file line number Diff line number Diff line change @@ -975,7 +975,6 @@ def test_file_list_view_attribution_filters(self) -> None:
975975 self .assert_file_list_rows (24 , qs = "?attribution__icontains=foto" )
976976 self .assert_file_list_rows (0 , qs = "?attribution__icontains=notthere" )
977977 self .assert_file_list_rows (1 , qs = "?attribution__icontains=fotofonzy" )
978- self .assert_file_list_rows (1 , qs = "?attribution=fotoflummer" )
979978
980979 def test_file_list_view_license_filters (self ) -> None :
981980 """Test the license filter of the file list view."""
You can’t perform that action at this time.
0 commit comments