endoreg-db 0.8.5.6__py3-none-any.whl → 0.8.5.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of endoreg-db might be problematic. Click here for more details.

@@ -547,7 +547,13 @@ class VideoFile(models.Model):
547
547
  self.sensitive_meta = SensitiveMeta.create_from_dict(default_data)
548
548
 
549
549
  # CRITICAL FIX: Delete RAW video file, not the processed (anonymized) one
550
- # After validation, only the anonymized video should remain
550
+ # CRITICAL: Update metadata BEFORE deleting raw video
551
+ # Metadata update may trigger frame extraction, which needs raw video
552
+ sensitive_meta = _update_text_metadata(
553
+ self, extracted_data_dict, overwrite=True
554
+ )
555
+
556
+ # After validation and metadata update, only the anonymized video should remain
551
557
  from .video_file_io import _get_raw_file_path
552
558
 
553
559
  raw_path = _get_raw_file_path(self)
@@ -563,11 +569,6 @@ class VideoFile(models.Model):
563
569
  else:
564
570
  logger.warning(f"Raw video file not found for deletion: {self.uuid}")
565
571
 
566
- # Update sensitive metadata with user annotations
567
- sensitive_meta = _update_text_metadata(
568
- self, extracted_data_dict, overwrite=True
569
- )
570
-
571
572
  if sensitive_meta:
572
573
  # Mark as processed after validation
573
574
  self.get_or_create_state().mark_sensitive_meta_processed(save=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: endoreg-db
3
- Version: 0.8.5.6
3
+ Version: 0.8.5.7
4
4
  Summary: EndoReg Db Django App
5
5
  Project-URL: Homepage, https://info.coloreg.de
6
6
  Project-URL: Repository, https://github.com/wg-lux/endoreg-db
@@ -390,7 +390,7 @@ endoreg_db/models/media/video/create_from_file.py,sha256=3n4bbzFteEOFDUuEikP0x-S
390
390
  endoreg_db/models/media/video/pipe_1.py,sha256=ljO3vO2mqqTXLZsKjzMTC6-sW4JRWMVRfJcK0n5CjKg,9740
391
391
  endoreg_db/models/media/video/pipe_2.py,sha256=DnMxW0uOqSsf7-0n9Rlvn7u89U4Jpkv7n6hFpQfUjkQ,4964
392
392
  endoreg_db/models/media/video/refactor_plan.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
393
- endoreg_db/models/media/video/video_file.py,sha256=TULxjYp2vY-uQkSIAACkDY_cXIyApqFM9iQeojKQXuQ,30179
393
+ endoreg_db/models/media/video/video_file.py,sha256=VFRgP1QRtuxzE9l74tCW7Kz5leHdv5d5i3aqtH3Y1vA,30281
394
394
  endoreg_db/models/media/video/video_file_ai.py,sha256=3ABea52FOF1qlrlxHdYhz_M3Kmqfzqtgq7M0prl-FAo,18819
395
395
  endoreg_db/models/media/video/video_file_anonymize.py,sha256=pet1UfSsbSHJJZxq6gDPifAfBWpGyEpD1jEQuSQi0Gg,16027
396
396
  endoreg_db/models/media/video/video_file_frames.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -789,7 +789,7 @@ endoreg_db/views/video/video_meta.py,sha256=C1wBMTtQb_yzEUrhFGAy2UHEWMk_CbU75WXX
789
789
  endoreg_db/views/video/video_processing_history.py,sha256=mhFuS8RG5GV8E-lTtuD0qrq-bIpnUFp8vy9aERfC-J8,770
790
790
  endoreg_db/views/video/video_remove_frames.py,sha256=2FmvNrSPM0fUXiBxINN6vBUUDCqDlBkNcGR3WsLDgKo,1696
791
791
  endoreg_db/views/video/video_stream.py,sha256=kLyuf0ORTmsLeYUQkTQ6iRYqlIQozWhMMR3Lhfe_trk,12148
792
- endoreg_db-0.8.5.6.dist-info/METADATA,sha256=VAc2EkiO9Qd6M1YOZTSu8piH-Ik7zlGHXdgbYmHzqtE,14719
793
- endoreg_db-0.8.5.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
794
- endoreg_db-0.8.5.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
795
- endoreg_db-0.8.5.6.dist-info/RECORD,,
792
+ endoreg_db-0.8.5.7.dist-info/METADATA,sha256=3nTdLbv6Vj_I9YWKWlBG7SeQpLu5kQdiKaTQ2mcVIXU,14719
793
+ endoreg_db-0.8.5.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
794
+ endoreg_db-0.8.5.7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
795
+ endoreg_db-0.8.5.7.dist-info/RECORD,,