
    Fkhl                     :    S SK Jr  S SKJr  S SKr " S S\5      rg)    )BaseCommand)	UserImageNc                       \ rS rSrSrS rSrg)Command   zGFix UserImage.image_path to only store the filename (not the full path)c                 n   Sn[         R                  R                  5        HY  n[        R                  R                  UR                  5      nUR                  U:w  d  M>  XTl        UR                  5         US-  nM[     U R                  R                  U R                  R                  SU S35      5        g )Nr      zUpdated z UserImage records.)r   objectsallospathbasename
image_pathsavestdoutwritestyleSUCCESS)selfargsoptionsupdatedimgfilenames         iC:\Users\yash\Desktop\facial_attendance_system-main\attendance\management\commands\fix_userimage_paths.pyhandleCommand.handle   s    $$((*Cww''7H~~)!)
1 + 	$**,,xy@S-TUV     N)__name__
__module____qualname____firstlineno__helpr   __static_attributes__r   r   r   r   r      s    TDWr   r   )django.core.management.baser   attendance.modelsr   r   r   r   r   r   <module>r(      s    3 ' 	Wk Wr   