
    cf                          d dl Z ddlmZ d ZdS )    N   )corec                    | j         }|st          d           t          j        | j                  \  }}|dz   |z   dz   }t          j        |d| j        | j                  }d}|d         D ]k}|d         rad	|v r]|d	         rU|d	= |d
z   }|d
k    r|st          d           |dk    r0|s.t          t          |          dz   |d         d         z              l|r;|dk    r5| j        st          d|           t          j	        ||| j                   dS |r| j        st          d           dS dS t          dt          |          z   dz              dS )z?
    Go through all the boosts and mark them as undeleted.
    zThis is a dry run and nothing will be changed.
Instead, we'll just list what would have happened.
Use --confirmed to actually do it.z.user.z.jsonT)requiredcombinequietr   statusesreblogdeletedr   zSome examples:    urlzSaving updated data to)r   z"No boosted statuses were undeletedzWould have marked z statuses as not deletedN)
	confirmedprintr   parseuserloadr   r   strsave)argsr   usernamedomainstatus_filedatanstatuss           b/home/feoh/.local/pipx/venvs/mastodon-archive/lib/python3.11/site-packages/mastodon_archive/fix.py
fix_boostsr      s   
 I 4 3 	4 	4 	4 DI..Xv8#h.8K9[4:' ' 'D	Az" > >( 	>	V 3 3y8I 3y!AAAvviv&'''Bwwywc!ffslVH%5e%<<=== JQUUz 	9*K888	+t4:666666	 Jz 	8677777	8 	8
 	"SVV+.HHIIIII    )sys r   r    r   r   <module>r#      s@     


      *J *J *J *J *Jr   