
    K7j              	         d Z ddlmZ ddlZddlZddlZddlmZ  ed      Zedz  dz  Z	edz  dz  Z
ej                   ee	      gZ ej                  ed	d	
      Zej                   dk7  rC eej$                  xs ej&                  xs dej                            eej                         	  ej*                  ej&                        ZdZej1                  di       j1                  dg       D ]   Ze eej1                  d      xs d      z  Z" ej1                  d      xs g Zer{ ej                  ej                   ee
      dgd	d	d      Zej                   dk7  rC eej$                  xs ej&                  xs dej                            eej                         esererdndZ ede d ee       de d       yy# e$ r  eej&                          w xY w)ztQuiet daily Apple Health Drive sync.
Prints only when new records were imported, so cron can stay silent otherwise.
    )annotationsN)Pathz%/home/agent/.hermes/assets/Gesundheitscriptszapple_health_drive_sync.pyzhealth_pipeline.pyT)textcapture_outputzApple Health sync failed with importresultsinserted
downloaded	dashboard   )r   r   timeoutzDashboard refresh failed with z; Dashboard aktualisiert zApple Health Sync: z neue Records importiert; z Datei(en) heruntergeladen.) __doc__
__future__r   json
subprocesssyspathlibr   BASESCRIPTPIPELINE
executablestrcmdrunproc
returncodeprintstderrstdout
SystemExitloadsdatar
   getrintr   dash	refreshedlen	Exception     6/home/agent/.hermes/scripts/apple_health_daily_sync.py<module>r0      s   #   34			8	8)22
~~s6{#z~~cT:??a	$++
Z
Z*HHY(Z[
T__
%%
4::dkk"DHXXh#''	26 0Cj).Q//0,'-2Jz~~s~~s8}kJQUfjtwx??a$++bb2PQUQ`Q`Pa0bcT__--:2:.	#H:-GJGXXrs|r}}~  	A   
	$++	
s   /DG G!