python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 1715010 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2834350) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2834350) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899211 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2834350'] with mtr_portfolio_ids : ['22899211'] and first list_photo_ids : [] new path : /proc/1715010/ Name: python3 Umask: 0002 State: R (running) Tgid: 1715010 Ngid: 0 Pid: 1715010 PPid: 1715009 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1715010 NSpid: 1715010 NSpgid: 1712675 NSsid: 1712675 VmPeak: 1107220 kB VmSize: 1107220 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97716 kB VmRSS: 97716 kB RssAnon: 60180 kB RssFile: 37536 kB RssShmem: 0 kB VmData: 865968 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 65 nonvoluntary_ctxt_switches: 158 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1715010', 'Ngid': '0', 'Pid': '1715010', 'PPid': '1715009', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1715010', 'NSpid': '1715010', 'NSpgid': '1712675', 'NSsid': '1712675', 'VmPeak': '1107220 kB', 'VmSize': '1107220 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97716 kB', 'VmRSS': '97716 kB', 'RssAnon': '60180 kB', 'RssFile': '37536 kB', 'RssShmem': '0 kB', 'VmData': '865968 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '65', 'nonvoluntary_ctxt_switches': '158'} ('datou_batch_current', '1715010', '1107220', '0', '1107220', '865968', '97716', b'', 'marlene', '2834350') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22899211) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2834350 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22899211) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357748365, 'portfolio_id': 22899211}, {'photo_id': 1357748334, 'portfolio_id': 22899211}, {'photo_id': 1357748331, 'portfolio_id': 22899211}, {'photo_id': 1357748329, 'portfolio_id': 22899211}, {'photo_id': 1357748325, 'portfolio_id': 22899211}, {'photo_id': 1357748323, 'portfolio_id': 22899211}, {'photo_id': 1357748234, 'portfolio_id': 22899211}, {'photo_id': 1357748232, 'portfolio_id': 22899211}, {'photo_id': 1357748229, 'portfolio_id': 22899211}, {'photo_id': 1357748224, 'portfolio_id': 22899211}, {'photo_id': 1357748215, 'portfolio_id': 22899211}, {'photo_id': 1357748181, 'portfolio_id': 22899211}, {'photo_id': 1357748178, 'portfolio_id': 22899211}, {'photo_id': 1357748171, 'portfolio_id': 22899211}, {'photo_id': 1357748157, 'portfolio_id': 22899211}, {'photo_id': 1357748154, 'portfolio_id': 22899211}, {'photo_id': 1357748149, 'portfolio_id': 22899211}, {'photo_id': 1357748145, 'portfolio_id': 22899211}, {'photo_id': 1357748143, 'portfolio_id': 22899211}, {'photo_id': 1357748119, 'portfolio_id': 22899211}, {'photo_id': 1357748116, 'portfolio_id': 22899211}, {'photo_id': 1357748113, 'portfolio_id': 22899211}, {'photo_id': 1357748110, 'portfolio_id': 22899211}, {'photo_id': 1357748107, 'portfolio_id': 22899211}, {'photo_id': 1357747994, 'portfolio_id': 22899211}, {'photo_id': 1357747992, 'portfolio_id': 22899211}, {'photo_id': 1357747989, 'portfolio_id': 22899211}, {'photo_id': 1357747943, 'portfolio_id': 22899211}, {'photo_id': 1357747941, 'portfolio_id': 22899211}, {'photo_id': 1357747939, 'portfolio_id': 22899211}, {'photo_id': 1357747917, 'portfolio_id': 22899211}, {'photo_id': 1357747916, 'portfolio_id': 22899211}, {'photo_id': 1357747914, 'portfolio_id': 22899211}, {'photo_id': 1357747912, 'portfolio_id': 22899211}, {'photo_id': 1357747910, 'portfolio_id': 22899211}, {'photo_id': 1357747907, 'portfolio_id': 22899211}, {'photo_id': 1357747882, 'portfolio_id': 22899211}, {'photo_id': 1357747880, 'portfolio_id': 22899211}, {'photo_id': 1357747878, 'portfolio_id': 22899211}, {'photo_id': 1357747875, 'portfolio_id': 22899211}, {'photo_id': 1357747873, 'portfolio_id': 22899211}, {'photo_id': 1357747841, 'portfolio_id': 22899211}, {'photo_id': 1357747840, 'portfolio_id': 22899211}, {'photo_id': 1357747838, 'portfolio_id': 22899211}, {'photo_id': 1357747800, 'portfolio_id': 22899211}, {'photo_id': 1357747784, 'portfolio_id': 22899211}, {'photo_id': 1357747782, 'portfolio_id': 22899211}, {'photo_id': 1357747757, 'portfolio_id': 22899211}, {'photo_id': 1357747755, 'portfolio_id': 22899211}, {'photo_id': 1357747753, 'portfolio_id': 22899211}, {'photo_id': 1357747721, 'portfolio_id': 22899211}, {'photo_id': 1357747718, 'portfolio_id': 22899211}, {'photo_id': 1357747715, 'portfolio_id': 22899211}, {'photo_id': 1357747712, 'portfolio_id': 22899211}, {'photo_id': 1357747708, 'portfolio_id': 22899211}, {'photo_id': 1357747704, 'portfolio_id': 22899211}, {'photo_id': 1357747673, 'portfolio_id': 22899211}, {'photo_id': 1357747662, 'portfolio_id': 22899211}] map_portfolio_id_photo_id: {22899211: [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143, 1357748119, 1357748116, 1357748113, 1357748110, 1357748107, 1357747994, 1357747992, 1357747989, 1357747943, 1357747941, 1357747939, 1357747917, 1357747916, 1357747914, 1357747912, 1357747910, 1357747907, 1357747882, 1357747880, 1357747878, 1357747875, 1357747873, 1357747841, 1357747840, 1357747838, 1357747800, 1357747784, 1357747782, 1357747757, 1357747755, 1357747753, 1357747721, 1357747718, 1357747715, 1357747712, 1357747708, 1357747704, 1357747673, 1357747662]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.019014596939086914 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue May 13 08:01:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22899211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 22899211 get user id for portfolio 22899211 get sub ptf for main ptf 22899211, type 3726 and hashtags ['autre_refus', 'flou', 'kraft', 'papier', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'mal_croppe', 'plastique', 'Carton_brun', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','kraft','papier','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','kraft','papier','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22899211, 'sub_port_id': 22899227, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284235, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'metal': {'main_port_id': 22899211, 'sub_port_id': 22899228, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284236, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'papier': {'main_port_id': 22899211, 'sub_port_id': 22899229, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284237, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'environnement': {'main_port_id': 22899211, 'sub_port_id': 22899230, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284238, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'autre_refus': {'main_port_id': 22899211, 'sub_port_id': 22899231, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284239, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'flou': {'main_port_id': 22899211, 'sub_port_id': 22899232, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284240, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'Carton_gris': {'main_port_id': 22899211, 'sub_port_id': 22899233, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284241, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'Carton_brun': {'main_port_id': 22899211, 'sub_port_id': 22899234, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284242, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'plastique': {'main_port_id': 22899211, 'sub_port_id': 22899235, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284243, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'mal_croppe': {'main_port_id': 22899211, 'sub_port_id': 22899236, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284244, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'kraft': {'main_port_id': 22899211, 'sub_port_id': 22899237, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284245, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}, 'cartonnette': {'main_port_id': 22899211, 'sub_port_id': 22899238, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284246, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899227 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899227) result : ((1357747890,), (1357747891,), (1357748193,), (1357748194,), (1357748195,), (1357763795,), (1357763796,), (1357763797,), (1357763798,), (1357763799,), (1357763800,), (1357763990,), (1357764138,), (1357764344,), (1357764714,), (1357764715,), (1357764716,), (1357764858,), (1357764859,), (1357764860,), (1357764861,), (1357764862,), (1357765039,), (1357765040,), (1357765168,), (1357765169,), (1357765348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899228 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899228) result : ((1357764349,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899229 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899230 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899231 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899231) result : ((1357756974,), (1357764345,), (1357764717,), (1357764718,), (1357764864,), (1357764865,), (1357764866,), (1357764867,), (1357765349,), (1357775324,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899232 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899233 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899233) result : ((1357747961,), (1357748197,), (1357748198,), (1357763801,), (1357764868,), (1357765170,), (1357765351,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899234 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899234) result : ((1357763804,), (1357764347,), (1357764501,), (1357764721,), (1357764871,), (1357764872,), (1357765043,), (1357765171,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899235 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899235) result : ((1357763806,), (1357763807,), (1357764723,), (1357764873,), (1357764874,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899236 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899236) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899237 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22899238 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22899211 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899238) result : ((1357747963,), (1357747964,), (1357748200,), (1357748201,), (1357756975,), (1357763802,), (1357763991,), (1357763992,), (1357764346,), (1357764720,), (1357764870,), (1357765042,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22899211) result : ((1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1357747800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','kraft','papier','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','flou','kraft','papier','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22899211, 'sub_port_id': 22899239, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284247, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'metal': {'main_port_id': 22899211, 'sub_port_id': 22899240, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284248, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'papier': {'main_port_id': 22899211, 'sub_port_id': 22899241, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284249, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'environnement': {'main_port_id': 22899211, 'sub_port_id': 22899242, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284250, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'autre_refus': {'main_port_id': 22899211, 'sub_port_id': 22899243, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284251, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'flou': {'main_port_id': 22899211, 'sub_port_id': 22899244, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284252, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'Carton_gris': {'main_port_id': 22899211, 'sub_port_id': 22899245, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284253, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'Carton_brun': {'main_port_id': 22899211, 'sub_port_id': 22899246, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284254, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'plastique': {'main_port_id': 22899211, 'sub_port_id': 22899247, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284255, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'mal_croppe': {'main_port_id': 22899211, 'sub_port_id': 22899248, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284256, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'kraft': {'main_port_id': 22899211, 'sub_port_id': 22899249, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284257, 'last_updated_at': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 12, 23, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}, 'cartonnette': {'main_port_id': 22899211, 'sub_port_id': 22899250, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15284258, 'last_updated_at': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 13, 6, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 12, 23, 47, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22899250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22899238 lien utilise dans velours : https://www.fotonower.com/velours/22899239,22899240,22899241,22899242,22899243,22899244,22899245,22899246,22899247,22899248,22899249,22899250?tags=Teint_Dans_La_Masse,metal,papier,environnement,autre_refus,flou,Carton_gris,Carton_brun,plastique,mal_croppe,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22899211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] map_info['map_portfolio_photo'] : {22899211: [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143, 1357748119, 1357748116, 1357748113, 1357748110, 1357748107, 1357747994, 1357747992, 1357747989, 1357747943, 1357747941, 1357747939, 1357747917, 1357747916, 1357747914, 1357747912, 1357747910, 1357747907, 1357747882, 1357747880, 1357747878, 1357747875, 1357747873, 1357747841, 1357747840, 1357747838, 1357747800, 1357747784, 1357747782, 1357747757, 1357747755, 1357747753, 1357747721, 1357747718, 1357747715, 1357747712, 1357747708, 1357747704, 1357747673, 1357747662]} final : False mtd_id 4302 list_pids : [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] Looping around the photos to save general results len do output : 1 /22899211. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22899211', "{'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238}", None, None, None, None, '2834350'), ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350')] time used for this insertion : 0.2044847011566162 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7011473178863525 time spend to save output : 0.2048325538635254 total time spend for step 1 : 0.9059798717498779 step2:final Tue May 13 08:01:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22899211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 22899211 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357747673,1357747662,1357747721,1357747718,1357747715,1357747712,1357747708,1357747704,1357747757,1357747755,1357747753,1357747800,1357747784,1357747782,1357747841,1357747840,1357747838,1357747882,1357747880,1357747878,1357747875,1357747873,1357747917,1357747916,1357747914,1357747912,1357747910,1357747907,1357747943,1357747941,1357747939,1357747994,1357747992,1357747989,1357748119,1357748116,1357748113,1357748110,1357748107,1357748157,1357748154,1357748149,1357748145,1357748143,1357748181,1357748178,1357748171,1357748234,1357748232,1357748229,1357748224,1357748215,1357748334,1357748331,1357748329,1357748325,1357748323,1357748365); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22899211]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} new output for save of step final : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] map_info['map_portfolio_photo'] : {22899211: [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143, 1357748119, 1357748116, 1357748113, 1357748110, 1357748107, 1357747994, 1357747992, 1357747989, 1357747943, 1357747941, 1357747939, 1357747917, 1357747916, 1357747914, 1357747912, 1357747910, 1357747907, 1357747882, 1357747880, 1357747878, 1357747875, 1357747873, 1357747841, 1357747840, 1357747838, 1357747800, 1357747784, 1357747782, 1357747757, 1357747755, 1357747753, 1357747721, 1357747718, 1357747715, 1357747712, 1357747708, 1357747704, 1357747673, 1357747662]} final : False mtd_id 4302 list_pids : [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] Looping around the photos to save general results len do output : 19 /1357748365.Didn't retrieve data . /1357748334.Didn't retrieve data . /1357748331.Didn't retrieve data . /1357748329.Didn't retrieve data . /1357748325.Didn't retrieve data . /1357748323.Didn't retrieve data . /1357748234.Didn't retrieve data . /1357748232.Didn't retrieve data . /1357748229.Didn't retrieve data . /1357748224.Didn't retrieve data . /1357748215.Didn't retrieve data . /1357748181.Didn't retrieve data . /1357748178.Didn't retrieve data . /1357748171.Didn't retrieve data . /1357748157.Didn't retrieve data . /1357748154.Didn't retrieve data . /1357748149.Didn't retrieve data . /1357748145.Didn't retrieve data . /1357748143.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22899211', '1357748365', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748334', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748331', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748329', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748325', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748323', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748234', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748232', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748229', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748224', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748215', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748181', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748178', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748171', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748157', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748154', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748149', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748145', '0.04102203537463978', None, None, None, None, '2834350'), ('4302', '22899211', '1357748143', '0.04102203537463978', None, None, None, None, '2834350')] time used for this insertion : 0.08206725120544434 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.25298094749450684 time spend to save output : 0.08297967910766602 total time spend for step 2 : 0.33596062660217285 step3:velours_tree Tue May 13 08:01:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22899211: [{'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238}]} input_args_next_step : {22899211: ()} output_args : {22899211: [{'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238}]} args : 22899211 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22899211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22899211]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.3238065242767334 time spend to save output : 0.0593571662902832 total time spend for step 3 : 0.3831636905670166 step4:send_mail_cod Tue May 13 08:01:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} input_args_next_step : {1357748365: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748365 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748334 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748331 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748329 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748325 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748323 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748234 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748232 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748229 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748224 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748215 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748181 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748178 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748171 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748157 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748154 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748149 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748145 depend.output_id : 0 input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ()} output_args : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',)} args : 1357748143 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22899211: [{'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238}]} input_args_next_step : {1357748365: ('0.04102203537463978',), 1357748334: ('0.04102203537463978',), 1357748331: ('0.04102203537463978',), 1357748329: ('0.04102203537463978',), 1357748325: ('0.04102203537463978',), 1357748323: ('0.04102203537463978',), 1357748234: ('0.04102203537463978',), 1357748232: ('0.04102203537463978',), 1357748229: ('0.04102203537463978',), 1357748224: ('0.04102203537463978',), 1357748215: ('0.04102203537463978',), 1357748181: ('0.04102203537463978',), 1357748178: ('0.04102203537463978',), 1357748171: ('0.04102203537463978',), 1357748157: ('0.04102203537463978',), 1357748154: ('0.04102203537463978',), 1357748149: ('0.04102203537463978',), 1357748145: ('0.04102203537463978',), 1357748143: ('0.04102203537463978',), 22899211: ()} output_args : {22899211: [{'Teint_Dans_La_Masse': 22899227, 'metal': 22899228, 'papier': 22899229, 'environnement': 22899230, 'autre_refus': 22899231, 'flou': 22899232, 'Carton_gris': 22899233, 'Carton_brun': 22899234, 'plastique': 22899235, 'mal_croppe': 22899236, 'kraft': 22899237, 'cartonnette': 22899238}]} args : 22899211 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :20, first value : ('0.04102203537463978',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22899211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1357748365,1357748334,1357748331,1357748329,1357748325,1357748323,1357748234,1357748232,1357748229,1357748224,1357748215,1357748181,1357748178,1357748171,1357748157,1357748154,1357748149,1357748145,1357748143) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357748143 begin to download photo : 1357748157 begin to download photo : 1357748215 begin to download photo : 1357748234 begin to download photo : 1357748331 download finish for photo 1357748215 begin to download photo : 1357748224 download finish for photo 1357748157 begin to download photo : 1357748171 download finish for photo 1357748234 begin to download photo : 1357748323 download finish for photo 1357748143 begin to download photo : 1357748145 download finish for photo 1357748224 begin to download photo : 1357748229 download finish for photo 1357748171 begin to download photo : 1357748178 download finish for photo 1357748331 begin to download photo : 1357748334 download finish for photo 1357748323 begin to download photo : 1357748325 download finish for photo 1357748229 begin to download photo : 1357748232 download finish for photo 1357748178 begin to download photo : 1357748181 download finish for photo 1357748334 begin to download photo : 1357748365 download finish for photo 1357748325 begin to download photo : 1357748329 download finish for photo 1357748181 download finish for photo 1357748232 download finish for photo 1357748365 download finish for photo 1357748329 download finish for photo 1357748145 begin to download photo : 1357748149 download finish for photo 1357748149 begin to download photo : 1357748154 download finish for photo 1357748154 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22899211_13-05-2025_08_01_31.pdf 22899228 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357764349: '1747101637_899567_1357747914_713a48bcee6d8082158b0605b33062d7_rle_crop_3794648150_0.png'} change filename to text .imagette228992281747116091/ imagette228992281747116091/1747101637_899567_1357747914_713a48bcee6d8082158b0605b33062d7_rle_crop_3794648150_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/e90d1c423d287fc3f7907d6c784c42de_95863231.png imagette228992281747116091 22899231 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357756974: '1747092635_457909_1357747882_ec7f069ffb7055d3ec182fa0f9fe67ab_rle_crop_3794622335_0.png', 1357764345: '1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648134_0.png', 1357764717: '1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649675_0.png', 1357764718: '1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649694_0.png', 1357764864: '1747102537_949637_1357748116_1529b636a49bcf70012affda0381bbb3_rle_crop_3794650461_0.png', 1357764865: '1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650491_0.png', 1357764866: '1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650502_0.png', 1357764867: '1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650506_0.png', 1357765349: '1747103438_993757_1357748229_ffa2f0e82835efaca436965b18e03917_rle_crop_3794653680_0.png', 1357775324: '1747114837_1612064_1357747673_65544e3a358cfb7dddb84ed429b0277a_rle_crop_3794702862_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/4db8ca303d83b80171a6d8d178ee16c7_58663070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/eee417963f7ca603e99fc98e227b9a46_34730601.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/49913af07111f447ccae30c58c365750_21255311.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/def8ebc9f407622a0b05e2bed1bdfcc0_38247126.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/8fadea6a3e863449f9e747ba2851f1c5_25309162.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/e3b49107467fc020671f02db1abb98be_4170164.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/dd86cc38e4aa1f696451d5cd62e1a297_2841313.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d041ddac9e63fddf3f3300543edff6f6_21974411.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/51e1777d0d1c0d2ae65ec2b1941ba82d_97438071.png change filename to text .imagette228992311747116092/ imagette228992311747116092/1747102537_949637_1357748116_1529b636a49bcf70012affda0381bbb3_rle_crop_3794650461_0.png.png imagette228992311747116092/1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650506_0.png.png imagette228992311747116092/1747114837_1612064_1357747673_65544e3a358cfb7dddb84ed429b0277a_rle_crop_3794702862_0.png.png imagette228992311747116092/1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648134_0.png.png imagette228992311747116092/1747103438_993757_1357748229_ffa2f0e82835efaca436965b18e03917_rle_crop_3794653680_0.png.png imagette228992311747116092/1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649675_0.png.png imagette228992311747116092/1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650491_0.png.png imagette228992311747116092/1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649694_0.png.png imagette228992311747116092/1747092635_457909_1357747882_ec7f069ffb7055d3ec182fa0f9fe67ab_rle_crop_3794622335_0.png.png imagette228992311747116092/1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650502_0.png.png imagette228992321747116092/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/7e93c7557fbd5a40c10d2625bbcfc553_61787844.png imagette228992311747116092 22899232 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228992321747116092 22899235 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357763806: '1747100738_842409_1357747718_94996b2ff08b57129c88b67fede9a070_rle_crop_3794646507_0.png', 1357763807: '1747100738_842409_1357747712_4c53254139d90663fc288aa49c95a24c_rle_crop_3794646528_0.png', 1357764723: '1747102239_935746_1357747992_a3134650eccf7996e102473b0f68586c_rle_crop_3794649687_0.png', 1357764873: '1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650478_0.png', 1357764874: '1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/65e6f715cb56ad5590254a4392a4f571_29875077.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/5198fbacbba026e10698382a4b8e14de_64474460.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/9620059667c6ab842d699579f2be531f_10620778.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/a910a1eeffddb15c062e0d19d5f2002e_94096960.png change filename to text .imagette228992351747116092/ imagette228992351747116092/1747100738_842409_1357747712_4c53254139d90663fc288aa49c95a24c_rle_crop_3794646528_0.png.png imagette228992351747116092/1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650509_0.png.png imagette228992351747116092/1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650478_0.png.png imagette228992351747116092/1747102239_935746_1357747992_a3134650eccf7996e102473b0f68586c_rle_crop_3794649687_0.png.png imagette228992351747116092/1747100738_842409_1357747718_94996b2ff08b57129c88b67fede9a070_rle_crop_3794646507_0.png.png imagette228992361747116093/ imagette228992371747116093/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/eca9b89f881e85a62c0cda882ad09449_50291586.png imagette228992351747116092 22899236 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228992361747116093 22899237 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228992371747116093 22899238 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357747963: '1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576752_0.png', 1357747964: '1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576748_0.png', 1357748200: '1747087047_3857743_1357747875_ea4ed13290b21dbf65e0d919f9037c9e_rle_crop_3794578922_0.png', 1357748201: '1747087047_3857743_1357747873_6a9364c7b9b03e32910f5b583241b3a5_rle_crop_3794578937_0.png', 1357756975: '1747092635_457909_1357747882_ec7f069ffb7055d3ec182fa0f9fe67ab_rle_crop_3794622340_0.png', 1357763802: '1747100738_842409_1357747708_b8ee06eb2c140f1a0e13242a9963c2d0_rle_crop_3794646534_0.png', 1357763991: '1747101040_855207_1357747841_c5275aaee5366c0ec80b17796d9d6d5c_rle_crop_3794646821_0.png', 1357763992: '1747101040_855207_1357747782_4accf072d6714fae448e32a987ddf90c_rle_crop_3794646984_0.png', 1357764346: '1747101637_899567_1357747912_6afd110c68500632b158294ce54eed46_rle_crop_3794648164_0.png', 1357764720: '1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649698_0.png', 1357764870: '1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650488_0.png', 1357765042: '1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651219_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/20d3785d73d10b4c90b6031bbec5cce3_83244733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/f787ed9f553cbc66a415f0bb94de2f6f_59662022.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/d96d80e9c68d643c0b19ccbd3451ac6a_68862239.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/60c472759b7d0153b7700c97592bc7a0_61325384.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/6830786cb44160c49b00198981eda492_88153358.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/e4e15f78c3b8d7f1aab734738c51ff4d_46012704.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/7e5e2f3fe578bb3b83037beec69a5aa0_6306902.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/cf15073f8896974c6885152ecbc9d59e_38299277.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/61758c8a78cf0ab298752e358dd75031_62584598.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/a3982f05d84523d1d2e4487916c75406_72674496.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/321dd9b2f24ce593251cdfa3d163cd01_92435866.png change filename to text .imagette228992381747116093/ imagette228992381747116093/1747101040_855207_1357747841_c5275aaee5366c0ec80b17796d9d6d5c_rle_crop_3794646821_0.png.png imagette228992381747116093/1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576752_0.png.png imagette228992381747116093/1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576748_0.png.png imagette228992381747116093/1747101040_855207_1357747782_4accf072d6714fae448e32a987ddf90c_rle_crop_3794646984_0.png.png imagette228992381747116093/1747087047_3857743_1357747875_ea4ed13290b21dbf65e0d919f9037c9e_rle_crop_3794578922_0.png.png imagette228992381747116093/1747087047_3857743_1357747873_6a9364c7b9b03e32910f5b583241b3a5_rle_crop_3794578937_0.png.png imagette228992381747116093/1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650488_0.png.png imagette228992381747116093/1747092635_457909_1357747882_ec7f069ffb7055d3ec182fa0f9fe67ab_rle_crop_3794622340_0.png.png imagette228992381747116093/1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651219_0.png.png imagette228992381747116093/1747101637_899567_1357747912_6afd110c68500632b158294ce54eed46_rle_crop_3794648164_0.png.png imagette228992381747116093/1747100738_842409_1357747708_b8ee06eb2c140f1a0e13242a9963c2d0_rle_crop_3794646534_0.png.png imagette228992381747116093/1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649698_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/2bd2be436b871ba0e58a18d39a2b92b1_36886279.png imagette228992381747116093 22899227 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357764344: '1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648135_0.png', 1357765348: '1747103438_993757_1357748229_ffa2f0e82835efaca436965b18e03917_rle_crop_3794653677_0.png', 1357765169: '1747103137_979671_1357748178_950c98d34d13dc18db6b70d9574f2f0d_rle_crop_3794651903_0.png', 1357765168: '1747103137_979671_1357748178_950c98d34d13dc18db6b70d9574f2f0d_rle_crop_3794651905_0.png', 1357765040: '1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651224_0.png', 1357765039: '1747102839_963697_1357748181_8c6da1f9db1268758ef47dae49c2bc3a_rle_crop_3794651214_0.png', 1357764862: '1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650512_0.png', 1357764861: '1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650489_0.png', 1357764860: '1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650472_0.png', 1357764859: '1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650471_0.png', 1357764858: '1747102537_949637_1357748157_ed017ea443b8d8c64cfdb8873f4c192d_rle_crop_3794650452_0.png', 1357764716: '1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649695_0.png', 1357764715: '1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649697_0.png', 1357764714: '1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649676_0.png', 1357747890: '1747086684_3850475_1357747755_a521161d6df6d286b838593a25e02fd2_rle_crop_3794576369_0.png', 1357764138: '1747101337_871234_1357747917_20df9e1aa13b1794de3d73e0c47a3c79_rle_crop_3794647513_0.png', 1357763990: '1747101040_855207_1357747841_c5275aaee5366c0ec80b17796d9d6d5c_rle_crop_3794646828_0.png', 1357763800: '1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646554_0.png', 1357763799: '1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646555_0.png', 1357763798: '1747100738_842409_1357747708_b8ee06eb2c140f1a0e13242a9963c2d0_rle_crop_3794646537_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/fc87459be388b4fff68e45d711ee5308_15850110.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/05b848480a0e475cec2b1bfb7f953793_81593221.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/82112c7242b115c1321ce26557841d21_84046958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/a8bf3c25ee2962af7dfcc353c328b390_2311789.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/a6ffc0dd9928ff292a2e92936f0890d2_78633654.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/98e5f92c18bec0ae6ef8f76c816624ff_49389770.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d585ef9be2dd7b9a1633cef69fc058bc_45780945.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/fdbb3647a51cb8d8eb3ced201ee42d7a_59998584.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/cc023e0e3aa25f2f01423e4e866614d0_25936105.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/38ad3a8c8159cf044bcec5852f231521_97373679.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/2bbf31f0e52f3170002d35393615f383_90555425.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/103e880294ac0970818e8fc9b5a43ba2_25565648.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/856397217deed2801c3c65e1fe1fb9f0_47128580.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/190c63e2d045f0f1cb2b7f73bdc89309_20788229.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/52b572d9737e7d3566b98a7a3d6d3a76_33697586.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/9a1174f91a8b797dcacef2f01c904454_58199691.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/b33b0ef0a12172eb5993761b877d556c_54295566.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/10851aa517e93e3ea97a29983e4c4978_10841486.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/6d6345408b0b83206a8542bf725ce4ec_36331975.png change filename to text .imagette228992271747116094/ imagette228992271747116094/1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650472_0.png.png imagette228992271747116094/1747101337_871234_1357747917_20df9e1aa13b1794de3d73e0c47a3c79_rle_crop_3794647513_0.png.png imagette228992271747116094/1747103137_979671_1357748178_950c98d34d13dc18db6b70d9574f2f0d_rle_crop_3794651905_0.png.png imagette228992271747116094/1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649697_0.png.png imagette228992271747116094/1747101040_855207_1357747841_c5275aaee5366c0ec80b17796d9d6d5c_rle_crop_3794646828_0.png.png imagette228992271747116094/1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648135_0.png.png imagette228992271747116094/1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650471_0.png.png imagette228992271747116094/1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646555_0.png.png imagette228992271747116094/1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650512_0.png.png imagette228992271747116094/1747086684_3850475_1357747755_a521161d6df6d286b838593a25e02fd2_rle_crop_3794576369_0.png.png imagette228992271747116094/1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649676_0.png.png imagette228992271747116094/1747103137_979671_1357748178_950c98d34d13dc18db6b70d9574f2f0d_rle_crop_3794651903_0.png.png imagette228992271747116094/1747100738_842409_1357747708_b8ee06eb2c140f1a0e13242a9963c2d0_rle_crop_3794646537_0.png.png imagette228992271747116094/1747102839_963697_1357748181_8c6da1f9db1268758ef47dae49c2bc3a_rle_crop_3794651214_0.png.png imagette228992271747116094/1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646554_0.png.png imagette228992271747116094/1747102537_949637_1357748157_ed017ea443b8d8c64cfdb8873f4c192d_rle_crop_3794650452_0.png.png imagette228992271747116094/1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651224_0.png.png imagette228992271747116094/1747102537_949637_1357748110_6459ec394dae6d75cdeec63dd5265b9d_rle_crop_3794650489_0.png.png imagette228992271747116094/1747102239_935746_1357747989_eec03b4df260b7d1100ae62544b148f1_rle_crop_3794649695_0.png.png imagette228992271747116094/1747103438_993757_1357748229_ffa2f0e82835efaca436965b18e03917_rle_crop_3794653677_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/827667750de1ebe9ea32fe3db498b71d_3785955.png imagette228992271747116094 22899233 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899233 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357747961: '1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576746_0.png', 1357748197: '1747087047_3857743_1357747878_b092fcb708e51fc572dce88600fb0077_rle_crop_3794578896_0.png', 1357748198: '1747087047_3857743_1357747873_6a9364c7b9b03e32910f5b583241b3a5_rle_crop_3794578934_0.png', 1357763801: '1747100738_842409_1357747712_4c53254139d90663fc288aa49c95a24c_rle_crop_3794646531_0.png', 1357764868: '1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650507_0.png', 1357765170: '1747103137_979671_1357748171_6fd34f1b9f6d26d04ba6915e2cbcc8e8_rle_crop_3794651913_0.png', 1357765351: '1747103438_993757_1357748215_7f33d0ff7fccf2845c3a5b0414351a9c_rle_crop_3794653698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/09f89acf33c01a777b8eecb43ac186ff_77174049.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/b5c6b511399ef03500b7a01f9a8d2577_11112956.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/0330b58c72a2739c4cf1f14a46f5c0bc_51183820.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/0f0cc65113cbafb6aed0c98367798572_29156829.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/819c7cd93d9083b885ab3643ffef7395_65018963.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d487a8877a16597a8277a9f159fc182a_23142370.png change filename to text .imagette228992331747116095/ imagette228992331747116095/1747087047_3857743_1357747873_6a9364c7b9b03e32910f5b583241b3a5_rle_crop_3794578934_0.png.png imagette228992331747116095/1747086807_3853975_1357747838_b8a52fc632e523b15ea7da68bc6784e0_rle_crop_3794576746_0.png.png imagette228992331747116095/1747102537_949637_1357748107_3b08ce9ac809600dda83f3375482ca7f_rle_crop_3794650507_0.png.png imagette228992331747116095/1747087047_3857743_1357747878_b092fcb708e51fc572dce88600fb0077_rle_crop_3794578896_0.png.png imagette228992331747116095/1747103137_979671_1357748171_6fd34f1b9f6d26d04ba6915e2cbcc8e8_rle_crop_3794651913_0.png.png imagette228992331747116095/1747100738_842409_1357747712_4c53254139d90663fc288aa49c95a24c_rle_crop_3794646531_0.png.png imagette228992331747116095/1747103438_993757_1357748215_7f33d0ff7fccf2845c3a5b0414351a9c_rle_crop_3794653698_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/10fcf8eb0a104b27595467c54d50af3f_48825128.png imagette228992331747116095 22899234 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357763804: '1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646549_0.png', 1357764347: '1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648138_0.png', 1357764501: '1747101938_922723_1357747994_05682ba392ad3d477a02151bac885fbd_rle_crop_3794648999_0.png', 1357764721: '1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649678_0.png', 1357764871: '1747102537_949637_1357748116_1529b636a49bcf70012affda0381bbb3_rle_crop_3794650464_0.png', 1357764872: '1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650473_0.png', 1357765043: '1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651220_0.png', 1357765171: '1747103137_979671_1357748171_6fd34f1b9f6d26d04ba6915e2cbcc8e8_rle_crop_3794651916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d915b205f3e9c342e5cc6ba04a7ddd01_99043955.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/3c4da0779ed440a5fd37e38bac783b02_17647253.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/396f8d2c93ec572b696beaa02c4e9140_32740951.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/9d553060ded9942a471a741a41a4d567_17342703.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/13f12ca9b0aa2adde96ddba4c1c2f454_27130608.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/4910f207767e5afd3200fdfb465716f1_5919034.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/bd1bf44eece1c99a0495cf689abc18e5_48634214.png change filename to text .imagette228992341747116096/ imagette228992341747116096/1747102239_935746_1357748119_8223854646aa59420f45464fd7cb932b_rle_crop_3794649678_0.png.png imagette228992341747116096/1747102537_949637_1357748116_1529b636a49bcf70012affda0381bbb3_rle_crop_3794650464_0.png.png imagette228992341747116096/1747103137_979671_1357748171_6fd34f1b9f6d26d04ba6915e2cbcc8e8_rle_crop_3794651916_0.png.png imagette228992341747116096/1747101637_899567_1357747916_100e823dbb807e5361e4fb675211fa66_rle_crop_3794648138_0.png.png imagette228992341747116096/1747102839_963697_1357748154_3aded2ce254cb2ad08f2b9b1727facb5_rle_crop_3794651220_0.png.png imagette228992341747116096/1747101938_922723_1357747994_05682ba392ad3d477a02151bac885fbd_rle_crop_3794648999_0.png.png imagette228992341747116096/1747102537_949637_1357748113_4a6d22789b9c67c562bcda7aae329962_rle_crop_3794650473_0.png.png imagette228992341747116096/1747100738_842409_1357747704_0eda539de88e3ecc35a2ea380de27444_rle_crop_3794646549_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/13/d71f4db9cd41ae10897c658b7336efc0_38731455.png imagette228992341747116096 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22899211 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22899239,22899240,22899241,22899242,22899243,22899244,22899245,22899246,22899247,22899248,22899249,22899250?tags=Teint_Dans_La_Masse,metal,papier,environnement,autre_refus,flou,Carton_gris,Carton_brun,plastique,mal_croppe,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1357748365] : ('0.04102203537463978',) no score found for photo 1357748365 We are sending mail with results at report@fotonower.com args[1357748334] : ('0.04102203537463978',) no score found for photo 1357748334 We are sending mail with results at report@fotonower.com args[1357748331] : ('0.04102203537463978',) no score found for photo 1357748331 We are sending mail with results at report@fotonower.com args[1357748329] : ('0.04102203537463978',) no score found for photo 1357748329 We are sending mail with results at report@fotonower.com args[1357748325] : ('0.04102203537463978',) no score found for photo 1357748325 We are sending mail with results at report@fotonower.com args[1357748323] : ('0.04102203537463978',) no score found for photo 1357748323 We are sending mail with results at report@fotonower.com args[1357748234] : ('0.04102203537463978',) no score found for photo 1357748234 We are sending mail with results at report@fotonower.com args[1357748232] : ('0.04102203537463978',) no score found for photo 1357748232 We are sending mail with results at report@fotonower.com args[1357748229] : ('0.04102203537463978',) no score found for photo 1357748229 We are sending mail with results at report@fotonower.com args[1357748224] : ('0.04102203537463978',) no score found for photo 1357748224 We are sending mail with results at report@fotonower.com args[1357748215] : ('0.04102203537463978',) no score found for photo 1357748215 We are sending mail with results at report@fotonower.com args[1357748181] : ('0.04102203537463978',) no score found for photo 1357748181 We are sending mail with results at report@fotonower.com args[1357748178] : ('0.04102203537463978',) no score found for photo 1357748178 We are sending mail with results at report@fotonower.com args[1357748171] : ('0.04102203537463978',) no score found for photo 1357748171 We are sending mail with results at report@fotonower.com args[1357748157] : ('0.04102203537463978',) no score found for photo 1357748157 We are sending mail with results at report@fotonower.com args[1357748154] : ('0.04102203537463978',) no score found for photo 1357748154 We are sending mail with results at report@fotonower.com args[1357748149] : ('0.04102203537463978',) no score found for photo 1357748149 We are sending mail with results at report@fotonower.com args[1357748145] : ('0.04102203537463978',) no score found for photo 1357748145 We are sending mail with results at report@fotonower.com args[1357748143] : ('0.04102203537463978',) no score found for photo 1357748143 We are sending mail with results at report@fotonower.com refus_total : 0.04102203537463978 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf results_Auto_P22899211_13-05-2025_08_01_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22899211','results_Auto_P22899211_13-05-2025_08_01_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf','pdf','','0.34','0.04102203537463978') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22899211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] map_info['map_portfolio_photo'] : {22899211: [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143, 1357748119, 1357748116, 1357748113, 1357748110, 1357748107, 1357747994, 1357747992, 1357747989, 1357747943, 1357747941, 1357747939, 1357747917, 1357747916, 1357747914, 1357747912, 1357747910, 1357747907, 1357747882, 1357747880, 1357747878, 1357747875, 1357747873, 1357747841, 1357747840, 1357747838, 1357747800, 1357747784, 1357747782, 1357747757, 1357747755, 1357747753, 1357747721, 1357747718, 1357747715, 1357747712, 1357747708, 1357747704, 1357747673, 1357747662]} final : False mtd_id 4302 list_pids : [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22899211', '1357748365', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350')] time used for this insertion : 0.18559765815734863 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.513625144958496 time spend to save output : 0.18595576286315918 total time spend for step 4 : 8.699580907821655 step5:split_time_score Tue May 13 08:01:38 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22899211'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('22899211',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22899211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357748157: {'path': 'temp/1747116089_1715010_1357748157_ed017ea443b8d8c64cfdb8873f4c192d.jpg', 'extension': 'jpg'}, 1357748171: {'path': 'temp/1747116089_1715010_1357748171_6fd34f1b9f6d26d04ba6915e2cbcc8e8.jpg', 'extension': 'jpg'}, 1357748178: {'path': 'temp/1747116089_1715010_1357748178_950c98d34d13dc18db6b70d9574f2f0d.jpg', 'extension': 'jpg'}, 1357748181: {'path': 'temp/1747116089_1715010_1357748181_8c6da1f9db1268758ef47dae49c2bc3a.jpg', 'extension': 'jpg'}, 1357748215: {'path': 'temp/1747116089_1715010_1357748215_7f33d0ff7fccf2845c3a5b0414351a9c.jpg', 'extension': 'jpg'}, 1357748224: {'path': 'temp/1747116089_1715010_1357748224_62080bd7fe8a70f2f9b71dcaf8aa7e59.jpg', 'extension': 'jpg'}, 1357748229: {'path': 'temp/1747116089_1715010_1357748229_ffa2f0e82835efaca436965b18e03917.jpg', 'extension': 'jpg'}, 1357748232: {'path': 'temp/1747116089_1715010_1357748232_4e7afa5e222581566cd9ad37ecb12a16.jpg', 'extension': 'jpg'}, 1357748331: {'path': 'temp/1747116089_1715010_1357748331_b716f3db24fac0b7ab2699be0586a4b5.jpg', 'extension': 'jpg'}, 1357748334: {'path': 'temp/1747116089_1715010_1357748334_04cea75da557fe46af0544012aa2dd42.jpg', 'extension': 'jpg'}, 1357748365: {'path': 'temp/1747116089_1715010_1357748365_b7cccbf4738f32050d808bca231356c1.jpg', 'extension': 'jpg'}, 1357748234: {'path': 'temp/1747116089_1715010_1357748234_7e3929d533e2b535ee2e009c4941e67d.jpg', 'extension': 'jpg'}, 1357748323: {'path': 'temp/1747116089_1715010_1357748323_da3605a9fc8eb238641eff6538b4c702.jpg', 'extension': 'jpg'}, 1357748325: {'path': 'temp/1747116089_1715010_1357748325_ca48d2f7618677cca3a59ade6dc605b4.jpg', 'extension': 'jpg'}, 1357748329: {'path': 'temp/1747116089_1715010_1357748329_0679968ec559b73b02de85a7cf3e145b.jpg', 'extension': 'jpg'}, 1357748143: {'path': 'temp/1747116089_1715010_1357748143_4227e2889517bbd9f5f2aee40b95b242.jpg', 'extension': 'jpg'}, 1357748145: {'path': 'temp/1747116089_1715010_1357748145_078cd9eb1372c41da3a7b8c598dd6d12.jpg', 'extension': 'jpg'}, 1357748149: {'path': 'temp/1747116089_1715010_1357748149_9c65d01c4df2c42c6626c41e491ff1eb.jpg', 'extension': 'jpg'}, 1357748154: {'path': 'temp/1747116089_1715010_1357748154_3aded2ce254cb2ad08f2b9b1727facb5.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 22899211; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22899211 group by h (('23', 58),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22899211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22899211) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22899211) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12052025 22899211 Nombre de photos uploadées : 58 / 23040 (0%) 12052025 22899211 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 12052025 22899211 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1357747673, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/65544e3a358cfb7dddb84ed429b0277a.jpg', 'username': None, 'uploaded_at': 1747086367, 'text': 'image_12052025_23_45_24_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357747662, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/c9197cd8264c3d615ef42a2d95cf503a.jpg', 'username': None, 'uploaded_at': 1747086367, 'text': 'image_12052025_23_45_44_010138m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357747721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/3473c78ea8ab52d4dd25f7a8a98fa6ec.jpg', 'username': None, 'uploaded_at': 1747086433, 'text': 'image_12052025_23_45_55_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357747718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/12/94996b2ff08b57129c88b67fede9a070.jpg', 'username': None, 'uploaded_at': 1747086433, 'text': 'image_12052025_23_46_05_010158m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.6927719116210938e-05 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017528533935546875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22899211, '2025-05-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1796783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03248882293701172 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1796783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22870059, 'dashboard_result_id': 10523199, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_13-05-2025_05_34_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22870688, 'dashboard_result_id': 10523200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_13-05-2025_05_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22870938, 'dashboard_result_id': 10523201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_13-05-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22871209, 'dashboard_result_id': 10523202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_13-05-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22871504, 'dashboard_result_id': 10523203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_13-05-2025_05_36_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22871877, 'dashboard_result_id': 10523204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_13-05-2025_05_36_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22872299, 'dashboard_result_id': 10523205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_13-05-2025_05_37_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22872664, 'dashboard_result_id': 10523206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_13-05-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22872974, 'dashboard_result_id': 10523207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_13-05-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22873517, 'dashboard_result_id': 10523208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_13-05-2025_05_39_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22873640, 'dashboard_result_id': 10523209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_13-05-2025_05_39_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22873979, 'dashboard_result_id': 10523210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_13-05-2025_05_40_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22874526, 'dashboard_result_id': 10523211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_13-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22875040, 'dashboard_result_id': 10523212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_13-05-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22875456, 'dashboard_result_id': 10523213, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_13-05-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22876020, 'dashboard_result_id': 10523214, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_13-05-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22877171, 'dashboard_result_id': 10523215, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_13-05-2025_05_44_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22877447, 'dashboard_result_id': 10523216, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_13-05-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22877667, 'dashboard_result_id': 10523217, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_13-05-2025_05_45_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22878347, 'dashboard_result_id': 10523218, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878347_13-05-2025_05_46_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878388, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22878417, 'dashboard_result_id': 10523219, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_13-05-2025_05_46_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22878904, 'dashboard_result_id': 10523220, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878904_13-05-2025_05_47_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878932, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22879253, 'dashboard_result_id': 10523221, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879253_13-05-2025_05_47_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879327, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22879770, 'dashboard_result_id': 10523222, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_13-05-2025_05_48_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22880147, 'dashboard_result_id': 10523223, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880147_13-05-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880173, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22880563, 'dashboard_result_id': 10523224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_13-05-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22880960, 'dashboard_result_id': 10523225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880960_13-05-2025_05_50_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22881000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22881001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22881002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22881003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22881004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22881005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22881006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22881007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22881008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22881009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22881010, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22883004, 'dashboard_result_id': 10523226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_13-05-2025_05_50_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22883261, 'dashboard_result_id': 10523227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_13-05-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883286, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22883587, 'dashboard_result_id': 10523228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883587_13-05-2025_05_52_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883614, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22883946, 'dashboard_result_id': 10523229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883946_13-05-2025_05_52_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22883947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883960, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22884410, 'dashboard_result_id': 10523230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884410_13-05-2025_05_55_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884434, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22884777, 'dashboard_result_id': 10523231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884777_13-05-2025_05_56_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884799, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22885092, 'dashboard_result_id': 10523232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885092_13-05-2025_05_56_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885116, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22885757, 'dashboard_result_id': 10523233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885757_13-05-2025_05_58_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885780, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22886538, 'dashboard_result_id': 10523234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22886538_13-05-2025_05_58_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22886576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22886577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22886578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22886579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22886580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22886581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22886582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22886583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22886584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22886585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22886586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22886587, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22887035, 'dashboard_result_id': 10523235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887035_13-05-2025_05_59_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22887135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22887136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22887137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22887138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22887139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22887140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22887141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22887142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22887143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22887144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22887145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22887146, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22887846, 'dashboard_result_id': 10523236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887846_13-05-2025_06_00_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22887990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22887991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22887992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22887993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22887994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22887995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22887996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22887997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22887998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22887999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888001, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22888715, 'dashboard_result_id': 10523237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22888715_13-05-2025_06_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22888754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22888756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22888757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22888758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22888759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22888760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22888761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22888763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22888764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22888765, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22889070, 'dashboard_result_id': 10523238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889070_13-05-2025_06_01_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889144, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22889516, 'dashboard_result_id': 10523239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889516_13-05-2025_06_02_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889526, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889529, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22891103, 'dashboard_result_id': 10523240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891103_12-05-2025_18_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22891129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22891130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22891131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22891132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22891133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22891134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22891135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22891136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22891137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22891138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22891139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22891140, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22891483, 'dashboard_result_id': 10523241, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891483_12-05-2025_18_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22891524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22891525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22891526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22891527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22891528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22891529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22891530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22891531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22891532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22891533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22891534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22891535, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22891980, 'dashboard_result_id': 10523242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891980_12-05-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892025, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22892560, 'dashboard_result_id': 10523243, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22892560_12-05-2025_19_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892592, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22893141, 'dashboard_result_id': 10523244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893141_12-05-2025_19_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22893157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893158, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893160, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22893475, 'dashboard_result_id': 10523245, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893475_12-05-2025_19_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22893540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893542, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22893969, 'dashboard_result_id': 10523246, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893969_13-05-2025_08_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22893980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893991, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22896531, 'dashboard_result_id': 10523247, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896531_12-05-2025_22_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22896533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22896534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22896535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22896536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22896537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22896538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22896539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22896540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22896541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22896542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22896543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22896544, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22896795, 'dashboard_result_id': 10523248, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896795_12-05-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22896807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22896808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22896809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22896810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22896811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22896812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22896813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22896814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22896815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22896816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22896817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22896818, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22897170, 'dashboard_result_id': 10523249, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897170_12-05-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897244, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22897611, 'dashboard_result_id': 10523250, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897611_12-05-2025_23_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897662, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22897948, 'dashboard_result_id': 10523251, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897948_13-05-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897971, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22898391, 'dashboard_result_id': 10523252, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898391_13-05-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22898404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898415, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22898893, 'dashboard_result_id': 10523253, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898893_13-05-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22898946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898952, 'pht': 3726}}"}, {'dashboat_entry_day': 1796783, 'dashboard_run_id': 1808299, 'mtr_portfolio_id': 22899211, 'dashboard_result_id': 10523254, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_06_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899238, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22870059 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834306, 'mtr_portfolio_id': 22870059, 'created_at': datetime.datetime(2025, 5, 13, 5, 34, 31), 'result': '0.046626161238679874', 'result_long': None, 'result_double': None}] Qualite : 0.046626161238679874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_13-05-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870059 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_13-05-2025_05_34_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, 'pht': 3726}}" where mtr_portfolio_id = 22870059 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22870059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523199, 0.046626161238679874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870059_13-05-2025_05_34_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22870060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22870688 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834307, 'mtr_portfolio_id': 22870688, 'created_at': datetime.datetime(2025, 5, 13, 5, 34, 57), 'result': '0.039919879332931334', 'result_long': None, 'result_double': None}] Qualite : 0.039919879332931334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_13-05-2025_05_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870688 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_13-05-2025_05_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, 'pht': 3726}}" where mtr_portfolio_id = 22870688 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22870688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523200, 0.039919879332931334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870688_13-05-2025_05_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870698, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870701, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22870938 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834308, 'mtr_portfolio_id': 22870938, 'created_at': datetime.datetime(2025, 5, 13, 5, 35, 32), 'result': '0.035612675094401844', 'result_long': None, 'result_double': None}] Qualite : 0.035612675094401844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22870938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_13-05-2025_05_35_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22870938 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_13-05-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, 'pht': 3726}}" where mtr_portfolio_id = 22870938 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22870938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523201, 0.035612675094401844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22870938_13-05-2025_05_35_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22870939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22870940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22870941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22870942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22870943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22870944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22870945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22870946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22870947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22870948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22870949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22870950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22871209 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834309, 'mtr_portfolio_id': 22871209, 'created_at': datetime.datetime(2025, 5, 13, 5, 35, 30), 'result': '0.05043534488674655', 'result_long': None, 'result_double': None}] Qualite : 0.05043534488674655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_13-05-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871209 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_13-05-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, 'pht': 3726}}" where mtr_portfolio_id = 22871209 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22871209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523202, 0.05043534488674655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871209_13-05-2025_05_35_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871260, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22871504 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834310, 'mtr_portfolio_id': 22871504, 'created_at': datetime.datetime(2025, 5, 13, 5, 35, 58), 'result': '0.0562906673643881', 'result_long': None, 'result_double': None}] Qualite : 0.0562906673643881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_13-05-2025_05_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871504 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_13-05-2025_05_36_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, 'pht': 3726}}" where mtr_portfolio_id = 22871504 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22871504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523203, 0.0562906673643881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871504_13-05-2025_05_36_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871517, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22871877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834311, 'mtr_portfolio_id': 22871877, 'created_at': datetime.datetime(2025, 5, 13, 5, 36, 30), 'result': '0.04124340553951425', 'result_long': None, 'result_double': None}] Qualite : 0.04124340553951425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22871877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_13-05-2025_05_36_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22871877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_13-05-2025_05_36_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, 'pht': 3726}}" where mtr_portfolio_id = 22871877 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22871877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523204, 0.04124340553951425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22871877_13-05-2025_05_36_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22871902, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22871903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22871904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22871905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22871906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22871907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22871908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22871909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22871910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22871911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22871912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22871913, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22872299 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834312, 'mtr_portfolio_id': 22872299, 'created_at': datetime.datetime(2025, 5, 13, 5, 37, 29), 'result': '0.04742642632190585', 'result_long': None, 'result_double': None}] Qualite : 0.04742642632190585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_13-05-2025_05_37_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872299 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_13-05-2025_05_37_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, 'pht': 3726}}" where mtr_portfolio_id = 22872299 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22872299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523205, 0.04742642632190585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872299_13-05-2025_05_37_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22872324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872335, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22872664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834313, 'mtr_portfolio_id': 22872664, 'created_at': datetime.datetime(2025, 5, 13, 5, 37, 58), 'result': '0.024856085254928908', 'result_long': None, 'result_double': None}] Qualite : 0.024856085254928908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_13-05-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872664 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_13-05-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, 'pht': 3726}}" where mtr_portfolio_id = 22872664 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22872664 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523206, 0.024856085254928908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872664_13-05-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872720, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872724, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22872974 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834314, 'mtr_portfolio_id': 22872974, 'created_at': datetime.datetime(2025, 5, 13, 5, 38, 32), 'result': '0.044067930902508726', 'result_long': None, 'result_double': None}] Qualite : 0.044067930902508726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22872974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_13-05-2025_05_38_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22872974 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_13-05-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, 'pht': 3726}}" where mtr_portfolio_id = 22872974 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22872974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523207, 0.044067930902508726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22872974_13-05-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22872975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22872976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22872977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22872978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22872979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22872980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22872981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22872982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22872983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22872984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22872985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22872986, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22873517 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834315, 'mtr_portfolio_id': 22873517, 'created_at': datetime.datetime(2025, 5, 13, 5, 39, 3), 'result': '0.05063865401417247', 'result_long': None, 'result_double': None}] Qualite : 0.05063865401417247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_13-05-2025_05_39_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873517 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_13-05-2025_05_39_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, 'pht': 3726}}" where mtr_portfolio_id = 22873517 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22873517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523208, 0.05063865401417247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873517_13-05-2025_05_39_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873530, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22873535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873537, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22873640 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834316, 'mtr_portfolio_id': 22873640, 'created_at': datetime.datetime(2025, 5, 13, 5, 39, 29), 'result': '0.08040572309029391', 'result_long': None, 'result_double': None}] Qualite : 0.08040572309029391 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_13-05-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_13-05-2025_05_39_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, 'pht': 3726}}" where mtr_portfolio_id = 22873640 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22873640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523209, 0.08040572309029391, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873640_13-05-2025_05_39_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22873650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22873651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22873658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22873659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22873660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873661, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22873979 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834317, 'mtr_portfolio_id': 22873979, 'created_at': datetime.datetime(2025, 5, 13, 5, 40, 1), 'result': '0.049029217057390634', 'result_long': None, 'result_double': None}] Qualite : 0.049029217057390634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22873979 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_13-05-2025_05_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22873979 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_13-05-2025_05_40_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, 'pht': 3726}}" where mtr_portfolio_id = 22873979 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22873979 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523210, 0.049029217057390634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22873979_13-05-2025_05_40_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22873993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22873994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22873995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22873996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22873997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22873998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22873999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22874526 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834318, 'mtr_portfolio_id': 22874526, 'created_at': datetime.datetime(2025, 5, 13, 5, 40, 32), 'result': '0.040318560184759177', 'result_long': None, 'result_double': None}] Qualite : 0.040318560184759177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22874526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_13-05-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22874526 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_13-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, 'pht': 3726}}" where mtr_portfolio_id = 22874526 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22874526 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523211, 0.040318560184759177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22874526_13-05-2025_05_40_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22874573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22874574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22874575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22874576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22874577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22874578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22874579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22874580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22874581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22874582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22874583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22874584, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22875040 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834319, 'mtr_portfolio_id': 22875040, 'created_at': datetime.datetime(2025, 5, 13, 5, 41, 30), 'result': '0.04874472461486608', 'result_long': None, 'result_double': None}] Qualite : 0.04874472461486608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22875040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_13-05-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22875040 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_13-05-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, 'pht': 3726}}" where mtr_portfolio_id = 22875040 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22875040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523212, 0.04874472461486608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875040_13-05-2025_05_41_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22875456 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834320, 'mtr_portfolio_id': 22875456, 'created_at': datetime.datetime(2025, 5, 13, 5, 42), 'result': '0.0567320664465288', 'result_long': None, 'result_double': None}] Qualite : 0.0567320664465288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22875456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_13-05-2025_05_42_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22875456 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_13-05-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, 'pht': 3726}}" where mtr_portfolio_id = 22875456 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22875456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523213, 0.0567320664465288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22875456_13-05-2025_05_42_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22875467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22875468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22875469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22875470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22875471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22875472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22875473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22875474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22875475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22875476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22875477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22875478, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22876020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834321, 'mtr_portfolio_id': 22876020, 'created_at': datetime.datetime(2025, 5, 13, 5, 42, 30), 'result': '0.03174837739005935', 'result_long': None, 'result_double': None}] Qualite : 0.03174837739005935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22876020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_13-05-2025_05_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22876020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_13-05-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, 'pht': 3726}}" where mtr_portfolio_id = 22876020 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22876020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523214, 0.03174837739005935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22876020_13-05-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22876044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22876045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22876046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22876047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22876048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22876049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22876050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22876051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22876052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22876053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22876054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22876055, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22877171 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834322, 'mtr_portfolio_id': 22877171, 'created_at': datetime.datetime(2025, 5, 13, 5, 44, 2), 'result': '0.0531264123261806', 'result_long': None, 'result_double': None}] Qualite : 0.0531264123261806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877171 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_13-05-2025_05_44_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877171 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_13-05-2025_05_44_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, 'pht': 3726}}" where mtr_portfolio_id = 22877171 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22877171 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523215, 0.0531264123261806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877171_13-05-2025_05_44_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877198, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22877447 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834323, 'mtr_portfolio_id': 22877447, 'created_at': datetime.datetime(2025, 5, 13, 5, 44, 29), 'result': '0.04407164115911648', 'result_long': None, 'result_double': None}] Qualite : 0.04407164115911648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_13-05-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877447 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_13-05-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, 'pht': 3726}}" where mtr_portfolio_id = 22877447 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22877447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523216, 0.04407164115911648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877447_13-05-2025_05_44_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877462, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22877667 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834324, 'mtr_portfolio_id': 22877667, 'created_at': datetime.datetime(2025, 5, 13, 5, 45, 30), 'result': '0.04715476572653475', 'result_long': None, 'result_double': None}] Qualite : 0.04715476572653475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22877667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_13-05-2025_05_45_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22877667 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_13-05-2025_05_45_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, 'pht': 3726}}" where mtr_portfolio_id = 22877667 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22877667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523217, 0.04715476572653475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22877667_13-05-2025_05_45_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22877694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22877695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22877696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22877697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22877698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22877699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22877700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22877701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22877702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22877703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22877704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22877705, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878347 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834325, 'mtr_portfolio_id': 22878347, 'created_at': datetime.datetime(2025, 5, 13, 5, 46), 'result': '0.03489181600134255', 'result_long': None, 'result_double': None}] Qualite : 0.03489181600134255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878347_13-05-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878347 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878347_13-05-2025_05_46_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878388, 'pht': 3726}}" where mtr_portfolio_id = 22878347 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22878347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523218, 0.03489181600134255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878347_13-05-2025_05_46_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878382, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878388, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878417 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834326, 'mtr_portfolio_id': 22878417, 'created_at': datetime.datetime(2025, 5, 13, 5, 46, 32), 'result': '0.057713827288228485', 'result_long': None, 'result_double': None}] Qualite : 0.057713827288228485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_13-05-2025_05_46_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878417 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_13-05-2025_05_46_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, 'pht': 3726}}" where mtr_portfolio_id = 22878417 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22878417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523219, 0.057713827288228485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878417_13-05-2025_05_46_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878484, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22878904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834327, 'mtr_portfolio_id': 22878904, 'created_at': datetime.datetime(2025, 5, 13, 5, 47), 'result': '0.042286149113274246', 'result_long': None, 'result_double': None}] Qualite : 0.042286149113274246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22878904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878904_13-05-2025_05_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22878904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878904_13-05-2025_05_47_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878932, 'pht': 3726}}" where mtr_portfolio_id = 22878904 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22878904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523220, 0.042286149113274246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22878904_13-05-2025_05_47_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22878921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22878922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22878923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22878924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22878925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22878926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22878927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22878928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22878929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22878930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22878931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22878932, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22879253 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22879253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879253_13-05-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22879253 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879253_13-05-2025_05_47_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879327, 'pht': 3726}}" where mtr_portfolio_id = 22879253 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22879770 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834329, 'mtr_portfolio_id': 22879770, 'created_at': datetime.datetime(2025, 5, 13, 5, 47, 59), 'result': '0.06235326650006785', 'result_long': None, 'result_double': None}] Qualite : 0.06235326650006785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22879770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_13-05-2025_05_48_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22879770 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_13-05-2025_05_48_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, 'pht': 3726}}" where mtr_portfolio_id = 22879770 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22879770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523222, 0.06235326650006785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22879770_13-05-2025_05_48_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22879809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22879810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22879811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22879812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22879813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22879814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22879815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22879816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22879817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22879818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22879819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22879820, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834330, 'mtr_portfolio_id': 22880147, 'created_at': datetime.datetime(2025, 5, 13, 5, 48, 29), 'result': '0.013557096171301443', 'result_long': None, 'result_double': None}] Qualite : 0.013557096171301443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880147_13-05-2025_05_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880147_13-05-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880173, 'pht': 3726}}" where mtr_portfolio_id = 22880147 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22880147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523223, 0.013557096171301443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880147_13-05-2025_05_48_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880173, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880563 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834331, 'mtr_portfolio_id': 22880563, 'created_at': datetime.datetime(2025, 5, 13, 5, 49, 29), 'result': '0.045997499436403196', 'result_long': None, 'result_double': None}] Qualite : 0.045997499436403196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_13-05-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880563 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_13-05-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, 'pht': 3726}}" where mtr_portfolio_id = 22880563 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22880563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523224, 0.045997499436403196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880563_13-05-2025_05_49_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22880577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22880579, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22880580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22880581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22880582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22880583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22880584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22880585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22880586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22880587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22880588, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22880960 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834332, 'mtr_portfolio_id': 22880960, 'created_at': datetime.datetime(2025, 5, 13, 5, 49, 59), 'result': '0.04854425753666113', 'result_long': None, 'result_double': None}] Qualite : 0.04854425753666113 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22880960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880960_13-05-2025_05_50_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22880960 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880960_13-05-2025_05_50_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22881000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22881001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22881002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22881003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22881004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22881005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22881006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22881007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22881008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22881009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22881010, 'pht': 3726}}" where mtr_portfolio_id = 22880960 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22880960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523225, 0.04854425753666113, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22880960_13-05-2025_05_50_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22880999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22881000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22881001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22881002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22881003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22881004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22881005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22881006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22881007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22881008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22881009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22881010, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883004 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834333, 'mtr_portfolio_id': 22883004, 'created_at': datetime.datetime(2025, 5, 13, 5, 50, 30), 'result': '0.05659395019397462', 'result_long': None, 'result_double': None}] Qualite : 0.05659395019397462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_13-05-2025_05_50_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883004 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_13-05-2025_05_50_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, 'pht': 3726}}" where mtr_portfolio_id = 22883004 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22883004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523226, 0.05659395019397462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883004_13-05-2025_05_50_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883012, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883019, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883261 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834334, 'mtr_portfolio_id': 22883261, 'created_at': datetime.datetime(2025, 5, 13, 5, 51, 29), 'result': '0.0321493675668515', 'result_long': None, 'result_double': None}] Qualite : 0.0321493675668515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_13-05-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883261 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_13-05-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883286, 'pht': 3726}}" where mtr_portfolio_id = 22883261 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22883261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523227, 0.0321493675668515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883261_13-05-2025_05_51_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883286, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883587 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834335, 'mtr_portfolio_id': 22883587, 'created_at': datetime.datetime(2025, 5, 13, 5, 52), 'result': '0.03713663264093579', 'result_long': None, 'result_double': None}] Qualite : 0.03713663264093579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883587_13-05-2025_05_52_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883587 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883587_13-05-2025_05_52_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883614, 'pht': 3726}}" where mtr_portfolio_id = 22883587 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22883587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523228, 0.03713663264093579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883587_13-05-2025_05_52_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22883609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883610, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883614, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22883946 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834336, 'mtr_portfolio_id': 22883946, 'created_at': datetime.datetime(2025, 5, 13, 5, 52, 33), 'result': '0.051243718836540296', 'result_long': None, 'result_double': None}] Qualite : 0.051243718836540296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22883946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883946_13-05-2025_05_52_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22883946 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883946_13-05-2025_05_52_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22883947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883960, 'pht': 3726}}" where mtr_portfolio_id = 22883946 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22883946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523229, 0.051243718836540296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22883946_13-05-2025_05_52_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22883947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22883948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22883949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22883950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22883951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22883952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22883953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22883955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22883956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22883957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22883958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22883960, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22884410 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834337, 'mtr_portfolio_id': 22884410, 'created_at': datetime.datetime(2025, 5, 13, 5, 54, 59), 'result': '0.031125469924630403', 'result_long': None, 'result_double': None}] Qualite : 0.031125469924630403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22884410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884410_13-05-2025_05_55_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22884410 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884410_13-05-2025_05_55_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884434, 'pht': 3726}}" where mtr_portfolio_id = 22884410 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22884410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523230, 0.031125469924630403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884410_13-05-2025_05_55_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884423, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884434, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22884777 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834338, 'mtr_portfolio_id': 22884777, 'created_at': datetime.datetime(2025, 5, 13, 5, 56, 1), 'result': '0.028848827615429867', 'result_long': None, 'result_double': None}] Qualite : 0.028848827615429867 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22884777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884777_13-05-2025_05_56_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22884777 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884777_13-05-2025_05_56_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884799, 'pht': 3726}}" where mtr_portfolio_id = 22884777 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22884777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523231, 0.028848827615429867, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22884777_13-05-2025_05_56_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22884788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22884789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22884790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22884791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22884792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22884793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22884794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22884795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22884796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22884797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22884798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22884799, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22885092 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834339, 'mtr_portfolio_id': 22885092, 'created_at': datetime.datetime(2025, 5, 13, 5, 56, 31), 'result': '0.020752878980546296', 'result_long': None, 'result_double': None}] Qualite : 0.020752878980546296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22885092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885092_13-05-2025_05_56_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22885092 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885092_13-05-2025_05_56_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885116, 'pht': 3726}}" where mtr_portfolio_id = 22885092 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22885092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523232, 0.020752878980546296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885092_13-05-2025_05_56_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885116, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22885757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834340, 'mtr_portfolio_id': 22885757, 'created_at': datetime.datetime(2025, 5, 13, 5, 58), 'result': '0.04203556958550119', 'result_long': None, 'result_double': None}] Qualite : 0.04203556958550119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22885757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885757_13-05-2025_05_58_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22885757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885757_13-05-2025_05_58_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885780, 'pht': 3726}}" where mtr_portfolio_id = 22885757 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22885757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523233, 0.04203556958550119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22885757_13-05-2025_05_58_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22885769, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22885770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22885771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22885772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22885773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22885774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22885775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22885776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22885777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22885778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22885779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22885780, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22886538 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22886538 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22886538 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22886538 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22886538 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22886538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22886538_13-05-2025_05_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22886538 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22886538_13-05-2025_05_58_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22886576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22886577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22886578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22886579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22886580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22886581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22886582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22886583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22886584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22886585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22886586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22886587, 'pht': 3726}}" where mtr_portfolio_id = 22886538 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22887035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22887035 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22887035 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22887035 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22887035 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22887035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887035_13-05-2025_05_59_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22887035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887035_13-05-2025_05_59_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22887135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22887136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22887137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22887138, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22887139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22887140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22887141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22887142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22887143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22887144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22887145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22887146, 'pht': 3726}}" where mtr_portfolio_id = 22887035 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22887846 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834343, 'mtr_portfolio_id': 22887846, 'created_at': datetime.datetime(2025, 5, 13, 5, 59, 59), 'result': '0.05385468996015296', 'result_long': None, 'result_double': None}] Qualite : 0.05385468996015296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22887846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887846_13-05-2025_06_00_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22887846 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887846_13-05-2025_06_00_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22887990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22887991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22887992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22887993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22887994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22887995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22887996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22887997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22887998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22887999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888001, 'pht': 3726}}" where mtr_portfolio_id = 22887846 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22887846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523236, 0.05385468996015296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22887846_13-05-2025_06_00_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22887990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22887991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22887992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22887993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22887994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22887995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22887996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22887997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22887998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22887999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888001, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22888715 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834344, 'mtr_portfolio_id': 22888715, 'created_at': datetime.datetime(2025, 5, 13, 6, 0, 32), 'result': '0.03708545029065819', 'result_long': None, 'result_double': None}] Qualite : 0.03708545029065819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22888715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22888715_13-05-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22888715 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22888715_13-05-2025_06_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22888754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22888756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22888757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22888758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22888759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22888760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22888761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22888763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22888764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22888765, 'pht': 3726}}" where mtr_portfolio_id = 22888715 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22888715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523237, 0.03708545029065819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22888715_13-05-2025_06_00_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22888754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22888755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22888756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22888757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22888758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22888759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22888760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22888761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22888762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22888763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22888764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22888765, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22889070 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834345, 'mtr_portfolio_id': 22889070, 'created_at': datetime.datetime(2025, 5, 13, 6, 1, 29), 'result': '0.05474337972983765', 'result_long': None, 'result_double': None}] Qualite : 0.05474337972983765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22889070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889070_13-05-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22889070 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889070_13-05-2025_06_01_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889144, 'pht': 3726}}" where mtr_portfolio_id = 22889070 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22889070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523238, 0.05474337972983765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889070_13-05-2025_06_01_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889144, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22889516 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834346, 'mtr_portfolio_id': 22889516, 'created_at': datetime.datetime(2025, 5, 13, 6, 1, 58), 'result': '0.051300884978461435', 'result_long': None, 'result_double': None}] Qualite : 0.051300884978461435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22889516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889516_13-05-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22889516 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889516_13-05-2025_06_02_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889526, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889529, 'pht': 3726}}" where mtr_portfolio_id = 22889516 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22889516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523239, 0.051300884978461435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22889516_13-05-2025_06_02_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22889518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22889519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22889520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22889521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22889522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22889523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22889524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22889525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22889526, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22889527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22889528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22889529, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891103 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22891103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891103 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22891103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891103_12-05-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22891103 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891103_12-05-2025_18_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22891129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22891130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22891131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22891132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22891133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22891134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22891135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22891136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22891137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22891138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22891139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22891140, 'pht': 3726}}" where mtr_portfolio_id = 22891103 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2828609, 'mtr_portfolio_id': 22891483, 'created_at': datetime.datetime(2025, 5, 12, 18, 48, 59), 'result': '0.020605197642488634', 'result_long': None, 'result_double': None}] Qualite : 0.020605197642488634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22891483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891483_12-05-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22891483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891483_12-05-2025_18_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22891524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22891525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22891526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22891527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22891528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22891529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22891530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22891531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22891532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22891533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22891534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22891535, 'pht': 3726}}" where mtr_portfolio_id = 22891483 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22891483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523241, 0.020605197642488634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891483_12-05-2025_18_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22891524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22891525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22891526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22891527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22891528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22891529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22891530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22891531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22891532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22891533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22891534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22891535, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22891980 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2828762, 'mtr_portfolio_id': 22891980, 'created_at': datetime.datetime(2025, 5, 12, 19, 2, 58), 'result': '0.04674936613434943', 'result_long': None, 'result_double': None}] Qualite : 0.04674936613434943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22891980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891980_12-05-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22891980 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891980_12-05-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892025, 'pht': 3726}}" where mtr_portfolio_id = 22891980 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22891980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523242, 0.04674936613434943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22891980_12-05-2025_19_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892025, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22892560 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2828904, 'mtr_portfolio_id': 22892560, 'created_at': datetime.datetime(2025, 5, 12, 19, 19, 28), 'result': '0.028626732038512133', 'result_long': None, 'result_double': None}] Qualite : 0.028626732038512133 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22892560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22892560_12-05-2025_19_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22892560 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22892560_12-05-2025_19_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892592, 'pht': 3726}}" where mtr_portfolio_id = 22892560 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22892560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523243, 0.028626732038512133, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22892560_12-05-2025_19_19_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22892581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22892582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22892583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22892584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22892585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22892586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22892587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22892588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22892589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22892590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22892591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22892592, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893141 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22893141 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893141 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893141 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22893141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893141_12-05-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22893141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893141_12-05-2025_19_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22893157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893158, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893160, 'pht': 3726}}" where mtr_portfolio_id = 22893141 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893475 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893475 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22893475 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893475 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893475 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22893475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893475_12-05-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22893475 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893475_12-05-2025_19_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893531, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893539, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22893540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893542, 'pht': 3726}}" where mtr_portfolio_id = 22893475 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22893969 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2829637, 'mtr_portfolio_id': 22893969, 'created_at': datetime.datetime(2025, 5, 13, 8, 0, 59), 'result': '0.04529275415731191', 'result_long': None, 'result_double': None}] Qualite : 0.04529275415731191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22893969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893969_13-05-2025_08_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22893969 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893969_13-05-2025_08_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22893980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893991, 'pht': 3726}}" where mtr_portfolio_id = 22893969 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22893969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523246, 0.04529275415731191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22893969_13-05-2025_08_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22893980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22893981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22893982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22893983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22893984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22893985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22893986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22893987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22893988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22893989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22893990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22893991, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22896531 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22896531 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22896531 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22896531 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22896531 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22896531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896531_12-05-2025_22_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22896531 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896531_12-05-2025_22_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22896533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22896534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22896535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22896536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22896537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22896538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22896539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22896540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22896541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22896542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22896543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22896544, 'pht': 3726}}" where mtr_portfolio_id = 22896531 and dashboard_run_id = 1808299 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22896795 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2830780, 'mtr_portfolio_id': 22896795, 'created_at': datetime.datetime(2025, 5, 12, 22, 32, 57), 'result': '0.04863725931570437', 'result_long': None, 'result_double': None}] Qualite : 0.04863725931570437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22896795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896795_12-05-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22896795 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896795_12-05-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22896807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22896808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22896809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22896810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22896811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22896812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22896813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22896814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22896815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22896816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22896817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22896818, 'pht': 3726}}" where mtr_portfolio_id = 22896795 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22896795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523248, 0.04863725931570437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22896795_12-05-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22896807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22896808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22896809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22896810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22896811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22896812, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22896813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22896814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22896815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22896816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22896817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22896818, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22897170 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2830942, 'mtr_portfolio_id': 22897170, 'created_at': datetime.datetime(2025, 5, 12, 22, 48, 57), 'result': '0.06928047341130396', 'result_long': None, 'result_double': None}] Qualite : 0.06928047341130396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22897170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897170_12-05-2025_22_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22897170 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897170_12-05-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897244, 'pht': 3726}}" where mtr_portfolio_id = 22897170 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22897170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523249, 0.06928047341130396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897170_12-05-2025_22_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897244, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22897611 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2831099, 'mtr_portfolio_id': 22897611, 'created_at': datetime.datetime(2025, 5, 12, 23, 4, 58), 'result': '0.04249634950141262', 'result_long': None, 'result_double': None}] Qualite : 0.04249634950141262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22897611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897611_12-05-2025_23_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22897611 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897611_12-05-2025_23_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897662, 'pht': 3726}}" where mtr_portfolio_id = 22897611 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22897611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523250, 0.04249634950141262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897611_12-05-2025_23_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897662, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22897948 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834347, 'mtr_portfolio_id': 22897948, 'created_at': datetime.datetime(2025, 5, 13, 6, 2, 58), 'result': '0.051616984339805515', 'result_long': None, 'result_double': None}] Qualite : 0.051616984339805515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22897948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897948_13-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22897948 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897948_13-05-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897971, 'pht': 3726}}" where mtr_portfolio_id = 22897948 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22897948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523251, 0.051616984339805515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22897948_13-05-2025_06_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22897960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22897961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22897962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22897963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22897964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22897965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22897966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22897967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22897968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22897969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22897970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22897971, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22898391 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834348, 'mtr_portfolio_id': 22898391, 'created_at': datetime.datetime(2025, 5, 13, 6, 3, 30), 'result': '0.043820001616601115', 'result_long': None, 'result_double': None}] Qualite : 0.043820001616601115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22898391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898391_13-05-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22898391 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898391_13-05-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22898404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898415, 'pht': 3726}}" where mtr_portfolio_id = 22898391 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22898391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523252, 0.043820001616601115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898391_13-05-2025_06_03_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22898404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898415, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22898893 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834349, 'mtr_portfolio_id': 22898893, 'created_at': datetime.datetime(2025, 5, 13, 6, 4), 'result': '0.04453974333372986', 'result_long': None, 'result_double': None}] Qualite : 0.04453974333372986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22898893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898893_13-05-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22898893 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898893_13-05-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22898946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898952, 'pht': 3726}}" where mtr_portfolio_id = 22898893 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22898893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523253, 0.04453974333372986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22898893_13-05-2025_06_04_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22898941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22898942, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22898943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22898944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22898945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22898946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22898947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22898948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22898949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22898950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22898951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22898952, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22899211 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2834350, 'mtr_portfolio_id': 22899211, 'created_at': datetime.datetime(2025, 5, 13, 8, 1, 29), 'result': '0.04102203537463978', 'result_long': None, 'result_double': None}] Qualite : 0.04102203537463978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22899211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22899211 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899238, 'pht': 3726}}" where mtr_portfolio_id = 22899211 and dashboard_run_id = 1808299 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22899211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10523254, 0.04102203537463978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22899211_13-05-2025_08_01_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22899227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22899228, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22899229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22899230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22899231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22899232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22899233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22899234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22899235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22899236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22899237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22899238, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22870059,22870688,22870938,22871209,22871504,22871877,22872299,22872664,22872974,22873517,22873640,22873979,22874526,22875040,22875456,22876020,22877171,22877447,22877667,22878347,22878417,22878904,22879253,22879770,22880147,22880563,22880960,22883004,22883261,22883587,22883946,22884410,22884777,22885092,22885757,22886538,22887035,22887846,22888715,22889070,22889516,22891103,22891483,22891980,22892560,22893141,22893475,22893969,22896531,22896795,22897170,22897611,22897948,22898391,22898893,22899211) result : ((1357593698,), (1357593717,), (1357593847,), (1357593880,), (1357593915,), (1357593940,), (1357594109,), (1357594311,), (1357594320,), (1357594322,), (1357594330,), (1357594594,), (1357594651,), (1357594652,), (1357594653,), (1357594656,), (1357594769,), (1357594771,), (1357594834,), (1357594860,), (1357594862,), (1357594952,), (1357594953,), (1357594955,), (1357594959,), (1357594984,), (1357594987,), (1357595394,), (1357595430,), (1357595457,), (1357595532,), (1357595561,), (1357595588,), (1357595936,), (1357595938,), (1357595939,), (1357595940,), (1357595941,), (1357596122,), (1357596167,), (1357596185,), (1357596271,), (1357596448,), (1357596683,), (1357597103,), (1357597211,), (1357597213,), (1357597214,), (1357597216,), (1357597240,), (1357597244,), (1357597246,), (1357597247,), (1357597248,), (1357597266,), (1357597268,), (1357597272,), (1357597331,), (1357597335,), (1357597339,), (1357597341,), (1357597362,), (1357597365,), (1357597366,), (1357597368,), (1357597370,), (1357597371,), (1357597393,), (1357597395,), (1357597398,), (1357597399,), (1357597400,), (1357597418,), (1357597421,), (1357597422,), (1357597480,), (1357597483,), (1357597488,), (1357597489,), (1357597490,), (1357597510,), (1357597512,), (1357597513,), (1357597514,), (1357597515,), (1357597516,), (1357597549,), (1357597553,), (1357597555,), (1357597603,), (1357597599,), (1357597601,), (1357597602,), (1357597633,), (1357597636,), (1357597637,), (1357597638,), (1357597639,), (1357597656,), (1357597659,), (1357597660,), (1357597661,), (1357597662,), (1357597663,), (1357597681,), (1357597684,), (1357597686,), (1357597687,), (1357597707,), (1357597709,), (1357597714,), (1357597715,), (1357597731,), (1357597737,), (1357597741,), (1357597744,), (1357597747,), (1357597760,), (1357597764,), (1357597766,), (1357597792,), (1357597795,), (1357597797,), (1357597799,), (1357597801,), (1357597815,), (1357597818,), (1357597845,), (1357597846,), (1357597847,), (1357597848,), (1357597849,), (1357597890,), (1357597892,), (1357597893,), (1357597894,), (1357597922,), (1357597923,), (1357597924,), (1357597925,), (1357597946,), (1357597951,), (1357597954,), (1357597957,), (1357597960,), (1357597972,), (1357597975,), (1357597977,), (1357597978,), (1357597979,), (1357597980,), (1357597998,), (1357598003,), (1357598004,), (1357598006,), (1357598007,), (1357598044,), (1357598037,), (1357598038,), (1357598039,), (1357598040,), (1357598041,), (1357598059,), (1357598061,), (1357598062,), (1357598063,), (1357598065,), (1357598088,), (1357598091,), (1357598115,), (1357598117,), (1357598119,), (1357598121,), (1357598123,), (1357598125,), (1357598143,), (1357598147,), (1357598150,), (1357598152,), (1357598153,), (1357598154,), (1357598189,), (1357598192,), (1357598194,), (1357598223,), (1357598226,), (1357598228,), (1357598229,), (1357598244,), (1357598248,), (1357598250,), (1357598253,), (1357598279,), (1357598295,), (1357598296,), (1357598297,), (1357598299,), (1357598315,), (1357598318,), (1357598320,), (1357598322,), (1357598352,), (1357598354,), (1357598357,), (1357598360,), (1357598362,), (1357598375,), (1357598378,), (1357598381,), (1357598384,), (1357598386,), (1357598413,), (1357598416,), (1357598418,), (1357598420,), (1357598422,), (1357598450,), (1357598454,), (1357598461,), (1357598465,), (1357598475,), (1357598476,), (1357598477,), (1357598478,), (1357598480,), (1357598481,), (1357598482,), (1357598485,), (1357598486,), (1357598492,), (1357598520,), (1357598512,), (1357598514,), (1357598516,), (1357598518,), (1357598535,), (1357598538,), (1357598541,), (1357598543,), (1357598545,), (1357598547,), (1357598569,), (1357598570,), (1357598593,), (1357598596,), (1357598615,), (1357598618,), (1357598621,), (1357598647,), (1357598648,), (1357598651,), (1357598654,), (1357598658,), (1357598684,), (1357598685,), (1357598687,), (1357598689,), (1357598692,), (1357598718,), (1357598719,), (1357598720,), (1357598721,), (1357598722,), (1357598724,), (1357598748,), (1357598749,), (1357598751,), (1357598778,), (1357598779,), (1357598780,), (1357598781,), (1357598782,), (1357598835,), (1357598836,), (1357598837,), (1357598838,), (1357598839,), (1357598840,), (1357598866,), (1357598868,), (1357598869,), (1357598870,), (1357598897,), (1357598900,), (1357598904,), (1357598909,), (1357598912,), (1357598914,), (1357598934,), (1357598935,), (1357598936,), (1357598937,), (1357598957,), (1357598970,), (1357598973,), (1357598974,), (1357598975,), (1357598977,), (1357599007,), (1357599000,), (1357599003,), (1357599004,), (1357599005,), (1357599006,), (1357599027,), (1357599029,), (1357599031,), (1357599032,), (1357599064,), (1357599065,), (1357599066,), (1357599067,), (1357599069,), (1357599098,), (1357599099,), (1357599100,), (1357599101,), (1357599102,), (1357599137,), (1357599138,), (1357599140,), (1357599141,), (1357599142,), (1357599189,), (1357599194,), (1357599196,), (1357599197,), (1357599198,), (1357599200,), (1357599239,), (1357599240,), (1357599241,), (1357599282,), (1357599284,), (1357599286,), (1357599289,), (1357599292,), (1357599319,), (1357599321,), (1357599322,), (1357599323,), (1357599325,), (1357599327,), (1357599357,), (1357599359,), (1357599360,), (1357599362,), (1357599389,), (1357599391,), (1357599392,), (1357599393,), (1357599403,), (1357599420,), (1357599423,), (1357599425,), (1357599426,), (1357599427,), (1357599429,), (1357599468,), (1357599471,), (1357599472,), (1357599473,), (1357599502,), (1357599504,), (1357599505,), (1357599506,), (1357599507,), (1357599535,), (1357599537,), (1357599540,), (1357599543,), (1357599546,), (1357599582,), (1357599572,), (1357599577,), (1357599579,), (1357599608,), (1357599612,), (1357599614,), (1357599617,), (1357599619,), (1357599639,), (1357599642,), (1357599644,), (1357599646,), (1357599650,), (1357599652,), (1357599682,), (1357599684,), (1357599686,), (1357599713,), (1357599717,), (1357599718,), (1357599719,), (1357599721,), (1357599745,), (1357599749,), (1357599750,), (1357599752,), (1357599777,), (1357599778,), (1357599779,), (1357599781,), (1357599784,), (1357599830,), (1357599831,), (1357599832,), (1357599867,), (1357599869,), (1357599872,), (1357599874,), (1357599877,), (1357599905,), (1357599907,), (1357599908,), (1357599909,), (1357599956,), (1357599958,), (1357599960,), (1357599963,), (1357599989,), (1357599990,), (1357599991,), (1357600023,), (1357600025,), (1357600026,), (1357600027,), (1357600030,), (1357600031,), (1357600070,), (1357600072,), (1357600074,), (1357600076,), (1357600078,), (1357600106,), (1357600110,), (1357600113,), (1357600115,), (1357600146,), (1357600143,), (1357600144,), (1357600211,), (1357600213,), (1357600215,), (1357600218,), (1357600247,), (1357600250,), (1357600252,), (1357600254,), (1357600256,), (1357600258,), (1357600284,), (1357600287,), (1357600289,), (1357600322,), (1357600324,), (1357600326,), (1357600327,), (1357600357,), (1357600359,), (1357600360,), (1357600362,), (1357600364,), (1357600387,), (1357600390,), (1357600391,), (1357600420,), (1357600423,), (1357600425,), (1357600427,), (1357600429,), (1357600431,), (1357600453,), (1357600455,), (1357600457,), (1357600458,), (1357600460,), (1357600498,), (1357600500,), (1357600501,), (1357600502,), (1357600528,), (1357600529,), (1357600531,), (1357600534,), (1357600538,), (1357600541,), (1357600564,), (1357600567,), (1357600569,), (1357600570,), (1357600572,), (1357600575,), (1357600594,), (1357600598,), (1357600604,), (1357600607,), (1357600613,), (1357600657,), (1357600647,), (1357600650,), (1357600652,), (1357600655,), (1357600684,), (1357600686,), (1357600688,), (1357600690,), (1357600714,), (1357600716,), (1357600718,), (1357600721,), (1357600724,), (1357600728,), (1357600750,), (1357600753,), (1357600756,), (1357600757,), (1357600759,), (1357600784,), (1357600786,), (1357600788,), (1357600790,), (1357600791,), (1357600793,), (1357600817,), (1357600818,), (1357600820,), (1357600822,), (1357600825,), (1357600845,), (1357600846,), (1357600848,), (1357600876,), (1357600877,), (1357600879,), (1357600881,), (1357600883,), (1357600885,), (1357600915,), (1357600918,), (1357600921,), (1357600924,), (1357600928,), (1357600930,), (1357600953,), (1357600956,), (1357600960,), (1357600965,), (1357601002,), (1357601003,), (1357601005,), (1357601007,), (1357601011,), (1357601014,), (1357601034,), (1357601036,), (1357601039,), (1357601076,), (1357601078,), (1357601080,), (1357601082,), (1357601084,), (1357601109,), (1357601112,), (1357601114,), (1357601117,), (1357601120,), (1357601123,), (1357601155,), (1357601166,), (1357601169,), (1357601173,), (1357601204,), (1357601193,), (1357601195,), (1357601198,), (1357601200,), (1357601202,), (1357601222,), (1357601254,), (1357601256,), (1357601259,), (1357601262,), (1357601264,), (1357601287,), (1357601290,), (1357601291,), (1357601294,), (1357601322,), (1357601327,), (1357601331,), (1357601334,), (1357601336,), (1357601365,), (1357601366,), (1357601370,), (1357601373,), (1357601441,), (1357601445,), (1357601469,), (1357601470,), (1357601550,), (1357601553,), (1357601555,), (1357601557,), (1357601558,), (1357601595,), (1357601599,), (1357601602,), (1357601632,), (1357601634,), (1357601635,), (1357601637,), (1357601640,), (1357601642,), (1357601665,), (1357601667,), (1357601670,), (1357601674,), (1357601677,), (1357601679,), (1357601705,), (1357601707,), (1357601710,), (1357601751,), (1357601754,), (1357601757,), (1357601761,), (1357601771,), (1357601772,), (1357601795,), (1357601797,), (1357601800,), (1357601803,), (1357601804,), (1357601806,), (1357601829,), (1357601833,), (1357601835,), (1357601882,), (1357601868,), (1357601871,), (1357601874,), (1357601877,), (1357601880,), (1357601901,), (1357601904,), (1357601907,), (1357601932,), (1357601933,), (1357601935,), (1357601938,), (1357601941,), (1357601969,), (1357601974,), (1357601978,), (1357601980,), (1357602005,), (1357602087,), (1357602091,), (1357602094,), (1357602096,), (1357602117,), (1357602119,), (1357602120,), (1357602123,), (1357602126,), (1357602130,), (1357602144,), (1357602147,), (1357602191,), (1357602194,), (1357602197,), (1357602202,), (1357602204,), (1357602229,), (1357602233,), (1357602234,), (1357602236,), (1357602262,), (1357602264,), (1357602267,), (1357602269,), (1357602296,), (1357602300,), (1357602305,), (1357602311,), (1357602352,), (1357602358,), (1357602361,), (1357602364,), (1357602366,), (1357602415,), (1357602398,), (1357602406,), (1357602448,), (1357602451,), (1357602454,), (1357602456,), (1357602458,), (1357602462,), (1357602487,), (1357602489,), (1357602495,), (1357602499,), (1357602504,), (1357602507,), (1357602522,), (1357602524,), (1357602527,), (1357602565,), (1357602567,), (1357602570,), (1357602571,), (1357602573,), (1357602603,), (1357602608,), (1357602609,), (1357602611,), (1357602615,), (1357602642,), (1357602644,), (1357602647,), (1357602652,), (1357602661,), (1357602719,), (1357602743,), (1357602764,), (1357602771,), (1357602782,), (1357602785,), (1357602860,), (1357602863,), (1357602865,), (1357602867,), (1357602869,), (1357602894,), (1357602898,), (1357602903,), (1357602905,), (1357602947,), (1357602951,), (1357602958,), (1357602960,), (1357602964,), (1357602968,), (1357602992,), (1357602994,), (1357603299,), (1357603290,), (1357603292,), (1357603295,), (1357603339,), (1357603349,), (1357603352,), (1357603361,), (1357603366,), (1357603402,), (1357603405,), (1357603408,), (1357603411,), (1357603414,), (1357603416,), (1357603454,), (1357603456,), (1357603458,), (1357603536,), (1357603537,), (1357603539,), (1357603558,), (1357603571,), (1357603575,), (1357603666,), (1357603670,), (1357603675,), (1357603678,), (1357603684,), (1357603717,), (1357603764,), (1357603766,), (1357603770,), (1357603772,), (1357603777,), (1357603819,), (1357603822,), (1357603826,), (1357603831,), (1357603833,), (1357603835,), (1357603878,), (1357603884,), (1357603886,), (1357603898,), (1357603902,), (1357603967,), (1357603970,), (1357604007,), (1357604011,), (1357604114,), (1357604116,), (1357604118,), (1357604146,), (1357604212,), (1357604214,), (1357604216,), (1357604219,), (1357604519,), (1357604634,), (1357604637,), (1357604640,), (1357604646,), (1357604649,), (1357604652,), (1357604681,), (1357604686,), (1357604687,), (1357604689,), (1357604727,), (1357604720,), (1357604722,), (1357604724,), (1357604726,), (1357604759,), (1357604766,), (1357604768,), (1357604771,), (1357604775,), (1357604779,), (1357604856,), (1357604871,), (1357604874,), (1357605067,), (1357605106,), (1357605109,), (1357605112,), (1357605179,), (1357605184,), (1357605207,), (1357605216,), (1357605240,), (1357605293,), (1357605297,), (1357605300,), (1357605302,), (1357605303,), (1357605348,), (1357605354,), (1357605358,), (1357605361,), (1357605363,), (1357605395,), (1357605398,), (1357605401,), (1357605403,), (1357605405,), (1357605417,), (1357605439,), (1357605443,), (1357605447,), (1357605485,), (1357605488,), (1357605540,), (1357605618,), (1357605698,), (1357605705,), (1357605706,), (1357605711,), (1357605715,), (1357605752,), (1357605745,), (1357605747,), (1357605749,), (1357605751,), (1357605794,), (1357605797,), (1357605840,), (1357605844,), (1357605847,), (1357605889,), (1357605891,), (1357605892,), (1357605896,), (1357605899,), (1357605930,), (1357605933,), (1357605938,), (1357605942,), (1357605980,), (1357605981,), (1357605984,), (1357605986,), (1357605990,), (1357606023,), (1357606028,), (1357606032,), (1357606036,), (1357606064,), (1357606066,), (1357606068,), (1357606070,), (1357606072,), (1357606077,), (1357606114,), (1357606116,), (1357606119,), (1357606122,), (1357606194,), (1357606198,), (1357606224,), (1357606226,), (1357606238,), (1357606290,), (1357606292,), (1357606294,), (1357606296,), (1357606298,), (1357606301,), (1357606333,), (1357606336,), (1357606340,), (1357606343,), (1357606384,), (1357606387,), (1357606390,), (1357606392,), (1357606393,), (1357606423,), (1357606425,), (1357606428,), (1357606430,), (1357606431,), (1357606434,), (1357606468,), (1357606473,), (1357606477,), (1357606481,), (1357606539,), (1357606521,), (1357606524,), (1357606528,), (1357606532,), (1357606534,), (1357606564,), (1357606568,), (1357606571,), (1357606574,), (1357606577,), (1357606581,), (1357606607,), (1357606611,), (1357606616,), (1357606620,), (1357606625,), (1357606653,), (1357606656,), (1357606659,), (1357606662,), (1357606664,), (1357606669,), (1357606712,), (1357606731,), (1357606744,), (1357606752,), (1357606873,), (1357606881,), (1357606885,), (1357607051,), (1357607060,), (1357607102,), (1357607105,), (1357607115,), (1357607126,), (1357607203,), (1357607206,), (1357607210,), (1357607215,), (1357607219,), (1357607245,), (1357607250,), (1357607254,), (1357607331,), (1357607334,), (1357607347,), (1357607376,), (1357607405,), (1357607424,), (1357607484,), (1357607498,), (1357607504,), (1357607507,), (1357607511,), (1357607624,), (1357607628,), (1357607630,), (1357607772,), (1357607777,), (1357607843,), (1357607854,), (1357607862,), (1357607892,), (1357607893,), (1357607895,), (1357607896,), (1357607899,), (1357607900,), (1357607922,), (1357607925,), (1357610921,), (1357610917,), (1357610919,), (1357610952,), (1357610954,), (1357610956,), (1357610958,), (1357610961,), (1357610964,), (1357610984,), (1357610987,), (1357610989,), (1357611088,), (1357611090,), (1357611118,), (1357611122,), (1357611125,), (1357611127,), (1357611128,), (1357611151,), (1357611154,), (1357611156,), (1357611159,), (1357611161,), (1357611194,), (1357611196,), (1357611199,), (1357611230,), (1357611232,), (1357611234,), (1357611236,), (1357611264,), (1357611265,), (1357611295,), (1357611298,), (1357611301,), (1357611304,), (1357611336,), (1357611338,), (1357611340,), (1357611343,), (1357611374,), (1357611378,), (1357611388,), (1357611401,), (1357611594,), (1357611648,), (1357611649,), (1357611651,), (1357611653,), (1357611656,), (1357611681,), (1357611684,), (1357611687,), (1357611690,), (1357611695,), (1357611696,), (1357611725,), (1357611727,), (1357611755,), (1357611757,), (1357611760,), (1357611761,), (1357611763,), (1357611793,), (1357611795,), (1357611801,), (1357611856,), (1357611947,), (1357611981,), (1357612002,), (1357612091,), (1357612096,), (1357612098,), (1357612109,), (1357612112,), (1357612203,), (1357612204,), (1357612206,), (1357612209,), (1357612327,), (1357612329,), (1357612331,), (1357612332,), (1357612357,), (1357612359,), (1357612396,), (1357612400,), (1357612402,), (1357612431,), (1357612438,), (1357612445,), (1357612509,), (1357612514,), (1357612522,), (1357612580,), (1357612567,), (1357612573,), (1357612635,), (1357612639,), (1357612643,), (1357612681,), (1357612684,), (1357612688,), (1357612691,), (1357612694,), (1357612699,), (1357612727,), (1357612732,), (1357612734,), (1357612736,), (1357612740,), (1357612772,), (1357612776,), (1357612787,), (1357612791,), (1357612794,), (1357612816,), (1357612822,), (1357612827,), (1357612860,), (1357612865,), (1357612869,), (1357612872,), (1357612875,), (1357613008,), (1357613024,), (1357613053,), (1357613082,), (1357613088,), (1357613108,), (1357613198,), (1357613200,), (1357613204,), (1357613207,), (1357613315,), (1357613321,), (1357613325,), (1357613384,), (1357613387,), (1357613390,), (1357613404,), (1357613436,), (1357613459,), (1357613484,), (1357613487,), (1357613489,), (1357613494,), (1357613532,), (1357613537,), (1357613540,), (1357614565,), (1357614690,), (1357614693,), (1357614696,), (1357614699,), (1357614702,), (1357614707,), (1357614734,), (1357614741,), (1357614746,), (1357614751,), (1357614807,), (1357614782,), (1357614786,), (1357614795,), (1357614798,), (1357614803,), (1357614872,), (1357614876,), (1357614881,), (1357614941,), (1357614952,), (1357614956,), (1357614960,), (1357615338,), (1357615345,), (1357615374,), (1357615415,), (1357615434,), (1357615437,), (1357615440,), (1357615444,), (1357615449,), (1357615452,), (1357615470,), (1357615473,), (1357615478,), (1357615517,), (1357615520,), (1357615524,), (1357615528,), (1357615632,), (1357615640,), (1357615645,), (1357615650,), (1357615652,), (1357615678,), (1357615682,), (1357615684,), (1357615687,), (1357615691,), (1357615694,), (1357615725,), (1357615730,), (1357615733,), (1357615735,), (1357615770,), (1357615778,), (1357615875,), (1357615893,), (1357615915,), (1357615919,), (1357615924,), (1357616019,), (1357616022,), (1357616025,), (1357616028,), (1357616092,), (1357616098,), (1357616103,), (1357616157,), (1357616139,), (1357616144,), (1357616149,), (1357616153,), (1357616180,), (1357616191,), (1357616194,), (1357616200,), (1357616204,), (1357616208,), (1357616231,), (1357616237,), (1357616240,), (1357616244,), (1357616278,), (1357616283,), (1357616285,), (1357616287,), (1357616289,), (1357616294,), (1357616361,), (1357616366,), (1357616369,), (1357616372,), (1357616375,), (1357616379,), (1357616426,), (1357616432,), (1357616437,), (1357616483,), (1357616485,), (1357616487,), (1357616489,), (1357616496,), (1357616499,), (1357616533,), (1357616536,), (1357616539,), (1357616566,), (1357616570,), (1357616575,), (1357616611,), (1357616615,), (1357616617,), (1357616619,), (1357616623,), (1357616650,), (1357616664,), (1357616669,), (1357616674,), (1357616677,), (1357616679,), (1357616705,), (1357616709,), (1357616713,), (1357616717,), (1357616748,), (1357616752,), (1357616755,), (1357616757,), (1357616764,), (1357616766,), (1357616801,), (1357616806,), (1357616815,), (1357616822,), (1357616841,), (1357616846,), (1357616851,), (1357616854,), (1357616856,), (1357616926,), (1357616910,), (1357616916,), (1357616922,), (1357616977,), (1357616980,), (1357616982,), (1357616985,), (1357616989,), (1357617003,), (1357617044,), (1357617048,), (1357617050,), (1357617051,), (1357617054,), (1357617056,), (1357617087,), (1357617088,), (1357617091,), (1357617139,), (1357617143,), (1357617145,), (1357617147,), (1357617148,), (1357617151,), (1357617191,), (1357617208,), (1357617211,), (1357617225,), (1357617230,), (1357617234,), (1357617279,), (1357617280,), (1357617281,), (1357617283,), (1357617316,), (1357617318,), (1357617321,), (1357617324,), (1357617326,), (1357617329,), (1357617486,), (1357617725,), (1357617756,), (1357617770,), (1357617818,), (1357617822,), (1357617827,), (1357617832,), (1357617833,), (1357617837,), (1357617872,), (1357617876,), (1357617878,), (1357617923,), (1357617928,), (1357617933,), (1357617938,), (1357617992,), (1357617976,), (1357617980,), (1357617983,), (1357617986,), (1357618100,), (1357618104,), (1357618108,), (1357618111,), (1357618139,), (1357618143,), (1357618147,), (1357618151,), (1357618154,), (1357618203,), (1357618207,), (1357618211,), (1357618216,), (1357618229,), (1357618312,), (1357618317,), (1357618323,), (1357618324,), (1357618327,), (1357618330,), (1357618481,), (1357618484,), (1357618487,), (1357618520,), (1357618524,), (1357618527,), (1357618529,), (1357618530,), (1357618614,), (1357619190,), (1357619194,), (1357619199,), (1357619202,), (1357619257,), (1357619262,), (1357619264,), (1357619266,), (1357619268,), (1357619271,), (1357619299,), (1357619303,), (1357619311,), (1357619317,), (1357619353,), (1357619355,), (1357619359,), (1357619362,), (1357619364,), (1357619367,), (1357619402,), (1357619405,), (1357619410,), (1357619412,), (1357619415,), (1357619445,), (1357619450,), (1357619454,), (1357619489,), (1357619491,), (1357619494,), (1357619497,), (1357619498,), (1357619502,), (1357619532,), (1357619535,), (1357619539,), (1357619542,), (1357619547,), (1357619550,), (1357619599,), (1357619592,), (1357619596,), (1357619636,), (1357619639,), (1357619641,), (1357619642,), (1357619673,), (1357619675,), (1357619678,), (1357619681,), (1357619682,), (1357619726,), (1357619729,), (1357619732,), (1357619736,), (1357619737,), (1357619799,), (1357619803,), (1357619807,), (1357619809,), (1357619811,), (1357619886,), (1357619889,), (1357619897,), (1357619903,), (1357619906,), (1357619908,), (1357619997,), (1357620002,), (1357620003,), (1357620143,), (1357620145,), (1357620147,), (1357620150,), (1357620152,), (1357620155,), (1357620185,), (1357620188,), (1357620190,), (1357620192,), (1357620238,), (1357620243,), (1357620247,), (1357620251,), (1357620254,), (1357620293,), (1357620295,), (1357620297,), (1357620358,), (1357620362,), (1357620381,), (1357620409,), (1357620438,), (1357620444,), (1357620527,), (1357620529,), (1357620531,), (1357620669,), (1357620672,), (1357620675,), (1357620680,), (1357620710,), (1357620739,), (1357620806,), (1357620810,), (1357620813,), (1357620815,), (1357620816,), (1357620859,), (1357620850,), (1357620853,), (1357620855,), (1357620896,), (1357620899,), (1357620902,), (1357620905,), (1357620909,), (1357620913,), (1357620954,), (1357620958,), (1357620960,), (1357620961,), (1357620964,), (1357620997,), (1357620999,), (1357621000,), (1357621002,), (1357621007,), (1357621037,), (1357621042,), (1357621046,), (1357621049,), (1357621054,), (1357621058,), (1357621088,), (1357621092,), (1357621109,), (1357621111,), (1357621231,), (1357621252,), (1357621271,), (1357621367,), (1357621396,), (1357621426,), (1357621453,), (1357621454,), (1357621488,), (1357621491,), (1357621493,), (1357621495,), (1357621496,), (1357621499,), (1357621532,), (1357621534,), (1357621538,), (1357621571,), (1357621573,), (1357621575,), (1357621578,), (1357622065,), (1357622045,), (1357622052,), (1357622060,), (1357622097,), (1357622102,), (1357622105,), (1357622108,), (1357622141,), (1357622145,), (1357622149,), (1357622153,), (1357622157,), (1357622160,), (1357622182,), (1357622185,), (1357622189,), (1357622193,), (1357622199,), (1357622203,), (1357622325,), (1357622337,), (1357622348,), (1357622364,), (1357622409,), (1357622417,), (1357622422,), (1357622430,), (1357622433,), (1357622444,), (1357622485,), (1357622508,), (1357622534,), (1357622724,), (1357622751,), (1357622756,), (1357622761,), (1357622776,), (1357622811,), (1357622847,), (1357622859,), (1357622886,), (1357622914,), (1357623250,), (1357623255,), (1357623260,), (1357623265,), (1357623270,), (1357623289,), (1357623442,), (1357623445,), (1357623449,), (1357623579,), (1357623582,), (1357627568,), (1357637218,), (1357637267,), (1357637272,), (1357637276,), (1357637279,), (1357637387,), (1357637430,), (1357637458,), (1357637509,), (1357637539,), (1357637848,), (1357637880,), (1357637910,), (1357637942,), (1357637996,), (1357638002,), (1357638005,), (1357638010,), (1357638017,), (1357638021,), (1357638421,), (1357638450,), (1357638498,), (1357638552,), (1357638607,), (1357638634,), (1357638873,), (1357638900,), (1357638992,), (1357639007,), (1357639011,), (1357639019,), (1357639050,), (1357639418,), (1357639441,), (1357639448,), (1357639615,), (1357639684,), (1357639751,), (1357639806,), (1357639861,), (1357639928,), (1357640536,), (1357640595,), (1357640650,), (1357640684,), (1357640854,), (1357640889,), (1357640916,), (1357640924,), (1357640927,), (1357640931,), (1357640965,), (1357640969,), (1357640972,), (1357640975,), (1357640979,), (1357641037,), (1357641015,), (1357641020,), (1357641023,), (1357641027,), (1357641032,), (1357641091,), (1357641102,), (1357641108,), (1357641113,), (1357641203,), (1357641230,), (1357641257,), (1357641279,), (1357641284,), (1357641321,), (1357641323,), (1357641326,), (1357641330,), (1357641334,), (1357641379,), (1357641384,), (1357641389,), (1357641452,), (1357641457,), (1357641461,), (1357641465,), (1357641612,), (1357641617,), (1357641620,), (1357641640,), (1357641666,), (1357641759,), (1357641763,), (1357641767,), (1357641813,), (1357641817,), (1357641819,), (1357641821,), (1357641824,), (1357641827,), (1357641860,), (1357641865,), (1357641883,), (1357641887,), (1357641954,), (1357641957,), (1357641959,), (1357641962,), (1357642058,), (1357642085,), (1357642089,), (1357642093,), (1357642099,), (1357642108,), (1357642145,), (1357642151,), (1357642157,), (1357642164,), (1357642237,), (1357642239,), (1357642242,), (1357642245,), (1357642247,), (1357642250,), (1357642287,), (1357642292,), (1357642295,), (1357642298,), (1357642376,), (1357642365,), (1357642368,), (1357642371,), (1357642374,), (1357642420,), (1357642423,), (1357642426,), (1357642428,), (1357642430,), (1357642475,), (1357642477,), (1357642479,), (1357642482,), (1357642485,), (1357642523,), (1357642526,), (1357642528,), (1357642598,), (1357642613,), (1357642617,), (1357642623,), (1357642651,), (1357642657,), (1357642694,), (1357642701,), (1357642704,), (1357642708,), (1357642746,), (1357642750,), (1357642754,), (1357642757,), (1357642761,), (1357642766,), (1357642804,), (1357642809,), (1357642810,), (1357642811,), (1357642878,), (1357642881,), (1357642885,), (1357642889,), (1357642892,), (1357642929,), (1357642932,), (1357642934,), (1357642937,), (1357643025,), (1357643551,), (1357643606,), (1357643631,), (1357643665,), (1357643693,), (1357644005,), (1357644052,), (1357644077,), (1357644101,), (1357644104,), (1357644258,), (1357644262,), (1357644265,), (1357644268,), (1357644272,), (1357644290,), (1357644416,), (1357644418,), (1357644419,), (1357644420,), (1357644644,), (1357644657,), (1357644661,), (1357644666,), (1357644670,), (1357644673,), (1357644702,), (1357644694,), (1357644697,), (1357644698,), (1357644700,), (1357644749,), (1357644751,), (1357644754,), (1357644757,), (1357644760,), (1357644762,), (1357644790,), (1357644794,), (1357644797,), (1357644799,), (1357644829,), (1357644831,), (1357644834,), (1357644837,), (1357644840,), (1357644869,), (1357644872,), (1357644873,), (1357644875,), (1357644878,), (1357644943,), (1357644945,), (1357644947,), (1357644950,), (1357644952,), (1357644955,), (1357644987,), (1357644990,), (1357644993,), (1357645032,), (1357645034,), (1357645037,), (1357645040,), (1357645043,), (1357645046,), (1357645086,), (1357645088,), (1357645090,), (1357645094,), (1357645095,), (1357645133,), (1357645134,), (1357645136,), (1357645138,), (1357645139,), (1357645143,), (1357645187,), (1357645190,), (1357645193,), (1357645195,), (1357645198,), (1357645236,), (1357645238,), (1357645241,), (1357645244,), (1357645301,), (1357645305,), (1357645309,), (1357645312,), (1357645318,), (1357645320,), (1357645376,), (1357645383,), (1357645390,), (1357645399,), (1357645407,), (1357645414,), (1357645491,), (1357645468,), (1357645475,), (1357645481,), (1357645485,), (1357645527,), (1357645547,), (1357645551,), (1357645555,), (1357645624,), (1357645627,), (1357645629,), (1357645672,), (1357645675,), (1357645679,), (1357645684,), (1357645689,), (1357645691,), (1357645721,), (1357645725,), (1357645728,), (1357645732,), (1357645769,), (1357645774,), (1357645778,), (1357645781,), (1357645783,), (1357645788,), (1357645824,), (1357645829,), (1357645834,), (1357645839,), (1357645844,), (1357645873,), (1357645878,), (1357645882,), (1357645885,), (1357645890,), (1357645895,), (1357645925,), (1357645929,), (1357645933,), (1357645937,), (1357645971,), (1357645977,), (1357645981,), (1357645986,), (1357645991,), (1357646038,), (1357646041,), (1357646045,), (1357646049,), (1357646054,), (1357646058,), (1357646088,), (1357646093,), (1357646097,), (1357646103,), (1357646147,), (1357646152,), (1357646157,), (1357646160,), (1357646174,), (1357646177,), (1357646221,), (1357646223,), (1357646226,), (1357646229,), (1357646266,), (1357646270,), (1357646275,), (1357646281,), (1357646289,), (1357646295,), (1357646329,), (1357646318,), (1357646321,), (1357646325,), (1357646365,), (1357646368,), (1357646372,), (1357646376,), (1357646381,), (1357646383,), (1357646422,), (1357646426,), (1357646429,), (1357646433,), (1357646439,), (1357646443,), (1357646475,), (1357646479,), (1357646482,), (1357646514,), (1357646517,), (1357646522,), (1357646527,), (1357646533,), (1357646539,), (1357646589,), (1357646593,), (1357646597,), (1357646601,), (1357646606,), (1357646629,), (1357646631,), (1357646635,), (1357646639,), (1357646643,), (1357646647,), (1357646679,), (1357646684,), (1357646688,), (1357646726,), (1357646730,), (1357646733,), (1357646736,), (1357646740,), (1357646773,), (1357646777,), (1357646781,), (1357646786,), (1357646789,), (1357646823,), (1357646826,), (1357646829,), (1357646833,), (1357646836,), (1357646863,), (1357646867,), (1357646871,), (1357646874,), (1357646877,), (1357646907,), (1357646915,), (1357646918,), (1357646923,), (1357646954,), (1357646959,), (1357646963,), (1357646966,), (1357646968,), (1357647014,), (1357647020,), (1357647024,), (1357647029,), (1357647034,), (1357647092,), (1357647075,), (1357647081,), (1357647085,), (1357647087,), (1357647126,), (1357647129,), (1357647132,), (1357647135,), (1357647139,), (1357647168,), (1357647173,), (1357647176,), (1357647178,), (1357647182,), (1357647187,), (1357647231,), (1357647235,), (1357647240,), (1357647245,), (1357647278,), (1357647283,), (1357647286,), (1357647289,), (1357647292,), (1357647317,), (1357647320,), (1357647324,), (1357647327,), (1357647333,), (1357647359,), (1357647363,), (1357647366,), (1357647369,), (1357647422,), (1357647427,), (1357647432,), (1357647444,), (1357647473,), (1357647503,), (1357647775,), (1357647805,), (1357647831,), (1357648152,), (1357648287,), (1357648336,), (1357648373,), (1357648403,), (1357648445,), (1357648724,), (1357648733,), (1357648764,), (1357648805,), (1357649118,), (1357649123,), (1357649126,), (1357649129,), (1357649133,), (1357649158,), (1357649432,), (1357649438,), (1357649443,), (1357649465,), (1357649495,), (1357649562,), (1357649566,), (1357649580,), (1357649586,), (1357649591,), (1357649644,), (1357649649,), (1357649659,), (1357649688,), (1357649717,), (1357649748,), (1357650114,), (1357650018,), (1357650049,), (1357650085,), (1357650364,), (1357650367,), (1357650371,), (1357650374,), (1357650378,), (1357650667,), (1357650727,), (1357650775,), (1357650806,), (1357650861,), (1357651315,), (1357651489,), (1357651517,), (1357652058,), (1357652119,), (1357652164,), (1357652193,), (1357652321,), (1357652325,), (1357652328,), (1357652332,), (1357652598,), (1357652608,), (1357652612,), (1357652867,), (1357654042,), (1357654095,), (1357654124,), (1357654169,), (1357654215,), (1357654652,), (1357654682,), (1357654712,), (1357654745,), (1357654816,), (1357654842,), (1357654979,), (1357655014,), (1357655038,), (1357655040,), (1357655288,), (1357655338,), (1357655395,), (1357655430,), (1357655471,), (1357655526,), (1357655843,), (1357655847,), (1357655864,), (1357655909,), (1357655922,), (1357656028,), (1357656036,), (1357656042,), (1357656049,), (1357656070,), (1357656071,), (1357656076,), (1357656078,), (1357656082,), (1357656083,), (1357656087,), (1357656088,), (1357656111,), (1357656102,), (1357656106,), (1357656328,), (1357656364,), (1357656398,), (1357656451,), (1357656544,), (1357657150,), (1357657153,), (1357657158,), (1357657160,), (1357657270,), (1357657273,), (1357657276,), (1357657278,), (1357657280,), (1357657285,), (1357657554,), (1357657579,), (1357657604,), (1357657631,), (1357657962,), (1357658025,), (1357658053,), (1357658084,), (1357658111,), (1357658627,), (1357658703,), (1357658753,), (1357658811,), (1357658849,), (1357658882,), (1357659103,), (1357659107,), (1357659110,), (1357659112,), (1357659116,), (1357659119,), (1357659366,), (1357659413,), (1357659445,), (1357659471,), (1357659940,), (1357660041,), (1357660089,), (1357660141,), (1357660211,), (1357660278,), (1357660438,), (1357660491,), (1357660521,), (1357660549,), (1357661010,), (1357661039,), (1357661062,), (1357661089,), (1357661127,), (1357661310,), (1357661313,), (1357661316,), (1357661319,), (1357661321,), (1357661448,), (1357661452,), (1357661454,), (1357661456,), (1357661493,), (1357661550,), (1357661604,), (1357661657,), (1357662374,), (1357662149,), (1357662224,), (1357662256,), (1357662305,), (1357662345,), (1357662603,), (1357662634,), (1357662660,), (1357662663,), (1357662677,), (1357662921,), (1357662941,), (1357662968,), (1357662997,), (1357663030,), (1357663098,), (1357663123,), (1357663158,), (1357663209,), (1357663253,), (1357663347,), (1357663353,), (1357663356,), (1357663358,), (1357663422,), (1357663425,), (1357663428,), (1357663457,), (1357663490,), (1357663520,), (1357663731,), (1357663734,), (1357663738,), (1357663741,), (1357663778,), (1357663784,), (1357663789,), (1357663793,), (1357663808,), (1357664070,), (1357664103,), (1357664132,), (1357664158,), (1357664167,), (1357664309,), (1357664342,), (1357664375,), (1357664407,), (1357664438,), (1357664810,), (1357664856,), (1357664905,), (1357664935,), (1357665242,), (1357665293,), (1357665323,), (1357665355,), (1357665390,), (1357665570,), (1357665573,), (1357665576,), (1357665578,), (1357665598,), (1357665892,), (1357665911,), (1357665921,), (1357665926,), (1357665961,), (1357665965,), (1357666074,), (1357666112,), (1357666132,), (1357666166,), (1357666204,), (1357666352,), (1357666327,), (1357666330,), (1357666334,), (1357666577,), (1357666604,), (1357666648,), (1357666685,), (1357666688,), (1357666708,), (1357666755,), (1357666758,), (1357666761,), (1357666764,), (1357666819,), (1357666822,), (1357666826,), (1357666828,), (1357666831,), (1357666867,), (1357666869,), (1357666884,), (1357666910,), (1357666937,), (1357666965,), (1357667150,), (1357667178,), (1357667222,), (1357667273,), (1357667608,), (1357667634,), (1357667659,), (1357667686,), (1357667711,), (1357667737,), (1357668071,), (1357668097,), (1357668131,), (1357668207,), (1357668537,), (1357668541,), (1357668544,), (1357668546,), (1357668561,), (1357668610,), (1357669176,), (1357669204,), (1357669224,), (1357669228,), (1357669716,), (1357669753,), (1357669782,), (1357669832,), (1357669859,), (1357669939,), (1357669943,), (1357669949,), (1357670353,), (1357670408,), (1357670440,), (1357670490,), (1357670542,), (1357670863,), (1357670885,), (1357670911,), (1357670969,), (1357671154,), (1357671182,), (1357671201,), (1357671203,), (1357671206,), (1357671210,), (1357671406,), (1357671307,), (1357671334,), (1357671362,), (1357671390,), (1357671446,), (1357671455,), (1357671458,), (1357671465,), (1357671659,), (1357671689,), (1357671718,), (1357671732,), (1357671737,), (1357671880,), (1357671883,), (1357671887,), (1357671899,), (1357672001,), (1357672006,), (1357672012,), (1357672018,), (1357672024,), (1357672032,), (1357672108,), (1357672112,), (1357672118,), (1357672123,), (1357672154,), (1357672158,), (1357672163,), (1357672168,), (1357672173,), (1357672178,), (1357672203,), (1357672209,), (1357672215,), (1357672218,), (1357672222,), (1357672252,), (1357672256,), (1357672259,), (1357672261,), (1357672268,), (1357672321,), (1357672340,), (1357672344,), (1357672347,), (1357672351,), (1357672389,), (1357672391,), (1357672394,), (1357672396,), (1357672469,), (1357672474,), (1357672477,), (1357672480,), (1357672506,), (1357672537,), (1357672785,), (1357672819,), (1357672844,), (1357672871,), (1357672899,), (1357673381,), (1357673386,), (1357673394,), (1357673401,), (1357673409,), (1357673716,), (1357673683,), (1357673692,), (1357673699,), (1357673706,), (1357673847,), (1357673881,), (1357673908,), (1357673928,), (1357673991,), (1357674005,), (1357674010,), (1357674020,), (1357674053,), (1357674296,), (1357674325,), (1357674332,), (1357674335,), (1357674347,), (1357674357,), (1357674391,), (1357674395,), (1357674398,), (1357674402,), (1357674405,), (1357674430,), (1357674433,), (1357674437,), (1357674472,), (1357674475,), (1357674478,), (1357674482,), (1357674487,), (1357674489,), (1357674556,), (1357674567,), (1357674571,), (1357674576,), (1357674581,), (1357674618,), (1357674621,), (1357674624,), (1357674626,), (1357674631,), (1357674636,), (1357674664,), (1357674668,), (1357674673,), (1357674679,), (1357674730,), (1357674734,), (1357674739,), (1357674743,), (1357674748,), (1357674751,), (1357674779,), (1357674783,), (1357674787,), (1357674790,), (1357674792,), (1357674826,), (1357674831,), (1357674834,), (1357674837,), (1357674868,), (1357674874,), (1357674880,), (1357674885,), (1357674887,), (1357674891,), (1357674908,), (1357674910,), (1357674915,), (1357674918,), (1357674923,), (1357674974,), (1357674954,), (1357674959,), (1357674964,), (1357674966,), (1357674970,), (1357675000,), (1357675005,), (1357675009,), (1357675044,), (1357675049,), (1357675054,), (1357675059,), (1357675064,), (1357675068,), (1357675097,), (1357675101,), (1357675104,), (1357675107,), (1357675219,), (1357675222,), (1357675225,), (1357675230,), (1357675232,), (1357675235,), (1357675268,), (1357675270,), (1357675272,), (1357675274,), (1357675276,), (1357675313,), (1357675315,), (1357675318,), (1357675321,), (1357675323,), (1357675354,), (1357675357,), (1357675363,), (1357675367,), (1357675375,), (1357675391,), (1357675395,), (1357675398,), (1357675401,), (1357675402,), (1357675407,), (1357675441,), (1357675446,), (1357675451,), (1357675455,), (1357675488,), (1357675491,), (1357675494,), (1357675495,), (1357675499,), (1357675531,), (1357675537,), (1357675541,), (1357675544,), (1357675547,), (1357675551,), (1357675663,), (1357675748,), (1357675784,), (1357675787,), (1357676179,), (1357676183,), (1357676187,), (1357676194,), (1357676197,), (1357676202,), (1357676239,), (1357676242,), (1357676244,), (1357676246,), (1357676248,), (1357676253,), (1357676309,), (1357684782,), (1357687210,), (1357687238,), (1357687292,), (1357687339,), (1357687703,), (1357687751,), (1357687799,), (1357687853,), (1357687917,), (1357688483,), (1357688633,), (1357688708,), (1357688760,), (1357688811,), (1357688859,), (1357689379,), (1357689383,), (1357689386,), (1357689403,), (1357689427,), (1357689453,), (1357689658,), (1357689677,), (1357689679,), (1357689706,), (1357689737,), (1357690149,), (1357690181,), (1357690204,), (1357690206,), (1357690208,), (1357690429,), (1357690440,), (1357690442,), (1357690482,), (1357690488,), (1357690507,), (1357690561,), (1357690564,), (1357690567,), (1357690569,), (1357690601,), (1357690602,), (1357690604,), (1357690606,), (1357690608,), (1357690843,), (1357690852,), (1357690856,), (1357690859,), (1357690861,), (1357690864,), (1357691086,), (1357691043,), (1357691058,), (1357691204,), (1357691253,), (1357691303,), (1357691331,), (1357691356,), (1357691381,), (1357691547,), (1357691549,), (1357691554,), (1357691558,), (1357691650,), (1357691653,), (1357691656,), (1357691659,), (1357691662,), (1357691665,), (1357691711,), (1357691742,), (1357691770,), (1357691951,), (1357691964,), (1357691970,), (1357691980,), (1357691985,), (1357691988,), (1357692070,), (1357692075,), (1357692092,), (1357692142,), (1357692613,), (1357692643,), (1357692674,), (1357692702,), (1357692735,), (1357692769,), (1357693037,), (1357693067,), (1357693092,), (1357693119,), (1357693146,), (1357693596,), (1357693623,), (1357693640,), (1357693645,), (1357693652,), (1357693657,), (1357693761,), (1357693793,), (1357693822,), (1357693851,), (1357694060,), (1357694088,), (1357694118,), (1357694144,), (1357694202,), (1357694230,), (1357694649,), (1357694702,), (1357694746,), (1357694772,), (1357695187,), (1357695244,), (1357695293,), (1357695346,), (1357695400,), (1357695456,), (1357696169,), (1357696245,), (1357697090,), (1357696728,), (1357696804,), (1357696909,), (1357696988,), (1357697038,), (1357697665,), (1357697715,), (1357697780,), (1357697849,), (1357698947,), (1357699007,), (1357699062,), (1357699117,), (1357699181,), (1357699254,), (1357699577,), (1357699645,), (1357699730,), (1357699822,), (1357700458,), (1357700533,), (1357700592,), (1357700640,), (1357700698,), (1357700753,), (1357701232,), (1357701282,), (1357701319,), (1357701348,), (1357701807,), (1357701812,), (1357701815,), (1357701817,), (1357701820,), (1357701822,), (1357702023,), (1357702037,), (1357702049,), (1357702077,), (1357702387,), (1357702401,), (1357702453,), (1357702481,), (1357702509,), (1357702538,), (1357702616,), (1357702618,), (1357702620,), (1357702623,), (1357702918,), (1357702944,), (1357702980,), (1357703007,), (1357703036,), (1357703369,), (1357703397,), (1357703423,), (1357703452,), (1357703484,), (1357703740,), (1357703766,), (1357703790,), (1357703815,), (1357703843,), (1357704219,), (1357704224,), (1357704228,), (1357704235,), (1357704252,), (1357704282,), (1357704375,), (1357704403,), (1357704441,), (1357704581,), (1357704558,), (1357704571,), (1357704573,), (1357704575,), (1357704577,), (1357704616,), (1357704620,), (1357704624,), (1357704670,), (1357704876,), (1357704904,), (1357704942,), (1357704967,), (1357704992,), (1357704994,), (1357705010,), (1357705012,), (1357705015,), (1357705016,), (1357705232,), (1357705255,), (1357705305,), (1357705329,), (1357705334,), (1357705337,), (1357705350,), (1357705352,), (1357705354,), (1357705385,), (1357705387,), (1357705390,), (1357705393,), (1357705396,), (1357705398,), (1357705424,), (1357705427,), (1357705430,), (1357705432,), (1357705463,), (1357705464,), (1357705466,), (1357705468,), (1357705470,), (1357705473,), (1357705497,), (1357705498,), (1357705500,), (1357705502,), (1357705540,), (1357705542,), (1357705545,), (1357705548,), (1357705551,), (1357705554,), (1357705581,), (1357705585,), (1357705587,), (1357705589,), (1357705613,), (1357705615,), (1357705617,), (1357705619,), (1357705620,), (1357705623,), (1357705644,), (1357705647,), (1357705650,), (1357705652,), (1357705680,), (1357705682,), (1357705685,), (1357705687,), (1357705689,), (1357705692,), (1357706099,), (1357705931,), (1357706000,), (1357706040,), (1357706329,), (1357706357,), (1357706382,), (1357706410,), (1357706438,), (1357706718,), (1357706721,), (1357706723,), (1357706726,), (1357706730,), (1357706733,), (1357706748,), (1357706752,), (1357706755,), (1357707096,), (1357707102,), (1357707106,), (1357707123,), (1357707126,), (1357707130,), (1357707191,), (1357707218,), (1357707245,), (1357707272,), (1357707301,), (1357707385,), (1357707387,), (1357707389,), (1357707391,), (1357707394,), (1357707397,), (1357707605,), (1357707632,), (1357707662,), (1357707688,), (1357707772,), (1357707775,), (1357707779,), (1357707783,), (1357707787,), (1357707790,), (1357707807,), (1357707810,), (1357707815,), (1357707819,), (1357707839,), (1357707840,), (1357707843,), (1357707846,), (1357707848,), (1357708090,), (1357708118,), (1357708143,), (1357708175,), (1357708495,), (1357708522,), (1357708551,), (1357708584,), (1357708621,), (1357708660,), (1357708778,), (1357708785,), (1357708788,), (1357708803,), (1357708833,), (1357708999,), (1357709025,), (1357709028,), (1357709038,), (1357709320,), (1357709267,), (1357709294,), (1357709312,), (1357709315,), (1357709317,), (1357709415,), (1357709440,), (1357709469,), (1357709502,), (1357709619,), (1357709622,), (1357709625,), (1357709628,), (1357709632,), (1357709637,), (1357709658,), (1357709662,), (1357709666,), (1357709669,), (1357709697,), (1357709700,), (1357709702,), (1357709706,), (1357709710,), (1357709712,), (1357709748,), (1357709750,), (1357709753,), (1357709756,), (1357709842,), (1357709922,), (1357709965,), (1357709969,), (1357709973,), (1357709986,), (1357710072,), (1357710075,), (1357710079,), (1357710097,), (1357710100,), (1357710104,), (1357710118,), (1357710120,), (1357710479,), (1357710486,), (1357710493,), (1357710689,), (1357710692,), (1357710694,), (1357710697,), (1357710699,), (1357710709,), (1357710823,), (1357710824,), (1357710826,), (1357710853,), (1357710861,), (1357710865,), (1357710868,), (1357710872,), (1357710876,), (1357710898,), (1357710890,), (1357710892,), (1357710895,), (1357710925,), (1357710927,), (1357710929,), (1357710930,), (1357710932,), (1357710935,), (1357710965,), (1357710968,), (1357710971,), (1357710974,), (1357710976,), (1357711017,), (1357711019,), (1357711021,), (1357711023,), (1357711026,), (1357711080,), (1357711083,), (1357711086,), (1357711087,), (1357711122,), (1357711125,), (1357711128,), (1357711131,), (1357711134,), (1357711156,), (1357711159,), (1357711162,), (1357711164,), (1357711166,), (1357711168,), (1357711213,), (1357711215,), (1357711218,), (1357711221,), (1357711439,), (1357711441,), (1357711445,), (1357711482,), (1357711485,), (1357711487,), (1357711508,), (1357711510,), (1357711514,), (1357711840,), (1357711868,), (1357711896,), (1357711921,), (1357711950,), (1357711977,), (1357712244,), (1357712269,), (1357712295,), (1357712323,), (1357712655,), (1357712673,), (1357712687,), (1357720931,), (1357729553,), (1357729588,), (1357729592,), (1357729595,), (1357729597,), (1357729616,), (1357729620,), (1357729624,), (1357729628,), (1357729637,), (1357729674,), (1357729763,), (1357729772,), (1357729789,), (1357729791,), (1357729912,), (1357729948,), (1357729951,), (1357730382,), (1357730439,), (1357730492,), (1357730549,), (1357730964,), (1357731022,), (1357731098,), (1357731143,), (1357731267,), (1357731589,), (1357731625,), (1357732385,), (1357732416,), (1357732465,), (1357732769,), (1357732867,), (1357732894,), (1357732924,), (1357732951,), (1357733416,), (1357733452,), (1357733512,), (1357733540,), (1357733543,), (1357733546,), (1357733601,), (1357733554,), (1357733577,), (1357733952,), (1357733955,), (1357733958,), (1357733961,), (1357734187,), (1357734200,), (1357734203,), (1357734206,), (1357734209,), (1357734344,), (1357734371,), (1357734572,), (1357734652,), (1357734732,), (1357734890,), (1357734894,), (1357734896,), (1357734899,), (1357734903,), (1357734906,), (1357735005,), (1357735030,), (1357735071,), (1357735341,), (1357735345,), (1357735349,), (1357735352,), (1357735409,), (1357735412,), (1357735586,), (1357735676,), (1357735761,), (1357735770,), (1357735835,), (1357735839,), (1357735893,), (1357735898,), (1357735996,), (1357735999,), (1357736002,), (1357736005,), (1357736006,), (1357736050,), (1357736054,), (1357736057,), (1357736072,), (1357736075,), (1357736077,), (1357736116,), (1357736119,), (1357736122,), (1357736239,), (1357736179,), (1357736182,), (1357736195,), (1357736551,), (1357736554,), (1357736556,), (1357736559,), (1357736612,), (1357736639,), (1357736666,), (1357736733,), (1357736988,), (1357736990,), (1357736994,), (1357736997,), (1357737000,), (1357737018,), (1357737220,), (1357737249,), (1357737285,), (1357737315,), (1357737343,), (1357737639,), (1357737665,), (1357737695,), (1357737725,), (1357737754,), (1357737780,), (1357738050,), (1357738056,), (1357738068,), (1357738070,), (1357738277,), (1357738320,), (1357738356,), (1357738385,), (1357738423,), (1357738451,), (1357738847,), (1357738879,), (1357738904,), (1357738931,), (1357738960,), (1357739391,), (1357739452,), (1357739506,), (1357739566,), (1357739608,), (1357740033,), (1357740081,), (1357740129,), (1357740156,), (1357740183,), (1357740184,), (1357740210,), (1357740238,), (1357740273,), (1357740561,), (1357740575,), (1357740600,), (1357740626,), (1357740650,), (1357740676,), (1357740706,), (1357740708,), (1357740710,), (1357740712,), (1357740993,), (1357740984,), (1357740986,), (1357740988,), (1357740990,), (1357740991,), (1357741033,), (1357741035,), (1357741037,), (1357741039,), (1357741065,), (1357741067,), (1357741069,), (1357741071,), (1357741073,), (1357741074,), (1357741108,), (1357741110,), (1357741111,), (1357741113,), (1357741150,), (1357741181,), (1357741183,), (1357741185,), (1357741187,), (1357741218,), (1357741220,), (1357741222,), (1357741224,), (1357741226,), (1357741228,), (1357741250,), (1357741251,), (1357741253,), (1357741398,), (1357741420,), (1357741430,), (1357741431,), (1357741433,), (1357741435,), (1357741495,), (1357741497,), (1357741499,), (1357741501,), (1357741503,), (1357741531,), (1357741534,), (1357741535,), (1357741560,), (1357741561,), (1357741563,), (1357741565,), (1357741567,), (1357741590,), (1357741592,), (1357741594,), (1357741596,), (1357741621,), (1357741624,), (1357741627,), (1357741629,), (1357741635,), (1357741751,), (1357741755,), (1357741759,), (1357741765,), (1357741771,), (1357741856,), (1357741838,), (1357741844,), (1357741849,), (1357741852,), (1357741883,), (1357741890,), (1357741893,), (1357741896,), (1357741899,), (1357741902,), (1357741923,), (1357741934,), (1357741937,), (1357741940,), (1357742058,), (1357742060,), (1357742061,), (1357742064,), (1357742068,), (1357742071,), (1357742093,), (1357742095,), (1357742097,), (1357742099,), (1357742130,), (1357742133,), (1357742135,), (1357742136,), (1357742138,), (1357742139,), (1357742162,), (1357742165,), (1357742174,), (1357742176,), (1357742179,), (1357742268,), (1357742270,), (1357742272,), (1357742294,), (1357742445,), (1357742471,), (1357742497,), (1357742888,), (1357742914,), (1357742940,), (1357742967,), (1357742996,), (1357743024,), (1357743394,), (1357743422,), (1357743445,), (1357743525,), (1357743575,), (1357743624,), (1357743649,), (1357743674,), (1357743700,), (1357743869,), (1357743897,), (1357743924,), (1357743952,), (1357743981,), (1357743985,), (1357744008,), (1357744018,), (1357744043,), (1357744601,), (1357744597,), (1357744629,), (1357744631,), (1357744634,), (1357744637,), (1357744640,), (1357744642,), (1357744659,), (1357744662,), (1357744666,), (1357744669,), (1357744671,), (1357744684,), (1357744687,), (1357744689,), (1357744693,), (1357744736,), (1357744737,), (1357744738,), (1357744739,), (1357744781,), (1357744783,), (1357744785,), (1357744787,), (1357744788,), (1357744810,), (1357744812,), (1357744814,), (1357744816,), (1357744840,), (1357744842,), (1357744904,), (1357744907,), (1357744909,), (1357744910,), (1357744911,), (1357745004,), (1357745006,), (1357745008,), (1357745037,), (1357745038,), (1357745041,), (1357745046,), (1357745052,), (1357745399,), (1357745404,), (1357745411,), (1357745415,), (1357745454,), (1357745456,), (1357745458,), (1357745558,), (1357745559,), (1357745561,), (1357745563,), (1357745564,), (1357745594,), (1357745596,), (1357745598,), (1357745600,), (1357745602,), (1357745651,), (1357745646,), (1357745647,), (1357745649,), (1357745676,), (1357745678,), (1357745681,), (1357745709,), (1357745711,), (1357745713,), (1357745715,), (1357745717,), (1357745745,), (1357745747,), (1357745749,), (1357745751,), (1357745788,), (1357745792,), (1357745799,), (1357745865,), (1357745868,), (1357745871,), (1357745874,), (1357745877,), (1357745899,), (1357745902,), (1357745905,), (1357745908,), (1357745910,), (1357745913,), (1357745946,), (1357745949,), (1357745952,), (1357745980,), (1357746011,), (1357746015,), (1357746017,), (1357746268,), (1357746296,), (1357746323,), (1357746349,), (1357746655,), (1357746684,), (1357746712,), (1357746743,), (1357746771,), (1357746807,), (1357746875,), (1357746878,), (1357746880,), (1357746888,), (1357747243,), (1357747434,), (1357747438,), (1357747440,), (1357747441,), (1357747675,), (1357747662,), (1357747673,), (1357747704,), (1357747708,), (1357747712,), (1357747715,), (1357747718,), (1357747721,), (1357747753,), (1357747755,), (1357747757,), (1357747782,), (1357747784,), (1357747800,), (1357747838,), (1357747840,), (1357747841,), (1357747873,), (1357747875,), (1357747878,), (1357747880,), (1357747882,), (1357747907,), (1357747910,), (1357747912,), (1357747914,), (1357747916,), (1357747917,), (1357747939,), (1357747941,), (1357747943,), (1357747989,), (1357747992,), (1357747994,), (1357748107,), (1357748110,), (1357748113,), (1357748116,), (1357748119,), (1357748143,), (1357748145,), (1357748149,), (1357748154,), (1357748157,), (1357748171,), (1357748178,), (1357748181,), (1357748215,), (1357748224,), (1357748229,), (1357748232,), (1357748234,), (1357748323,), (1357748325,), (1357748329,), (1357748331,), (1357748334,), (1357748365,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12052025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22899211]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] map_info['map_portfolio_photo'] : {22899211: [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143, 1357748119, 1357748116, 1357748113, 1357748110, 1357748107, 1357747994, 1357747992, 1357747989, 1357747943, 1357747941, 1357747939, 1357747917, 1357747916, 1357747914, 1357747912, 1357747910, 1357747907, 1357747882, 1357747880, 1357747878, 1357747875, 1357747873, 1357747841, 1357747840, 1357747838, 1357747800, 1357747784, 1357747782, 1357747757, 1357747755, 1357747753, 1357747721, 1357747718, 1357747715, 1357747712, 1357747708, 1357747704, 1357747673, 1357747662]} final : True mtd_id 4302 list_pids : [1357748365, 1357748334, 1357748331, 1357748329, 1357748325, 1357748323, 1357748234, 1357748232, 1357748229, 1357748224, 1357748215, 1357748181, 1357748178, 1357748171, 1357748157, 1357748154, 1357748149, 1357748145, 1357748143] Looping around the photos to save general results len do output : 1 /22899211Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350') ('4302', None, None, None, None, None, None, None, '2834350') ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22899211', 'None', None, None, None, None, '2834350'), ('4302', '22899211', '1357748365', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748334', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748331', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748329', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748325', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748323', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748234', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748232', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748229', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748224', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748215', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748181', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748178', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748171', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748157', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748154', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748149', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748145', None, None, None, None, None, '2834350'), ('4302', '22899211', '1357748143', None, None, None, None, None, '2834350')] time used for this insertion : 0.2016892433166504 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.575989246368408 time spend to save output : 0.20200157165527344 total time spend for step 5 : 4.777990818023682 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2834350) 2.77user 2.63system 0:17.87elapsed 30%CPU (0avgtext+0avgdata 161920maxresident)k 1040inputs+21816outputs (13major+78180minor)pagefaults 0swaps