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 : 362427 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 (2718460) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2718460) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998614 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2718460'] with mtr_portfolio_ids : ['21998614'] and first list_photo_ids : [] new path : /proc/362427/ Name: python3 Umask: 0002 State: R (running) Tgid: 362427 Ngid: 0 Pid: 362427 PPid: 362426 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 362427 NSpid: 362427 NSpgid: 360776 NSsid: 360776 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97220 kB VmRSS: 97220 kB RssAnon: 59764 kB RssFile: 37456 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 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: 43 nonvoluntary_ctxt_switches: 163 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '362427', 'Ngid': '0', 'Pid': '362427', 'PPid': '362426', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '362427', 'NSpid': '362427', 'NSpgid': '360776', 'NSsid': '360776', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97220 kB', 'VmRSS': '97220 kB', 'RssAnon': '59764 kB', 'RssFile': '37456 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 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': '43', 'nonvoluntary_ctxt_switches': '163'} ('datou_batch_current', '362427', '1106932', '0', '1106932', '865680', '97220', b'', 'marlene', '2718460') 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 (21998614) 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 (2718460 ) ) 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 (21998614) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349494880, 'portfolio_id': 21998614}, {'photo_id': 1349494694, 'portfolio_id': 21998614}, {'photo_id': 1349494625, 'portfolio_id': 21998614}, {'photo_id': 1349494585, 'portfolio_id': 21998614}, {'photo_id': 1349494578, 'portfolio_id': 21998614}, {'photo_id': 1349494571, 'portfolio_id': 21998614}, {'photo_id': 1349494563, 'portfolio_id': 21998614}, {'photo_id': 1349494524, 'portfolio_id': 21998614}, {'photo_id': 1349494519, 'portfolio_id': 21998614}, {'photo_id': 1349494493, 'portfolio_id': 21998614}, {'photo_id': 1349494489, 'portfolio_id': 21998614}, {'photo_id': 1349494485, 'portfolio_id': 21998614}, {'photo_id': 1349494464, 'portfolio_id': 21998614}, {'photo_id': 1349494462, 'portfolio_id': 21998614}, {'photo_id': 1349494459, 'portfolio_id': 21998614}, {'photo_id': 1349494455, 'portfolio_id': 21998614}, {'photo_id': 1349494451, 'portfolio_id': 21998614}, {'photo_id': 1349494446, 'portfolio_id': 21998614}, {'photo_id': 1349494406, 'portfolio_id': 21998614}, {'photo_id': 1349494401, 'portfolio_id': 21998614}, {'photo_id': 1349494318, 'portfolio_id': 21998614}] map_portfolio_id_photo_id: {21998614: [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318]} ##### 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.013610124588012695 #### 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 Thu Apr 3 01:05: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 (21998614) 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 : 21998614 get user id for portfolio 21998614 get sub ptf for main ptf 21998614, type 3726 and hashtags ['Carton_brun', 'autre_refus', 'mal_croppe', 'Carton_gris', 'environnement', 'kraft', 'metal', 'plastique', 'Teint_Dans_La_Masse', 'papier', 'cartonnette', 'flou'] 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`=21998614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) 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`=21998614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21998614, 21998932, 3726, 0.5, 2107753024, 979], [21998614, 21998933, 3726, 0.5, 2107752406, 979], [21998614, 21998934, 3726, 0.5, 2107755527, 979], [21998614, 21998935, 3726, 0.5, 2107753020, 979], [21998614, 21998937, 3726, 0.5, 493012381, 979], [21998614, 21998938, 3726, 0.5, 493202403, 979], [21998614, 21998939, 3726, 0.5, 492628673, 979], [21998614, 21998941, 3726, 0.5, 492725882, 979], [21998614, 21998942, 3726, 0.5, 2107752385, 979], [21998614, 21998943, 3726, 0.5, 492668766, 979], [21998614, 21998944, 3726, 0.5, 702398920, 979], [21998614, 21998946, 3726, 0.5, 492777938, 979]] 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`=21998614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) 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`=21998614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21998614, 'sub_port_id': 21998932, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495338, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'autre_refus': {'main_port_id': 21998614, 'sub_port_id': 21998933, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495339, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'mal_croppe': {'main_port_id': 21998614, 'sub_port_id': 21998934, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495340, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'Carton_gris': {'main_port_id': 21998614, 'sub_port_id': 21998935, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495341, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'environnement': {'main_port_id': 21998614, 'sub_port_id': 21998937, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495342, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'kraft': {'main_port_id': 21998614, 'sub_port_id': 21998938, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495343, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'metal': {'main_port_id': 21998614, 'sub_port_id': 21998939, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495344, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'plastique': {'main_port_id': 21998614, 'sub_port_id': 21998941, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495345, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21998614, 'sub_port_id': 21998942, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495346, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'papier': {'main_port_id': 21998614, 'sub_port_id': 21998943, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495347, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'cartonnette': {'main_port_id': 21998614, 'sub_port_id': 21998944, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495348, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}, 'flou': {'main_port_id': 21998614, 'sub_port_id': 21998946, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495349, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998932 , 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=21998614 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 (21998932) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998933 , 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=21998614 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 (21998933) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998934 , 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=21998614 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 (21998934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998935 , 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=21998614 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 (21998935) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998937 , 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=21998614 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 (21998937) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998938 , 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=21998614 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 (21998938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998939 , 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=21998614 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 (21998939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998941 , 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=21998614 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 (21998941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998942 , 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=21998614 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 (21998942) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998943 , 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=21998614 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 (21998943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998944 , 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=21998614 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 (21998944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21998946 , 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=21998614 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 (21998946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21998614) result : ((1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=21998614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) 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`=21998614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__02042025_13_33_44_010142_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21998614, 21998953, 4417, 0.5, 2107753024, 979], [21998614, 21998954, 4417, 0.5, 2107752406, 979], [21998614, 21998955, 4417, 0.5, 2107755527, 979], [21998614, 21998956, 4417, 0.5, 2107753020, 979], [21998614, 21998957, 4417, 0.5, 493012381, 979], [21998614, 21998958, 4417, 0.5, 493202403, 979], [21998614, 21998959, 4417, 0.5, 492628673, 979], [21998614, 21998960, 4417, 0.5, 492725882, 979], [21998614, 21998961, 4417, 0.5, 2107752385, 979], [21998614, 21998962, 4417, 0.5, 492668766, 979], [21998614, 21998963, 4417, 0.5, 702398920, 979], [21998614, 21998964, 4417, 0.5, 492777938, 979]] 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`=21998614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) 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`=21998614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','mal_croppe','Carton_gris','environnement','kraft','metal','plastique','Teint_Dans_La_Masse','papier','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21998614, 'sub_port_id': 21998953, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495362, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'autre_refus': {'main_port_id': 21998614, 'sub_port_id': 21998954, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495363, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'mal_croppe': {'main_port_id': 21998614, 'sub_port_id': 21998955, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495364, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'Carton_gris': {'main_port_id': 21998614, 'sub_port_id': 21998956, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495365, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'environnement': {'main_port_id': 21998614, 'sub_port_id': 21998957, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495366, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'kraft': {'main_port_id': 21998614, 'sub_port_id': 21998958, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495367, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'metal': {'main_port_id': 21998614, 'sub_port_id': 21998959, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495368, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'plastique': {'main_port_id': 21998614, 'sub_port_id': 21998960, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495369, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21998614, 'sub_port_id': 21998961, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495370, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'papier': {'main_port_id': 21998614, 'sub_port_id': 21998962, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495371, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'cartonnette': {'main_port_id': 21998614, 'sub_port_id': 21998963, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495372, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}, 'flou': {'main_port_id': 21998614, 'sub_port_id': 21998964, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14495373, 'last_updated_at': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 1, 5, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 1, 5, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21998964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21998946 lien utilise dans velours : https://www.fotonower.com/velours/21998953,21998954,21998955,21998956,21998957,21998958,21998959,21998960,21998961,21998962,21998963,21998964?tags=Carton_brun,autre_refus,mal_croppe,Carton_gris,environnement,kraft,metal,plastique,Teint_Dans_La_Masse,papier,cartonnette,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21998614]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] map_info['map_portfolio_photo'] : {21998614: [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318]} final : False mtd_id 4302 list_pids : [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] Looping around the photos to save general results len do output : 1 /21998614. 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, '2718460') ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '21998614', "{'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946}", None, None, None, None, '2718460'), ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460')] time used for this insertion : 0.015810012817382812 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2090015411376953 time spend to save output : 0.016222238540649414 total time spend for step 1 : 2.2252237796783447 step2:final Thu Apr 3 01:05:30 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 (21998614) 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 21998614 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349494318,1349494406,1349494401,1349494464,1349494462,1349494459,1349494455,1349494451,1349494446,1349494493,1349494489,1349494485,1349494524,1349494519,1349494585,1349494578,1349494571,1349494563,1349494625,1349494880,1349494694); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21998614]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} new output for save of step final : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] map_info['map_portfolio_photo'] : {21998614: [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318]} final : False mtd_id 4302 list_pids : [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] Looping around the photos to save general results len do output : 21 /1349494880.Didn't retrieve data . /1349494694.Didn't retrieve data . /1349494625.Didn't retrieve data . /1349494585.Didn't retrieve data . /1349494578.Didn't retrieve data . /1349494571.Didn't retrieve data . /1349494563.Didn't retrieve data . /1349494524.Didn't retrieve data . /1349494519.Didn't retrieve data . /1349494493.Didn't retrieve data . /1349494489.Didn't retrieve data . /1349494485.Didn't retrieve data . /1349494464.Didn't retrieve data . /1349494462.Didn't retrieve data . /1349494459.Didn't retrieve data . /1349494455.Didn't retrieve data . /1349494451.Didn't retrieve data . /1349494446.Didn't retrieve data . /1349494406.Didn't retrieve data . /1349494401.Didn't retrieve data . /1349494318.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, '2718460') ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '21998614', '1349494880', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494694', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494625', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494585', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494578', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494571', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494563', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494524', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494519', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494493', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494489', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494485', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494464', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494462', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494459', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494455', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494451', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494446', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494406', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494401', '0.0', None, None, None, None, '2718460'), ('4302', '21998614', '1349494318', '0.0', None, None, None, None, '2718460')] time used for this insertion : 0.017600536346435547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.014384746551513672 time spend to save output : 0.01834273338317871 total time spend for step 2 : 0.03272747993469238 step3:velours_tree Thu Apr 3 01:05:30 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 : {21998614: [{'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946}]} input_args_next_step : {21998614: ()} output_args : {21998614: [{'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946}]} args : 21998614 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 : ({'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21998614) 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([21998614]) 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.2883141040802002 time spend to save output : 7.2479248046875e-05 total time spend for step 3 : 0.28838658332824707 step4:send_mail_cod Thu Apr 3 01:05:31 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 : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} input_args_next_step : {1349494880: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494880 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494694 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494625 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494585 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494578 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494571 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494563 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494524 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494519 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494493 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494489 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494485 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494464 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494462 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494459 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494455 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494451 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494446 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494406 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494401 depend.output_id : 0 input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ()} output_args : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',)} args : 1349494318 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 : {21998614: [{'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946}]} input_args_next_step : {1349494880: ('0.0',), 1349494694: ('0.0',), 1349494625: ('0.0',), 1349494585: ('0.0',), 1349494578: ('0.0',), 1349494571: ('0.0',), 1349494563: ('0.0',), 1349494524: ('0.0',), 1349494519: ('0.0',), 1349494493: ('0.0',), 1349494489: ('0.0',), 1349494485: ('0.0',), 1349494464: ('0.0',), 1349494462: ('0.0',), 1349494459: ('0.0',), 1349494455: ('0.0',), 1349494451: ('0.0',), 1349494446: ('0.0',), 1349494406: ('0.0',), 1349494401: ('0.0',), 1349494318: ('0.0',), 21998614: ()} output_args : {21998614: [{'Carton_brun': 21998932, 'autre_refus': 21998933, 'mal_croppe': 21998934, 'Carton_gris': 21998935, 'environnement': 21998937, 'kraft': 21998938, 'metal': 21998939, 'plastique': 21998941, 'Teint_Dans_La_Masse': 21998942, 'papier': 21998943, 'cartonnette': 21998944, 'flou': 21998946}]} args : 21998614 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 :22, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21998614) 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 (1349494880,1349494694,1349494625,1349494585,1349494578,1349494571,1349494563,1349494524,1349494519,1349494493,1349494489,1349494485,1349494464,1349494462,1349494459,1349494455,1349494451,1349494446,1349494406,1349494401,1349494318) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349494318 begin to download photo : 1349494455 begin to download photo : 1349494489 begin to download photo : 1349494571 begin to download photo : 1349494880 download finish for photo 1349494571 begin to download photo : 1349494578 download finish for photo 1349494455 begin to download photo : 1349494459 download finish for photo 1349494318 begin to download photo : 1349494401 download finish for photo 1349494880 download finish for photo 1349494489 begin to download photo : 1349494493 download finish for photo 1349494459 begin to download photo : 1349494462 download finish for photo 1349494401 begin to download photo : 1349494406 download finish for photo 1349494493 begin to download photo : 1349494519 download finish for photo 1349494462 begin to download photo : 1349494464 download finish for photo 1349494519 begin to download photo : 1349494524 download finish for photo 1349494578 begin to download photo : 1349494585 download finish for photo 1349494406 begin to download photo : 1349494446 download finish for photo 1349494464 begin to download photo : 1349494485 download finish for photo 1349494446 begin to download photo : 1349494451 download finish for photo 1349494585 begin to download photo : 1349494625 download finish for photo 1349494524 begin to download photo : 1349494563 download finish for photo 1349494485 download finish for photo 1349494625 begin to download photo : 1349494694 download finish for photo 1349494451 download finish for photo 1349494563 download finish for photo 1349494694 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219989331743635132/ imagette219989341743635132/ imagette219989381743635132/ imagette219989391743635132/ imagette219989411743635132/ imagette219989441743635132/ imagette219989461743635132/ imagette219989321743635132/ imagette219989351743635132/ imagette219989421743635132/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P21998614_03-04-2025_01_05_32.pdf 21998933 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=21998933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989331743635132 21998934 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=21998934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989341743635132 21998938 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=21998938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989381743635132 21998939 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=21998939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989391743635132 21998941 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=21998941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989411743635132 21998944 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=21998944 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989441743635132 21998946 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=21998946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989461743635132 21998932 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=21998932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989321743635132 21998935 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=21998935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989351743635132 21998942 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=21998942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219989421743635132 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21998614 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21998953,21998954,21998955,21998956,21998957,21998958,21998959,21998960,21998961,21998962,21998963,21998964?tags=Carton_brun,autre_refus,mal_croppe,Carton_gris,environnement,kraft,metal,plastique,Teint_Dans_La_Masse,papier,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1349494880] : ('0.0',) no score found for photo 1349494880 We are sending mail with results at report@fotonower.com args[1349494694] : ('0.0',) no score found for photo 1349494694 We are sending mail with results at report@fotonower.com args[1349494625] : ('0.0',) no score found for photo 1349494625 We are sending mail with results at report@fotonower.com args[1349494585] : ('0.0',) no score found for photo 1349494585 We are sending mail with results at report@fotonower.com args[1349494578] : ('0.0',) no score found for photo 1349494578 We are sending mail with results at report@fotonower.com args[1349494571] : ('0.0',) no score found for photo 1349494571 We are sending mail with results at report@fotonower.com args[1349494563] : ('0.0',) no score found for photo 1349494563 We are sending mail with results at report@fotonower.com args[1349494524] : ('0.0',) no score found for photo 1349494524 We are sending mail with results at report@fotonower.com args[1349494519] : ('0.0',) no score found for photo 1349494519 We are sending mail with results at report@fotonower.com args[1349494493] : ('0.0',) no score found for photo 1349494493 We are sending mail with results at report@fotonower.com args[1349494489] : ('0.0',) no score found for photo 1349494489 We are sending mail with results at report@fotonower.com args[1349494485] : ('0.0',) no score found for photo 1349494485 We are sending mail with results at report@fotonower.com args[1349494464] : ('0.0',) no score found for photo 1349494464 We are sending mail with results at report@fotonower.com args[1349494462] : ('0.0',) no score found for photo 1349494462 We are sending mail with results at report@fotonower.com args[1349494459] : ('0.0',) no score found for photo 1349494459 We are sending mail with results at report@fotonower.com args[1349494455] : ('0.0',) no score found for photo 1349494455 We are sending mail with results at report@fotonower.com args[1349494451] : ('0.0',) no score found for photo 1349494451 We are sending mail with results at report@fotonower.com args[1349494446] : ('0.0',) no score found for photo 1349494446 We are sending mail with results at report@fotonower.com args[1349494406] : ('0.0',) no score found for photo 1349494406 We are sending mail with results at report@fotonower.com args[1349494401] : ('0.0',) no score found for photo 1349494401 We are sending mail with results at report@fotonower.com args[1349494318] : ('0.0',) no score found for photo 1349494318 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=21998614 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_P21998614_03-04-2025_01_05_32.pdf results_Auto_P21998614_03-04-2025_01_05_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.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','21998614','results_Auto_P21998614_03-04-2025_01_05_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.pdf','pdf','','0.16','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21998614]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] map_info['map_portfolio_photo'] : {21998614: [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318]} final : False mtd_id 4302 list_pids : [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] 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, '2718460') ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '21998614', '1349494880', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460')] time used for this insertion : 0.016861438751220703 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.497426748275757 time spend to save output : 0.01712322235107422 total time spend for step 4 : 2.514549970626831 step5:split_time_score Thu Apr 3 01:05:33 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 : ['21998614'] 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 : [('21998614',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21998614) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349494880: {'path': 'temp/1743635131_362427_1349494880_af78e4750657c31696b0b64948aad6cd.jpg', 'extension': 'jpg'}, 1349494455: {'path': 'temp/1743635131_362427_1349494455_f29376a85e993cd5afae5fe77f44657a.jpg', 'extension': 'jpg'}, 1349494459: {'path': 'temp/1743635131_362427_1349494459_163b9cfdf1e5d7a57abe999782ab1b23.jpg', 'extension': 'jpg'}, 1349494462: {'path': 'temp/1743635131_362427_1349494462_0e9e83001b56471dc8490f7fe5e07065.jpg', 'extension': 'jpg'}, 1349494464: {'path': 'temp/1743635131_362427_1349494464_017315f36352e653fcf9e8c7e0d9c6ba.jpg', 'extension': 'jpg'}, 1349494485: {'path': 'temp/1743635131_362427_1349494485_49f1eb2a99b591b49ff1e4e92a7f2079.jpg', 'extension': 'jpg'}, 1349494318: {'path': 'temp/1743635131_362427_1349494318_609db836a1cafd1801112b537cd43390.jpg', 'extension': 'jpg'}, 1349494401: {'path': 'temp/1743635131_362427_1349494401_cbce1da1b1755c9deaa4ef53dbce3aca.jpg', 'extension': 'jpg'}, 1349494406: {'path': 'temp/1743635131_362427_1349494406_6768304f4183ddeb7d402a6f72dfc91d.jpg', 'extension': 'jpg'}, 1349494446: {'path': 'temp/1743635131_362427_1349494446_10b38435496f60bd4c50444fba4b1325.jpg', 'extension': 'jpg'}, 1349494451: {'path': 'temp/1743635131_362427_1349494451_e52b105d5c83173dcc5a00706973d7b4.jpg', 'extension': 'jpg'}, 1349494489: {'path': 'temp/1743635131_362427_1349494489_71ae3bb90e0398cf9ee78565a3c32237.jpg', 'extension': 'jpg'}, 1349494493: {'path': 'temp/1743635131_362427_1349494493_2c51bfa172cd19404eb875c14f1d5cf8.jpg', 'extension': 'jpg'}, 1349494519: {'path': 'temp/1743635131_362427_1349494519_41dc4867ccdf43967c75dfa8fff21681.jpg', 'extension': 'jpg'}, 1349494524: {'path': 'temp/1743635131_362427_1349494524_f5a66cb1b6a96e57a321d0d9033249d1.jpg', 'extension': 'jpg'}, 1349494563: {'path': 'temp/1743635131_362427_1349494563_7719ca2886c031b2944ddf6ffa1d05d3.jpg', 'extension': 'jpg'}, 1349494571: {'path': 'temp/1743635131_362427_1349494571_e395b0904c815bfed0e8b22733a4aaa0.jpg', 'extension': 'jpg'}, 1349494578: {'path': 'temp/1743635131_362427_1349494578_e71c585993295f4286703e885233e42f.jpg', 'extension': 'jpg'}, 1349494585: {'path': 'temp/1743635131_362427_1349494585_9f927a13308d2f4d1662e8d949a1ae88.jpg', 'extension': 'jpg'}, 1349494625: {'path': 'temp/1743635131_362427_1349494625_7606e64f12bfc20b46c4d432254552f6.jpg', 'extension': 'jpg'}, 1349494694: {'path': 'temp/1743635131_362427_1349494694_ba596498012f86df214b46af09e46941.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 = 21998614; (('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 = 21998614 group by h (('13', 21),) 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=21998614 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 (21998614) 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 (21998614) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21998614 Nombre de photos uploadées : 21 / 23040 (0%) 02042025 21998614 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 02042025 21998614 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1349494318, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/609db836a1cafd1801112b537cd43390.jpg', 'username': None, 'uploaded_at': 1743593643, 'text': 'image_02042025_13_33_44_10142.jpg'}, {'photo_id': 1349494406, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6768304f4183ddeb7d402a6f72dfc91d.jpg', 'username': None, 'uploaded_at': 1743593767, 'text': 'image_02042025_13_35_35_10132.jpg'}, {'photo_id': 1349494401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cbce1da1b1755c9deaa4ef53dbce3aca.jpg', 'username': None, 'uploaded_at': 1743593767, 'text': 'image_02042025_13_35_45_10132.jpg'}, {'photo_id': 1349494464, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/017315f36352e653fcf9e8c7e0d9c6ba.jpg', 'username': None, 'uploaded_at': 1743593827, 'text': 'image_02042025_13_35_54_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001201629638671875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21998614, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02386307716369629 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21965066, 'dashboard_result_id': 9827242, '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_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21965459, 'dashboard_result_id': 9827244, '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_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21965950, 'dashboard_result_id': 9827247, '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_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21966355, 'dashboard_result_id': 9827252, '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_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21966736, 'dashboard_result_id': 9827255, '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_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21967292, 'dashboard_result_id': 9827257, '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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21967515, 'dashboard_result_id': 9827259, '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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21968589, 'dashboard_result_id': 9827262, '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_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21969192, 'dashboard_result_id': 9827264, '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_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21969684, 'dashboard_result_id': 9827266, '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_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21970477, 'dashboard_result_id': 9827268, '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_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21971233, 'dashboard_result_id': 9827270, '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_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21971650, 'dashboard_result_id': 9827272, '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_P21971650_02-04-2025_08_52_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998569, 'dashboard_result_id': 9827276, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998570, 'dashboard_result_id': 9827281, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998571, 'dashboard_result_id': 9827283, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998572, 'dashboard_result_id': 9827285, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998573, 'dashboard_result_id': 9827286, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998574, 'dashboard_result_id': 9827287, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998575, 'dashboard_result_id': 9827288, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998576, 'dashboard_result_id': 9827289, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998579, 'dashboard_result_id': 9827290, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998612, 'dashboard_result_id': 9827291, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998613, 'dashboard_result_id': 9827292, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998614, 'dashboard_result_id': 9827293, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998639, 'dashboard_result_id': 9827294, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998665, 'dashboard_result_id': 9827295, '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_P21998665_03-04-2025_01_05_02.pdf'}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998692, 'dashboard_result_id': 9827296, '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_P21998692_03-04-2025_01_04_33.pdf'}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998694, 'dashboard_result_id': 9827297, '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_P21998694_03-04-2025_01_03_43.pdf'}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21998713, 'dashboard_result_id': 9827298, '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_P21998713_03-04-2025_01_03_35.pdf'}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21972252, 'dashboard_result_id': 9827299, '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_P21972252_02-04-2025_15_59_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972313, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21972254, 'dashboard_result_id': 9827300, '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_P21972254_02-04-2025_16_00_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972372, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21972161, 'dashboard_result_id': 9827301, '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_P21972161_02-04-2025_15_58_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972238, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21972163, 'dashboard_result_id': 9827302, '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_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21972798, 'dashboard_result_id': 9827303, '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_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21974424, 'dashboard_result_id': 9827304, '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_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21975364, 'dashboard_result_id': 9827305, '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_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21976250, 'dashboard_result_id': 9827306, '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_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21976969, 'dashboard_result_id': 9827307, '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_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21977730, 'dashboard_result_id': 9827308, '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_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21980200, 'dashboard_result_id': 9827309, '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_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21980993, 'dashboard_result_id': 9827310, '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_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21981615, 'dashboard_result_id': 9827311, '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_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21982272, 'dashboard_result_id': 9827312, '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_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21983045, 'dashboard_result_id': 9827313, '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_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21983779, 'dashboard_result_id': 9827314, '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_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21984181, 'dashboard_result_id': 9827315, '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_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21984997, 'dashboard_result_id': 9827316, '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_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21985629, 'dashboard_result_id': 9827317, '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_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21986350, 'dashboard_result_id': 9827318, '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_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21987045, 'dashboard_result_id': 9827319, '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_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21988115, 'dashboard_result_id': 9827320, '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_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21988550, 'dashboard_result_id': 9827321, '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_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21989220, 'dashboard_result_id': 9827322, '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_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21989749, 'dashboard_result_id': 9827323, '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_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21990543, 'dashboard_result_id': 9827324, '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_P21990543_02-04-2025_22_19_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21990823, 'dashboard_result_id': 9827325, '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_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21991914, 'dashboard_result_id': 9827326, '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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21992485, 'dashboard_result_id': 9827327, '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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21993320, 'dashboard_result_id': 9827329, '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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21994250, 'dashboard_result_id': 9827330, '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_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21995162, 'dashboard_result_id': 9827331, '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_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719756, 'mtr_portfolio_id': 21995734, 'dashboard_result_id': 9827333, '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_P21995734_03-04-2025_01_03_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 = 21965066 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': 2715415, 'mtr_portfolio_id': 21965066, 'created_at': datetime.datetime(2025, 4, 2, 5, 54, 30), 'result': '0.06865256931388193', 'result_long': None, 'result_double': None}] Qualite : 0.06865256931388193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965066 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_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, 'pht': 3726}}" where mtr_portfolio_id = 21965066 and dashboard_run_id = 1719756 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`=21965066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827242, 0.06865256931388193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965066_02-04-2025_05_54_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965079, '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 = 21965459 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': 2715478, 'mtr_portfolio_id': 21965459, 'created_at': datetime.datetime(2025, 4, 2, 6, 18, 59), 'result': '0.03699761545588388', 'result_long': None, 'result_double': None}] Qualite : 0.03699761545588388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965459 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_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, 'pht': 3726}}" where mtr_portfolio_id = 21965459 and dashboard_run_id = 1719756 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`=21965459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827244, 0.03699761545588388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965459_02-04-2025_06_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965462, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965465, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965471, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965472, '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 = 21965950 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': 2715506, 'mtr_portfolio_id': 21965950, 'created_at': datetime.datetime(2025, 4, 2, 6, 32, 59), 'result': '0.040222582913804414', 'result_long': None, 'result_double': None}] Qualite : 0.040222582913804414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965950 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_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}" where mtr_portfolio_id = 21965950 and dashboard_run_id = 1719756 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`=21965950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827247, 0.040222582913804414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, '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 = 21966355 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': 2715538, 'mtr_portfolio_id': 21966355, 'created_at': datetime.datetime(2025, 4, 2, 6, 48, 58), 'result': '0.05853413055267464', 'result_long': None, 'result_double': None}] Qualite : 0.05853413055267464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966355 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_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}" where mtr_portfolio_id = 21966355 and dashboard_run_id = 1719756 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`=21966355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827252, 0.05853413055267464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, '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 = 21966736 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': 2715567, 'mtr_portfolio_id': 21966736, 'created_at': datetime.datetime(2025, 4, 2, 7, 2, 59), 'result': '0.05327455022977842', 'result_long': None, 'result_double': None}] Qualite : 0.05327455022977842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966736 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_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}" where mtr_portfolio_id = 21966736 and dashboard_run_id = 1719756 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`=21966736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827255, 0.05327455022977842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, '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 = 21967292 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': 2715671, 'mtr_portfolio_id': 21967292, 'created_at': datetime.datetime(2025, 4, 2, 7, 22, 58), 'result': '0.04335168860141576', 'result_long': None, 'result_double': None}] Qualite : 0.04335168860141576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967292 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_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}" where mtr_portfolio_id = 21967292 and dashboard_run_id = 1719756 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`=21967292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827257, 0.04335168860141576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_22_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, '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 = 21967515 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': 2715698, 'mtr_portfolio_id': 21967515, 'created_at': datetime.datetime(2025, 4, 2, 7, 32, 59), 'result': '0.034342358176222956', 'result_long': None, 'result_double': None}] Qualite : 0.034342358176222956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967515 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_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, 'pht': 3726}}" where mtr_portfolio_id = 21967515 and dashboard_run_id = 1719756 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`=21967515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827259, 0.034342358176222956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967515_02-04-2025_07_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21967533, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967539, '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 = 21968589 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': 2715767, 'mtr_portfolio_id': 21968589, 'created_at': datetime.datetime(2025, 4, 2, 7, 46, 31), 'result': '0.04523367331598181', 'result_long': None, 'result_double': None}] Qualite : 0.04523367331598181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21968589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21968589 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_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, 'pht': 3726}}" where mtr_portfolio_id = 21968589 and dashboard_run_id = 1719756 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`=21968589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827262, 0.04523367331598181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21968589_02-04-2025_07_46_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21968618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21968619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21968620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21968621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21968622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21968623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21968624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21968625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21968626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21968627, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21968628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21968629, '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 = 21969192 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': 2715809, 'mtr_portfolio_id': 21969192, 'created_at': datetime.datetime(2025, 4, 2, 8, 3), 'result': '0.05020333979237098', 'result_long': None, 'result_double': None}] Qualite : 0.05020333979237098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21969192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21969192 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_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, 'pht': 3726}}" where mtr_portfolio_id = 21969192 and dashboard_run_id = 1719756 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`=21969192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827264, 0.05020333979237098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969192_02-04-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969193, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969195, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21969199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969204, '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 = 21969684 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': 2715863, 'mtr_portfolio_id': 21969684, 'created_at': datetime.datetime(2025, 4, 2, 8, 19), 'result': '0.04463799718194004', 'result_long': None, 'result_double': None}] Qualite : 0.04463799718194004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21969684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21969684 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_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, 'pht': 3726}}" where mtr_portfolio_id = 21969684 and dashboard_run_id = 1719756 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`=21969684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827266, 0.04463799718194004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21969684_02-04-2025_08_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21969712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21969713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21969714, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21969715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21969716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21969717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21969718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21969719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21969720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21969721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21969722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21969723, '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 = 21970477 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': 2715918, 'mtr_portfolio_id': 21970477, 'created_at': datetime.datetime(2025, 4, 2, 8, 32, 57), 'result': '0.05129223180784693', 'result_long': None, 'result_double': None}] Qualite : 0.05129223180784693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21970477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21970477 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_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, 'pht': 3726}}" where mtr_portfolio_id = 21970477 and dashboard_run_id = 1719756 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`=21970477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827268, 0.05129223180784693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21970477_02-04-2025_08_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21970482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21970483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21970484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21970485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21970486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21970487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21970488, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21970489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21970490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21970491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21970492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21970493, '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 = 21971233 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': 2715985, 'mtr_portfolio_id': 21971233, 'created_at': datetime.datetime(2025, 4, 2, 8, 49, 7), 'result': '0.05528412368617842', 'result_long': None, 'result_double': None}] Qualite : 0.05528412368617842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21971233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21971233 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_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, 'pht': 3726}}" where mtr_portfolio_id = 21971233 and dashboard_run_id = 1719756 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`=21971233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827270, 0.05528412368617842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971233_02-04-2025_08_49_07.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971247, '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 = 21971650 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': 2716016, 'mtr_portfolio_id': 21971650, 'created_at': datetime.datetime(2025, 4, 2, 8, 52, 57), 'result': '0.04584176877785846', 'result_long': None, 'result_double': None}] Qualite : 0.04584176877785846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21971650 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_02-04-2025_08_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21971650 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_P21971650_02-04-2025_08_52_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, 'pht': 3726}}" where mtr_portfolio_id = 21971650 and dashboard_run_id = 1719756 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`=21971650 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827272, 0.04584176877785846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21971650_02-04-2025_08_52_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21971654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21971655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21971656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21971657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21971658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21971659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21971660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21971661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21971662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21971663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21971664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21971665, '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 = 21998569 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 = 21998569 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998569 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998569%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998569 and dashboard_run_id = 1719756 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 = 21998570 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 = 21998570 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998570 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998570%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998570 and dashboard_run_id = 1719756 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 = 21998571 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 = 21998571 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998571 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998571%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998571 and dashboard_run_id = 1719756 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 = 21998572 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 = 21998572 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998572 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998572%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998572 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998572 and dashboard_run_id = 1719756 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 = 21998573 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 = 21998573 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998573 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998573%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998573 and dashboard_run_id = 1719756 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 = 21998574 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 = 21998574 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998574 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998574%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998574 and dashboard_run_id = 1719756 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 = 21998575 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 = 21998575 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998575 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998575%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998575 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998575 and dashboard_run_id = 1719756 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 = 21998576 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 = 21998576 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998576 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998576%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998576 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998576 and dashboard_run_id = 1719756 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 = 21998579 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 = 21998579 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998579 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998579%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998579 and dashboard_run_id = 1719756 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 = 21998612 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 = 21998612 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998612 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998612%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998612 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998612 and dashboard_run_id = 1719756 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 = 21998613 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 = 21998613 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21998613 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998613%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998613 and dashboard_run_id = 1719756 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 = 21998614 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 = 21998614 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 = 21998614 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998614 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 = 21998614 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 = 21998614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998614_03-04-2025_01_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998614 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_P21998614_03-04-2025_01_05_32.pdf'}" where mtr_portfolio_id = 21998614 and dashboard_run_id = 1719756 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 = 21998639 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 = 21998639 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 = 21998639 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998639 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 = 21998639 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 = 21998639 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21998639%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998639 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21998639 and dashboard_run_id = 1719756 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 = 21998665 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 = 21998665 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 = 21998665 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998665 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 = 21998665 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 = 21998665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998665_03-04-2025_01_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998665 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_P21998665_03-04-2025_01_05_02.pdf'}" where mtr_portfolio_id = 21998665 and dashboard_run_id = 1719756 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 = 21998692 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 = 21998692 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 = 21998692 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998692 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 = 21998692 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 = 21998692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998692_03-04-2025_01_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998692 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_P21998692_03-04-2025_01_04_33.pdf'}" where mtr_portfolio_id = 21998692 and dashboard_run_id = 1719756 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 = 21998694 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 = 21998694 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 = 21998694 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998694 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 = 21998694 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 = 21998694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998694_03-04-2025_01_03_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998694 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_P21998694_03-04-2025_01_03_43.pdf'}" where mtr_portfolio_id = 21998694 and dashboard_run_id = 1719756 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 = 21998713 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 = 21998713 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 = 21998713 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21998713 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 = 21998713 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 = 21998713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21998713_03-04-2025_01_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21998713 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_P21998713_03-04-2025_01_03_35.pdf'}" where mtr_portfolio_id = 21998713 and dashboard_run_id = 1719756 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 = 21972252 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 = 21972252 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 = 21972252 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972252 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 = 21972252 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 = 21972252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972252_02-04-2025_15_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972252 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_P21972252_02-04-2025_15_59_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972308, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972313, 'pht': 3726}}" where mtr_portfolio_id = 21972252 and dashboard_run_id = 1719756 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 = 21972254 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 = 21972254 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 = 21972254 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972254 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 = 21972254 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 = 21972254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972254_02-04-2025_16_00_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972254 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_P21972254_02-04-2025_16_00_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972372, 'pht': 3726}}" where mtr_portfolio_id = 21972254 and dashboard_run_id = 1719756 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 = 21972161 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 = 21972161 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 = 21972161 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21972161 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 = 21972161 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 = 21972161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972161_02-04-2025_15_58_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972161 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_P21972161_02-04-2025_15_58_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972236, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972238, 'pht': 3726}}" where mtr_portfolio_id = 21972161 and dashboard_run_id = 1719756 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 = 21972163 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': 2716051, 'mtr_portfolio_id': 21972163, 'created_at': datetime.datetime(2025, 4, 2, 16, 3), 'result': '0.05267951214092447', 'result_long': None, 'result_double': None}] Qualite : 0.05267951214092447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21972163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972163 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_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, 'pht': 3726}}" where mtr_portfolio_id = 21972163 and dashboard_run_id = 1719756 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`=21972163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827302, 0.05267951214092447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972163_02-04-2025_16_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21972180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972182, '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 = 21972798 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': 2716247, 'mtr_portfolio_id': 21972798, 'created_at': datetime.datetime(2025, 4, 2, 16, 17, 8), 'result': '0.04454951203202496', 'result_long': None, 'result_double': None}] Qualite : 0.04454951203202496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21972798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21972798 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_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, 'pht': 3726}}" where mtr_portfolio_id = 21972798 and dashboard_run_id = 1719756 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`=21972798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827303, 0.04454951203202496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21972798_02-04-2025_16_17_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21972831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21972832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21972833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21972834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21972835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21972836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21972837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21972838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21972839, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21972840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21972841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21972842, '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 = 21974424 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': 2716525, 'mtr_portfolio_id': 21974424, 'created_at': datetime.datetime(2025, 4, 2, 16, 33, 6), 'result': '0.061252814750167715', 'result_long': None, 'result_double': None}] Qualite : 0.061252814750167715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21974424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21974424 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_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, 'pht': 3726}}" where mtr_portfolio_id = 21974424 and dashboard_run_id = 1719756 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`=21974424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827304, 0.061252814750167715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21974424_02-04-2025_16_33_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21974478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21974479, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21974480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21974481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21974482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21974483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21974484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21974486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21974490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21974495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21974500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21974501, '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 = 21975364 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': 2716589, 'mtr_portfolio_id': 21975364, 'created_at': datetime.datetime(2025, 4, 2, 16, 48, 58), 'result': '0.039526264555899526', 'result_long': None, 'result_double': None}] Qualite : 0.039526264555899526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21975364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21975364 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_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, 'pht': 3726}}" where mtr_portfolio_id = 21975364 and dashboard_run_id = 1719756 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`=21975364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827305, 0.039526264555899526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21975364_02-04-2025_16_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21975385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21975386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21975387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21975388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21975389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21975390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21975391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21975392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21975393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21975394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21975395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21975396, '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 = 21976250 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': 2716660, 'mtr_portfolio_id': 21976250, 'created_at': datetime.datetime(2025, 4, 2, 17, 2, 33), 'result': '0.04106087082866955', 'result_long': None, 'result_double': None}] Qualite : 0.04106087082866955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21976250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21976250 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_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, 'pht': 3726}}" where mtr_portfolio_id = 21976250 and dashboard_run_id = 1719756 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`=21976250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827306, 0.04106087082866955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976250_02-04-2025_17_02_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21976254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976257, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976265, '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 = 21976969 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': 2716779, 'mtr_portfolio_id': 21976969, 'created_at': datetime.datetime(2025, 4, 2, 17, 18, 59), 'result': '0.04335864282878315', 'result_long': None, 'result_double': None}] Qualite : 0.04335864282878315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21976969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21976969 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_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, 'pht': 3726}}" where mtr_portfolio_id = 21976969 and dashboard_run_id = 1719756 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`=21976969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827307, 0.04335864282878315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21976969_02-04-2025_17_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21976972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21976973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21976974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21976975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21976976, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21976977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21976978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21976979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21976980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21976981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21976982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21976983, '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 = 21977730 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': 2716829, 'mtr_portfolio_id': 21977730, 'created_at': datetime.datetime(2025, 4, 2, 17, 33, 6), 'result': '0.050358595180812406', 'result_long': None, 'result_double': None}] Qualite : 0.050358595180812406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21977730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21977730 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_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, 'pht': 3726}}" where mtr_portfolio_id = 21977730 and dashboard_run_id = 1719756 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`=21977730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827308, 0.050358595180812406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21977730_02-04-2025_17_33_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21977782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21977783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21977784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21977785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21977786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21977787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21977788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21977789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21977790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21977791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21977792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21977793, '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 = 21980200 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': 2717031, 'mtr_portfolio_id': 21980200, 'created_at': datetime.datetime(2025, 4, 2, 18, 19, 1), 'result': '0.04963321400999219', 'result_long': None, 'result_double': None}] Qualite : 0.04963321400999219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980200 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_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}" where mtr_portfolio_id = 21980200 and dashboard_run_id = 1719756 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`=21980200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827309, 0.04963321400999219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, '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 = 21980993 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': 2717073, 'mtr_portfolio_id': 21980993, 'created_at': datetime.datetime(2025, 4, 2, 18, 33, 28), 'result': '0.04294571312738064', 'result_long': None, 'result_double': None}] Qualite : 0.04294571312738064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980993 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_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}" where mtr_portfolio_id = 21980993 and dashboard_run_id = 1719756 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`=21980993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827310, 0.04294571312738064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, '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 = 21981615 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': 2717132, 'mtr_portfolio_id': 21981615, 'created_at': datetime.datetime(2025, 4, 2, 18, 48, 58), 'result': '0.04685903695457557', 'result_long': None, 'result_double': None}] Qualite : 0.04685903695457557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21981615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21981615 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_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}" where mtr_portfolio_id = 21981615 and dashboard_run_id = 1719756 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`=21981615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827311, 0.04685903695457557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, '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 = 21982272 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': 2717173, 'mtr_portfolio_id': 21982272, 'created_at': datetime.datetime(2025, 4, 2, 19, 3), 'result': '0.03891199199274584', 'result_long': None, 'result_double': None}] Qualite : 0.03891199199274584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21982272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21982272 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_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}" where mtr_portfolio_id = 21982272 and dashboard_run_id = 1719756 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`=21982272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827312, 0.03891199199274584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_19_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, '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 = 21983045 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': 2717236, 'mtr_portfolio_id': 21983045, 'created_at': datetime.datetime(2025, 4, 2, 19, 16, 57), 'result': '0.04554435823533873', 'result_long': None, 'result_double': None}] Qualite : 0.04554435823533873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983045 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_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, 'pht': 3726}}" where mtr_portfolio_id = 21983045 and dashboard_run_id = 1719756 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`=21983045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827313, 0.04554435823533873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983045_02-04-2025_19_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983060, '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 = 21983779 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': 2717284, 'mtr_portfolio_id': 21983779, 'created_at': datetime.datetime(2025, 4, 2, 19, 32, 59), 'result': '0.0673209137893428', 'result_long': None, 'result_double': None}] Qualite : 0.0673209137893428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21983779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21983779 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_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, 'pht': 3726}}" where mtr_portfolio_id = 21983779 and dashboard_run_id = 1719756 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`=21983779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827314, 0.0673209137893428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21983779_02-04-2025_19_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21983782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21983783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21983784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21983785, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21983786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21983787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21983788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21983789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21983790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21983791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21983792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21983793, '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 = 21984181 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': 2717323, 'mtr_portfolio_id': 21984181, 'created_at': datetime.datetime(2025, 4, 2, 19, 46, 59), 'result': '0.05459668629207812', 'result_long': None, 'result_double': None}] Qualite : 0.05459668629207812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984181 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_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, 'pht': 3726}}" where mtr_portfolio_id = 21984181 and dashboard_run_id = 1719756 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`=21984181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827315, 0.05459668629207812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984181_02-04-2025_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21984192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21984193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21984194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21984195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21984196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21984197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21984198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21984199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21984200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21984201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21984202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21984203, '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 = 21984997 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': 2717386, 'mtr_portfolio_id': 21984997, 'created_at': datetime.datetime(2025, 4, 2, 20, 3), 'result': '0.05394130131453614', 'result_long': None, 'result_double': None}] Qualite : 0.05394130131453614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21984997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21984997 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_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, 'pht': 3726}}" where mtr_portfolio_id = 21984997 and dashboard_run_id = 1719756 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`=21984997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827316, 0.05394130131453614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21984997_02-04-2025_20_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985041, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985045, '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 = 21985629 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': 2717455, 'mtr_portfolio_id': 21985629, 'created_at': datetime.datetime(2025, 4, 2, 20, 17), 'result': '0.04799028614957448', 'result_long': None, 'result_double': None}] Qualite : 0.04799028614957448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21985629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21985629 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_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, 'pht': 3726}}" where mtr_portfolio_id = 21985629 and dashboard_run_id = 1719756 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`=21985629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827317, 0.04799028614957448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21985629_02-04-2025_20_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21985632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21985633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21985634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21985635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21985636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21985637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21985638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21985639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21985640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21985641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21985642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21985643, '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 = 21986350 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': 2717500, 'mtr_portfolio_id': 21986350, 'created_at': datetime.datetime(2025, 4, 2, 20, 33), 'result': '0.06650561200153669', 'result_long': None, 'result_double': None}] Qualite : 0.06650561200153669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21986350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21986350 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_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}" where mtr_portfolio_id = 21986350 and dashboard_run_id = 1719756 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`=21986350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827318, 0.06650561200153669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, '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 = 21987045 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': 2717563, 'mtr_portfolio_id': 21987045, 'created_at': datetime.datetime(2025, 4, 2, 21, 2, 59), 'result': '0.05949485987746661', 'result_long': None, 'result_double': None}] Qualite : 0.05949485987746661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21987045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21987045 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_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}" where mtr_portfolio_id = 21987045 and dashboard_run_id = 1719756 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`=21987045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827319, 0.05949485987746661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, '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 = 21988115 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': 2717666, 'mtr_portfolio_id': 21988115, 'created_at': datetime.datetime(2025, 4, 2, 21, 19), 'result': '0.04083338573309732', 'result_long': None, 'result_double': None}] Qualite : 0.04083338573309732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21988115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21988115 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_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}" where mtr_portfolio_id = 21988115 and dashboard_run_id = 1719756 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`=21988115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827320, 0.04083338573309732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_19_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, '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 = 21988550 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': 2717695, 'mtr_portfolio_id': 21988550, 'created_at': datetime.datetime(2025, 4, 2, 21, 32, 30), 'result': '0.05492749853373801', 'result_long': None, 'result_double': None}] Qualite : 0.05492749853373801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21988550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21988550 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_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, 'pht': 3726}}" where mtr_portfolio_id = 21988550 and dashboard_run_id = 1719756 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`=21988550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827321, 0.05492749853373801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988550_02-04-2025_21_32_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21988618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988629, '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 = 21989220 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': 2717751, 'mtr_portfolio_id': 21989220, 'created_at': datetime.datetime(2025, 4, 2, 21, 48, 58), 'result': '0.04760866089784744', 'result_long': None, 'result_double': None}] Qualite : 0.04760866089784744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21989220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21989220 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_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, 'pht': 3726}}" where mtr_portfolio_id = 21989220 and dashboard_run_id = 1719756 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`=21989220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827322, 0.04760866089784744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989220_02-04-2025_21_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989235, '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 = 21989749 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': 2717793, 'mtr_portfolio_id': 21989749, 'created_at': datetime.datetime(2025, 4, 2, 22, 13), 'result': '0.04490013312089892', 'result_long': None, 'result_double': None}] Qualite : 0.04490013312089892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21989749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21989749 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_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, 'pht': 3726}}" where mtr_portfolio_id = 21989749 and dashboard_run_id = 1719756 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`=21989749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827323, 0.04490013312089892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21989749_02-04-2025_22_13_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21989751, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21989752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21989753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21989754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21989755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21989756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21989757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21989758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21989759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21989760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21989761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21989762, '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 = 21990543 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': 2717915, 'mtr_portfolio_id': 21990543, 'created_at': datetime.datetime(2025, 4, 2, 22, 19, 4), 'result': '0.055189092431571114', 'result_long': None, 'result_double': None}] Qualite : 0.055189092431571114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21990543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_02-04-2025_22_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21990543 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_P21990543_02-04-2025_22_19_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, 'pht': 3726}}" where mtr_portfolio_id = 21990543 and dashboard_run_id = 1719756 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`=21990543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827324, 0.055189092431571114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990543_02-04-2025_22_19_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21990556, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990559, '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 = 21990823 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': 2717931, 'mtr_portfolio_id': 21990823, 'created_at': datetime.datetime(2025, 4, 2, 22, 33), 'result': '0.04877417881972289', 'result_long': None, 'result_double': None}] Qualite : 0.04877417881972289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21990823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_02-04-2025_22_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21990823 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_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, 'pht': 3726}}" where mtr_portfolio_id = 21990823 and dashboard_run_id = 1719756 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`=21990823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827325, 0.04877417881972289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21990823_02-04-2025_22_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21990864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21990865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21990866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21990867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21990868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21990869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21990870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21990871, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21990872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21990873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21990874, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21990875, '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 = 21991914 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': 2717994, 'mtr_portfolio_id': 21991914, 'created_at': datetime.datetime(2025, 4, 2, 22, 48, 59), 'result': '0.04052662425498596', 'result_long': None, 'result_double': None}] Qualite : 0.04052662425498596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21991914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21991914 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_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, 'pht': 3726}}" where mtr_portfolio_id = 21991914 and dashboard_run_id = 1719756 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`=21991914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827326, 0.04052662425498596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21991914_02-04-2025_22_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21991916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21991917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21991918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21991919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21991920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21991921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21991922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21991923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21991924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21991925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21991926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21991927, '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 = 21992485 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': 2718031, 'mtr_portfolio_id': 21992485, 'created_at': datetime.datetime(2025, 4, 2, 23, 3), 'result': '0.05175821212156914', 'result_long': None, 'result_double': None}] Qualite : 0.05175821212156914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21992485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21992485 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_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, 'pht': 3726}}" where mtr_portfolio_id = 21992485 and dashboard_run_id = 1719756 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`=21992485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827327, 0.05175821212156914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21992485_02-04-2025_23_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21992530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21992531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21992532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21992533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21992534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21992535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21992536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21992537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21992538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21992539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21992540, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21992541, '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 = 21993320 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': 2718081, 'mtr_portfolio_id': 21993320, 'created_at': datetime.datetime(2025, 4, 2, 23, 19, 30), 'result': '0.04713894898914862', 'result_long': None, 'result_double': None}] Qualite : 0.04713894898914862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21993320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21993320 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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}" where mtr_portfolio_id = 21993320 and dashboard_run_id = 1719756 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`=21993320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827329, 0.04713894898914862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, '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 = 21994250 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': 2718135, 'mtr_portfolio_id': 21994250, 'created_at': datetime.datetime(2025, 4, 2, 23, 33), 'result': '0.04682183031826243', 'result_long': None, 'result_double': None}] Qualite : 0.04682183031826243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21994250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21994250 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_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}" where mtr_portfolio_id = 21994250 and dashboard_run_id = 1719756 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`=21994250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827330, 0.04682183031826243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, '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 = 21995162 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': 2718177, 'mtr_portfolio_id': 21995162, 'created_at': datetime.datetime(2025, 4, 2, 23, 48, 30), 'result': '0.05488579926024773', 'result_long': None, 'result_double': None}] Qualite : 0.05488579926024773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_02-04-2025_23_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995162 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_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}" where mtr_portfolio_id = 21995162 and dashboard_run_id = 1719756 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`=21995162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827331, 0.05488579926024773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, '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 = 21995734 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': 2718220, 'mtr_portfolio_id': 21995734, 'created_at': datetime.datetime(2025, 4, 3, 1, 3, 58), 'result': '0.054176513107686945', 'result_long': None, 'result_double': None}] Qualite : 0.054176513107686945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_01_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995734 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_P21995734_03-04-2025_01_03_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, 'pht': 3726}}" where mtr_portfolio_id = 21995734 and dashboard_run_id = 1719756 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`=21995734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9827333, 0.054176513107686945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_03-04-2025_01_03_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 (21965066,21965459,21965950,21966355,21966736,21967292,21967515,21968589,21969192,21969684,21970477,21971233,21971650,21998569,21998570,21998571,21998572,21998573,21998574,21998575,21998576,21998579,21998612,21998613,21998614,21998639,21998665,21998692,21998694,21998713,21972252,21972254,21972161,21972163,21972798,21974424,21975364,21976250,21976969,21977730,21980200,21980993,21981615,21982272,21983045,21983779,21984181,21984997,21985629,21986350,21987045,21988115,21988550,21989220,21989749,21990543,21990823,21991914,21992485,21993320,21994250,21995162,21995734) result : ((1349455628,), (1349456107,), (1349456769,), (1349456777,), (1349456780,), (1349457093,), (1349457220,), (1349457223,), (1349457267,), (1349457303,), (1349457306,), (1349457307,), (1349457315,), (1349457345,), (1349457380,), (1349457384,), (1349457415,), (1349457475,), (1349457478,), (1349457506,), (1349458637,), (1349459755,), (1349459786,), (1349459808,), (1349459821,), (1349460035,), (1349460058,), (1349460107,), (1349460133,), (1349460502,), (1349460530,), (1349460556,), (1349460582,), (1349460612,), (1349460871,), (1349460899,), (1349460937,), (1349460966,), (1349460996,), (1349461022,), (1349461232,), (1349461255,), (1349461275,), (1349461299,), (1349461380,), (1349461382,), (1349461384,), (1349461386,), (1349461389,), (1349461391,), (1349461466,), (1349461485,), (1349461510,), (1349461538,), (1349461751,), (1349461756,), (1349461758,), (1349461772,), (1349461800,), (1349461811,), (1349461838,), (1349461839,), (1349461840,), (1349461841,), (1349461884,), (1349461887,), (1349461890,), (1349461892,), (1349461895,), (1349461897,), (1349461929,), (1349461931,), (1349461933,), (1349461937,), (1349461976,), (1349461979,), (1349461982,), (1349461985,), (1349461989,), (1349462008,), (1349462010,), (1349462012,), (1349462015,), (1349462021,), (1349462051,), (1349462054,), (1349462057,), (1349462059,), (1349462062,), (1349462065,), (1349462086,), (1349462089,), (1349462091,), (1349462093,), (1349462099,), (1349462149,), (1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,), (1349462713,), (1349462715,), (1349462716,), (1349462719,), (1349462752,), (1349462757,), (1349462758,), (1349462759,), (1349462762,), (1349462765,), (1349462784,), (1349462786,), (1349462792,), (1349462795,), (1349462824,), (1349462826,), (1349462829,), (1349462832,), (1349462835,), (1349462837,), (1349462856,), (1349462859,), (1349462861,), (1349462863,), (1349462894,), (1349462900,), (1349462908,), (1349462918,), (1349462923,), (1349462927,), (1349462954,), (1349462957,), (1349462960,), (1349462963,), (1349462964,), (1349463005,), (1349463006,), (1349463007,), (1349463008,), (1349463011,), (1349463014,), (1349463033,), (1349463036,), (1349463039,), (1349463042,), (1349463076,), (1349463078,), (1349463080,), (1349463088,), (1349463093,), (1349463126,), (1349463128,), (1349463130,), (1349463131,), (1349463134,), (1349463187,), (1349463190,), (1349463192,), (1349463194,), (1349463197,), (1349463222,), (1349463223,), (1349463224,), (1349463225,), (1349463228,), (1349463256,), (1349463261,), (1349463274,), (1349463279,), (1349463307,), (1349463310,), (1349463311,), (1349463312,), (1349463361,), (1349463352,), (1349463354,), (1349463356,), (1349463358,), (1349463381,), (1349463384,), (1349463387,), (1349463390,), (1349463393,), (1349463422,), (1349463425,), (1349463427,), (1349463451,), (1349463454,), (1349463489,), (1349463532,), (1349463534,), (1349463536,), (1349463538,), (1349463564,), (1349463565,), (1349463566,), (1349463567,), (1349463594,), (1349463597,), (1349463599,), (1349463635,), (1349463645,), (1349463648,), (1349463650,), (1349463675,), (1349463676,), (1349463705,), (1349463708,), (1349463711,), (1349463716,), (1349463738,), (1349463740,), (1349463741,), (1349464021,), (1349464022,), (1349464024,), (1349464026,), (1349464040,), (1349464590,), (1349464620,), (1349464650,), (1349464685,), (1349465006,), (1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,), (1349466860,), (1349466902,), (1349466919,), (1349466936,), (1349466941,), (1349466955,), (1349467043,), (1349467053,), (1349467056,), (1349467137,), (1349467140,), (1349467172,), (1349467179,), (1349467185,), (1349467203,), (1349467208,), (1349467212,), (1349467216,), (1349467220,), (1349467226,), (1349467242,), (1349467247,), (1349467254,), (1349467259,), (1349467277,), (1349467283,), (1349467284,), (1349467286,), (1349467288,), (1349467291,), (1349467324,), (1349467340,), (1349467342,), (1349467381,), (1349467410,), (1349467103,), (1349467104,), (1349467110,), (1349467111,), (1349467119,), (1349467120,), (1349467124,), (1349467125,), (1349467130,), (1349467131,), (1349467155,), (1349467156,), (1349467157,), (1349467158,), (1349467159,), (1349467160,), (1349467164,), (1349467165,), (1349467169,), (1349467236,), (1349467238,), (1349467305,), (1349467309,), (1349467314,), (1349467354,), (1349467374,), (1349467457,), (1349467460,), (1349467463,), (1349467467,), (1349467538,), (1349467542,), (1349467545,), (1349467569,), (1349467618,), (1349467794,), (1349467797,), (1349467801,), (1349467808,), (1349467853,), (1349467858,), (1349467862,), (1349467867,), (1349467936,), (1349467948,), (1349467951,), (1349467954,), (1349467967,), (1349467987,), (1349468328,), (1349468356,), (1349468391,), (1349468438,), (1349468454,), (1349468456,), (1349468516,), (1349468520,), (1349468527,), (1349468530,), (1349468714,), (1349468718,), (1349468722,), (1349468726,), (1349468729,), (1349468732,), (1349468791,), (1349468795,), (1349468804,), (1349468810,), (1349469000,), (1349468878,), (1349468903,), (1349468928,), (1349468956,), (1349468986,), (1349469137,), (1349469146,), (1349469150,), (1349469155,), (1349469160,), (1349469241,), (1349469251,), (1349469254,), (1349469258,), (1349469261,), (1349469267,), (1349469310,), (1349469312,), (1349469314,), (1349469319,), (1349469376,), (1349469382,), (1349469419,), (1349469446,), (1349469461,), (1349469639,), (1349469650,), (1349469654,), (1349469659,), (1349469664,), (1349469673,), (1349469730,), (1349469766,), (1349469792,), (1349469994,), (1349470006,), (1349470014,), (1349470028,), (1349470032,), (1349470110,), (1349470136,), (1349470160,), (1349470163,), (1349470204,), (1349470206,), (1349470209,), (1349470212,), (1349470215,), (1349470226,), (1349470267,), (1349470285,), (1349470322,), (1349470376,), (1349470386,), (1349470403,), (1349470411,), (1349470421,), (1349470428,), (1349470492,), (1349470497,), (1349470501,), (1349470504,), (1349470510,), (1349470566,), (1349470570,), (1349470575,), (1349470579,), (1349470721,), (1349470724,), (1349470726,), (1349470728,), (1349470732,), (1349470737,), (1349470797,), (1349470786,), (1349470788,), (1349470792,), (1349470893,), (1349470894,), (1349470897,), (1349470899,), (1349470904,), (1349470908,), (1349470989,), (1349470991,), (1349470995,), (1349471030,), (1349471117,), (1349471121,), (1349471126,), (1349471131,), (1349471133,), (1349471136,), (1349471176,), (1349471179,), (1349471181,), (1349471187,), (1349471198,), (1349471206,), (1349471303,), (1349471306,), (1349471309,), (1349471312,), (1349471315,), (1349471359,), (1349471370,), (1349471373,), (1349471388,), (1349471396,), (1349471402,), (1349471475,), (1349471479,), (1349471483,), (1349471487,), (1349471533,), (1349471543,), (1349471547,), (1349471549,), (1349471555,), (1349471560,), (1349471583,), (1349471584,), (1349471586,), (1349471587,), (1349471624,), (1349471627,), (1349471631,), (1349471634,), (1349471644,), (1349471680,), (1349471684,), (1349471688,), (1349471696,), (1349471704,), (1349471738,), (1349471743,), (1349471754,), (1349471765,), (1349472350,), (1349472379,), (1349472453,), (1349472498,), (1349472566,), (1349472613,), (1349472719,), (1349472770,), (1349472819,), (1349472853,), (1349473106,), (1349472948,), (1349473006,), (1349473070,), (1349473325,), (1349473374,), (1349473402,), (1349473453,), (1349473488,), (1349473550,), (1349473657,), (1349473665,), (1349473679,), (1349473930,), (1349473951,), (1349473982,), (1349475047,), (1349475081,), (1349475437,), (1349475450,), (1349475480,), (1349475502,), (1349475507,), (1349475625,), (1349475627,), (1349475662,), (1349475671,), (1349475676,), (1349475775,), (1349475779,), (1349475783,), (1349475787,), (1349475845,), (1349475851,), (1349475862,), (1349475865,), (1349475900,), (1349475911,), (1349475915,), (1349475919,), (1349475973,), (1349475978,), (1349475982,), (1349475984,), (1349476025,), (1349476028,), (1349476033,), (1349476037,), (1349476055,), (1349476151,), (1349476130,), (1349476135,), (1349476140,), (1349476146,), (1349476198,), (1349476210,), (1349476220,), (1349476301,), (1349476321,), (1349476334,), (1349476338,), (1349476344,), (1349476468,), (1349476479,), (1349476484,), (1349476487,), (1349476801,), (1349476807,), (1349476841,), (1349476849,), (1349476864,), (1349476869,), (1349477068,), (1349477101,), (1349477167,), (1349477227,), (1349477425,), (1349477460,), (1349477508,), (1349477535,), (1349477538,), (1349477542,), (1349477579,), (1349477583,), (1349477589,), (1349477595,), (1349477664,), (1349477683,), (1349477694,), (1349477704,), (1349477709,), (1349477727,), (1349477778,), (1349477782,), (1349477791,), (1349477797,), (1349477898,), (1349477902,), (1349477903,), (1349477915,), (1349477919,), (1349477927,), (1349477990,), (1349477992,), (1349478006,), (1349478205,), (1349478207,), (1349478210,), (1349478214,), (1349478217,), (1349478221,), (1349478252,), (1349478256,), (1349478260,), (1349478264,), (1349478302,), (1349478306,), (1349478308,), (1349478310,), (1349478314,), (1349478377,), (1349478364,), (1349478368,), (1349478373,), (1349478428,), (1349478441,), (1349479040,), (1349479178,), (1349479180,), (1349479183,), (1349479186,), (1349479345,), (1349479368,), (1349479393,), (1349479419,), (1349479442,), (1349479641,), (1349479644,), (1349479646,), (1349479648,), (1349479693,), (1349479695,), (1349479697,), (1349479700,), (1349479704,), (1349479709,), (1349479785,), (1349479786,), (1349479788,), (1349479797,), (1349479892,), (1349479954,), (1349479984,), (1349480009,), (1349480025,), (1349480041,), (1349480086,), (1349480088,), (1349480091,), (1349480094,), (1349480190,), (1349480193,), (1349480197,), (1349480200,), (1349480205,), (1349480209,), (1349480247,), (1349480233,), (1349480236,), (1349480241,), (1349480244,), (1349480343,), (1349480346,), (1349480349,), (1349480353,), (1349480357,), (1349480360,), (1349480483,), (1349480485,), (1349480512,), (1349480515,), (1349480544,), (1349480546,), (1349480548,), (1349480553,), (1349480557,), (1349480563,), (1349480583,), (1349480586,), (1349480590,), (1349480599,), (1349480632,), (1349480761,), (1349480771,), (1349480779,), (1349480785,), (1349480789,), (1349480808,), (1349480888,), (1349480896,), (1349480957,), (1349480960,), (1349481108,), (1349481115,), (1349481117,), (1349481122,), (1349481133,), (1349481136,), (1349481248,), (1349481252,), (1349481255,), (1349481257,), (1349481290,), (1349481293,), (1349481296,), (1349481298,), (1349481302,), (1349481305,), (1349481333,), (1349481336,), (1349481342,), (1349481345,), (1349481348,), (1349481350,), (1349481374,), (1349481375,), (1349481377,), (1349481378,), (1349481407,), (1349481410,), (1349481415,), (1349481418,), (1349481420,), (1349481423,), (1349481465,), (1349481470,), (1349481477,), (1349481480,), (1349481488,), (1349481495,), (1349481512,), (1349481514,), (1349481522,), (1349500269,), (1349500273,), (1349500277,), (1349500279,), (1349500315,), (1349500320,), (1349500324,), (1349500328,), (1349500331,), (1349500358,), (1349500367,), (1349500369,), (1349500373,), (1349500375,), (1349500403,), (1349500405,), (1349500410,), (1349500445,), (1349500448,), (1349500451,), (1349500453,), (1349500455,), (1349500460,), (1349500485,), (1349500490,), (1349500495,), (1349500499,), (1349500502,), (1349500505,), (1349500535,), (1349500538,), (1349500541,), (1349500543,), (1349500579,), (1349500581,), (1349500585,), (1349500590,), (1349500594,), (1349500597,), (1349500625,), (1349500631,), (1349500635,), (1349500639,), (1349500669,), (1349500672,), (1349500676,), (1349500682,), (1349500687,), (1349500720,), (1349500723,), (1349500728,), (1349500733,), (1349500737,), (1349500739,), (1349500767,), (1349500769,), (1349500774,), (1349500809,), (1349500813,), (1349500817,), (1349500821,), (1349500824,), (1349500827,), (1349500852,), (1349500856,), (1349500861,), (1349500865,), (1349500898,), (1349500900,), (1349500904,), (1349500908,), (1349500914,), (1349500916,), (1349500962,), (1349500955,), (1349500958,), (1349501001,), (1349501004,), (1349501008,), (1349501012,), (1349501015,), (1349501049,), (1349501052,), (1349501056,), (1349501094,), (1349501097,), (1349501101,), (1349501134,), (1349501136,), (1349501140,), (1349501143,), (1349501145,), (1349501148,), (1349501185,), (1349501187,), (1349501192,), (1349501195,), (1349501198,), (1349501230,), (1349501233,), (1349501236,), (1349501238,), (1349501241,), (1349501275,), (1349501277,), (1349501281,), (1349501284,), (1349501317,), (1349501320,), (1349501325,), (1349501328,), (1349501331,), (1349501334,), (1349501365,), (1349501368,), (1349501373,), (1349501376,), (1349501406,), (1349501410,), (1349501414,), (1349501416,), (1349501420,), (1349501423,), (1349501454,), (1349501457,), (1349501459,), (1349501463,), (1349501499,), (1349501502,), (1349501507,), (1349501511,), (1349501516,), (1349501563,), (1349501570,), (1349501580,), (1349501589,), (1349501596,), (1349501604,), (1349501668,), (1349498870,), (1349498875,), (1349498881,), (1349498925,), (1349498932,), (1349498940,), (1349498946,), (1349498954,), (1349498960,), (1349498985,), (1349498988,), (1349498992,), (1349498999,), (1349499034,), (1349499039,), (1349499043,), (1349499049,), (1349499055,), (1349499060,), (1349499084,), (1349499090,), (1349499144,), (1349499150,), (1349499156,), (1349499162,), (1349499196,), (1349499198,), (1349499202,), (1349499204,), (1349499209,), (1349499214,), (1349499242,), (1349499246,), (1349499251,), (1349499255,), (1349499289,), (1349499291,), (1349499326,), (1349499330,), (1349499334,), (1349499339,), (1349499380,), (1349499382,), (1349499384,), (1349499387,), (1349499389,), (1349499419,), (1349499424,), (1349499428,), (1349499434,), (1349499468,), (1349499470,), (1349499473,), (1349499476,), (1349499507,), (1349499510,), (1349499513,), (1349499550,), (1349499553,), (1349499555,), (1349499557,), (1349499560,), (1349499563,), (1349499608,), (1349499595,), (1349499597,), (1349499601,), (1349499603,), (1349499606,), (1349499639,), (1349499641,), (1349499644,), (1349499681,), (1349499684,), (1349499687,), (1349499691,), (1349499724,), (1349499726,), (1349499765,), (1349499768,), (1349499770,), (1349499806,), (1349499809,), (1349499812,), (1349499815,), (1349499818,), (1349499853,), (1349499859,), (1349499863,), (1349499895,), (1349499899,), (1349499905,), (1349499909,), (1349499913,), (1349499916,), (1349499937,), (1349499942,), (1349499947,), (1349499953,), (1349499957,), (1349499984,), (1349499990,), (1349499995,), (1349500006,), (1349500012,), (1349500032,), (1349500036,), (1349500041,), (1349500047,), (1349500054,), (1349500058,), (1349500080,), (1349500082,), (1349500086,), (1349500090,), (1349500124,), (1349500129,), (1349500134,), (1349500139,), (1349500143,), (1349500176,), (1349500180,), (1349500182,), (1349500184,), (1349500187,), (1349500218,), (1349500223,), (1349500228,), (1349500232,), (1349500236,), (1349500282,), (1349501646,), (1349501650,), (1349501656,), (1349501661,), (1349501736,), (1349501754,), (1349501817,), (1349501927,), (1349501946,), (1349501950,), (1349501954,), (1349501976,), (1349501998,), (1349502095,), (1349502408,), (1349502806,), (1349502836,), (1349502879,), (1349502935,), (1349502973,), (1349503105,), (1349503110,), (1349503115,), (1349503129,), (1349503391,), (1349503399,), (1349503403,), (1349503419,), (1349503444,), (1349503469,), (1349503725,), (1349503756,), (1349503773,), (1349503790,), (1349503826,), (1349504084,), (1349504224,), (1349504337,), (1349504439,), (1349504476,), (1349504794,), (1349504849,), (1349504852,), (1349504855,), (1349505015,), (1349505020,), (1349505033,), (1349505036,), (1349505041,), (1349505047,), (1349505203,), (1349505227,), (1349505253,), (1349505306,), (1349505626,), (1349505682,), (1349505757,), (1349505773,), (1349505782,), (1349505796,), (1349506019,), (1349506038,), (1349506064,), (1349506089,), (1349506113,), (1349506348,), (1349506308,), (1349506339,), (1349506345,), (1349506399,), (1349506403,), (1349506414,), (1349506421,), (1349506428,), (1349506435,), (1349506527,), (1349506530,), (1349506543,), (1349506554,), (1349506632,), (1349506644,), (1349506649,), (1349506653,), (1349506657,), (1349506661,), (1349506901,), (1349506921,), (1349506924,), (1349506943,), (1349506957,), (1349507013,), (1349507118,), (1349507129,), (1349507136,), (1349507295,), (1349507368,), (1349507396,), (1349507416,), (1349507458,), (1349507466,), (1349507609,), (1349507630,), (1349507636,), (1349507642,), (1349507774,), (1349507780,), (1349507785,), (1349507789,), (1349507793,), (1349507831,), (1349507834,), (1349507839,), (1349507844,), (1349507853,), (1349507861,), (1349507913,), (1349507923,), (1349507927,), (1349507932,), (1349507966,), (1349507974,), (1349507978,), (1349508001,), (1349508010,), (1349508027,), (1349508082,), (1349508086,), (1349508093,), (1349508114,), (1349508165,), (1349508169,), (1349508293,), (1349508298,), (1349508303,), (1349508461,), (1349508463,), (1349508467,), (1349508473,), (1349508485,), (1349508491,), (1349508560,), (1349508547,), (1349508552,), (1349508555,), (1349508600,), (1349508656,), (1349508666,), (1349508682,), (1349508693,), (1349510450,), (1349510457,), (1349510463,), (1349510469,), (1349510509,), (1349510515,), (1349510519,), (1349510522,), (1349510649,), (1349510652,), (1349510660,), (1349510675,), (1349510681,), (1349510951,), (1349510962,), (1349510967,), (1349510989,), (1349511142,), (1349511145,), (1349511148,), (1349511234,), (1349511239,), (1349511243,), (1349511247,), (1349511557,), (1349511435,), (1349511463,), (1349511474,), (1349511522,), (1349511534,), (1349512027,), (1349512068,), (1349512107,), (1349512160,), (1349512753,), (1349512835,), (1349512902,), (1349512931,), (1349513003,), (1349513035,), (1349513105,), (1349513108,), (1349513112,), (1349513115,), (1349513118,), (1349513226,), (1349513258,), (1349513280,), (1349513305,), (1349513573,), (1349513616,), (1349513649,), (1349513654,), (1349513658,), (1349513662,), (1349513781,), (1349513785,), (1349513794,), (1349513795,), (1349513812,), (1349513850,), (1349513957,), (1349513961,), (1349513966,), (1349513970,), (1349514023,), (1349514225,), (1349514230,), (1349514232,), (1349514234,), (1349514238,), (1349514241,), (1349514538,), (1349514563,), (1349514591,), (1349514651,), (1349514653,), (1349514665,), (1349514668,), (1349514671,), (1349514673,), (1349514705,), (1349514715,), (1349514727,), (1349514734,), (1349514893,), (1349514939,), (1349514967,), (1349514999,), (1349515044,), (1349515443,), (1349515447,), (1349515454,), (1349515461,), (1349515468,), (1349515473,), (1349515611,), (1349515591,), (1349515596,), (1349515601,), (1349515606,), (1349515863,), (1349515891,), (1349515906,), (1349515955,), (1349516162,), (1349516177,), (1349516203,), (1349516229,), (1349516254,), (1349516583,), (1349516614,), (1349516725,), (1349516808,), (1349516869,), (1349516913,), (1349517313,), (1349517402,), (1349517456,), (1349518036,), (1349518091,), (1349518166,), (1349518219,), (1349518262,), (1349518350,), (1349518798,), (1349518845,), (1349518906,), (1349518934,), (1349518954,), (1349519380,), (1349519395,), (1349519478,), (1349519526,), (1349519587,), (1349520108,), (1349520169,), (1349520199,), (1349520231,), (1349520276,), (1349520578,), (1349520622,), (1349520667,), (1349520727,), (1349520754,), (1349520835,), (1349521584,), (1349521662,), (1349521738,), (1349522513,), (1349522618,), (1349522659,), (1349522717,), (1349522791,), (1349522866,), (1349523281,), (1349523384,), (1349523462,), (1349523526,), (1349523580,), (1349523603,), (1349524527,), (1349524693,), (1349524807,), (1349524923,), (1349526703,), (1349526777,), (1349526822,), (1349526864,), (1349526999,), (1349527975,), (1349527689,), (1349527731,), (1349527803,), (1349527891,), (1349528800,), (1349528890,), (1349529031,), (1349529275,), (1349529382,), (1349529888,), (1349529972,), (1349530076,), (1349530185,), (1349530247,), (1349530294,), (1349530967,), (1349531052,), (1349531130,), (1349532173,), (1349532229,), (1349532503,), (1349532721,), (1349532830,), (1349533472,), (1349533509,), (1349533573,), (1349533658,), (1349533749,), (1349533795,), (1349534382,), (1349534534,), (1349534622,), (1349535648,), (1349535737,), (1349535889,), (1349535969,), (1349536045,), (1349536140,), (1349536803,), (1349536936,), (1349537040,), (1349537171,), (1349537259,), (1349537962,), (1349538049,), (1349538093,), (1349538142,), (1349538620,), (1349538645,), (1349538698,), (1349539187,), (1349539234,), (1349539281,), (1349539308,), (1349539335,), (1349539379,), (1349539817,), (1349539885,), (1349539942,), (1349539984,), (1349540054,), (1349540107,), (1349540255,), (1349540311,), (1349540381,), (1349541517,), (1349541646,), (1349541747,), (1349541844,), (1349541890,), (1349542694,), (1349560558,), (1349560568,), (1349560628,), (1349561240,), (1349561271,), (1349561322,), (1349561368,), (1349561387,), (1349561410,), (1349561540,), (1349561576,), (1349561886,), (1349561927,), (1349561956,), (1349561982,), (1349562354,), (1349562390,), (1349562412,), (1349562472,), (1349562546,), (1349562587,), (1349562963,), (1349563033,), (1349563068,), (1349563093,), (1349563130,), (1349563474,), (1349563498,), (1349563504,), (1349563674,), (1349563677,), (1349563681,), (1349563683,), (1349563686,), (1349563689,), (1349563797,), (1349563813,), (1349563837,), (1349563862,), (1349563879,), (1349564082,), (1349564108,), (1349564139,), (1349564335,), (1349564364,), (1349564386,), (1349564389,), (1349564394,), (1349564477,), (1349564479,), (1349564482,), (1349564485,), (1349564552,), (1349564555,), (1349564559,), (1349564564,), (1349564568,), (1349564626,), (1349564629,), (1349564631,), (1349564634,), (1349565072,), (1349564847,), (1349564874,), (1349564915,), (1349564974,), (1349565020,), (1349565302,), (1349565330,), (1349565366,), (1349565401,), (1349565450,), (1349565463,), (1349565468,), (1349565477,), (1349565504,), (1349565529,), (1349565877,), (1349565924,), (1349565963,), (1349565998,), (1349566034,), (1349566188,), (1349566197,), (1349566230,), (1349566276,), (1349566286,), (1349566289,), (1349566292,), (1349566295,), (1349566324,), (1349566328,), (1349566396,), (1349566402,), (1349566566,), (1349566571,), (1349566598,), (1349566635,), (1349566675,), (1349566915,), (1349566920,), (1349566926,), (1349566930,), (1349566976,), (1349566991,), (1349566995,), (1349567013,), (1349567037,), (1349567062,), (1349567385,), (1349567390,), (1349567394,), (1349567397,), (1349567429,), (1349567435,), (1349567437,), (1349567439,), (1349567441,), (1349567489,), (1349567492,), (1349567494,), (1349567497,), (1349567501,), (1349567507,), (1349567534,), (1349567539,), (1349567549,), (1349567562,), (1349567618,), (1349567611,), (1349567615,), (1349567686,), (1349567693,), (1349567771,), (1349567786,), (1349567791,), (1349567844,), (1349567860,), (1349567887,), (1349567916,), (1349567947,), (1349567976,), (1349568087,), (1349568089,), (1349568091,), (1349568124,), (1349568728,), (1349568796,), (1349568866,), (1349568959,), (1349569080,), (1349569380,), (1349569383,), (1349569386,), (1349569389,), (1349569433,), (1349569446,), (1349569459,), (1349569470,), (1349569474,), (1349569801,), (1349569850,), (1349569922,), (1349569944,), (1349570146,), (1349570150,), (1349570174,), (1349570178,), (1349570182,), (1349570220,), (1349570246,), (1349570250,), (1349570255,), (1349570260,), (1349570337,), (1349570340,), (1349570344,), (1349570347,), (1349570351,), (1349570358,), (1349570446,), (1349570461,), (1349570466,), (1349570470,), (1349570534,), (1349570536,), (1349570539,), (1349570543,), (1349570547,), (1349570578,), (1349570582,), (1349570594,), (1349570608,), (1349570611,), (1349570671,), (1349570676,), (1349570683,), (1349570685,), (1349570983,), (1349570957,), (1349570962,), (1349570967,), (1349570972,), (1349570981,), (1349571039,), (1349571048,), (1349571080,), (1349571190,), (1349571194,), (1349571207,), (1349571374,), (1349571382,), (1349571385,), (1349571395,), (1349571450,), (1349571505,), (1349571689,), (1349571717,), (1349571767,), (1349571822,), (1349571869,), (1349571918,), (1349571992,), (1349571996,), (1349572060,), (1349572063,), (1349572065,), (1349572067,), (1349572070,), (1349572072,), (1349572102,), (1349572105,), (1349572110,), (1349572113,), (1349572132,), (1349572185,), (1349572338,), (1349572365,), (1349572399,), (1349572424,), (1349572453,), (1349572716,), (1349572749,), (1349572788,), (1349572840,), (1349573439,), (1349573454,), (1349573516,), (1349573589,), (1349573630,), (1349573633,), (1349573779,), (1349573782,), (1349573794,), (1349573808,), (1349574794,), (1349574834,), (1349574874,), (1349574931,), (1349574968,), (1349575030,), (1349575266,), (1349575174,), (1349575179,), (1349575202,), (1349575235,), (1349575730,), (1349575795,), (1349575870,), (1349575964,), (1349576029,), (1349576506,), (1349576558,), (1349576638,), (1349576701,), (1349576778,), (1349577201,), (1349577256,), (1349577283,), (1349577529,), (1349577611,), (1349577636,), (1349577660,), (1349577688,), (1349577894,), (1349577925,), (1349577959,), (1349578023,), (1349578074,), (1349578100,), (1349578337,), (1349578364,), (1349578384,), (1349578399,), (1349578403,), (1349578486,), (1349578489,), (1349578492,), (1349578496,), (1349578639,), (1349578642,), (1349578646,), (1349578650,), (1349578654,), (1349578707,), (1349578752,), (1349578769,), (1349578776,), (1349578780,), (1349578849,), (1349578852,), (1349578856,), (1349578859,), (1349578896,), (1349578902,), (1349578910,), (1349578916,), (1349578919,), (1349578957,), (1349578961,), (1349578999,), (1349579002,), (1349579499,), (1349579622,), (1349579626,), (1349579630,), (1349579636,), (1349579705,), (1349579725,), (1349579731,), (1349579885,), (1349579892,), (1349579898,), (1349579903,), (1349579910,), (1349579915,), (1349579942,), (1349579947,), (1349579954,), (1349580046,), (1349580065,), (1349580079,), (1349580083,), (1349580140,), (1349580144,), (1349580151,), (1349580183,), (1349580187,), (1349580192,), (1349580229,), (1349580265,), (1349580348,), (1349580434,), (1349580484,), (1349580580,), (1349580583,), (1349580626,), (1349580652,), (1349580690,), (1349580768,), (1349580772,), (1349580836,), (1349580839,), (1349580844,), (1349580847,), (1349580892,), (1349580901,), (1349580906,), (1349580911,), (1349580916,), (1349580942,), (1349580946,), (1349580951,), (1349580998,), (1349581001,), (1349581004,), (1349581007,), (1349581011,), (1349581135,), (1349581078,), (1349581082,), (1349581090,), (1349581100,), (1349581105,), (1349581175,), (1349581189,), (1349581200,), (1349581208,), (1349581244,), (1349581252,), (1349581266,), (1349581271,), (1349581275,), (1349581321,), (1349581426,), (1349581462,), (1349581515,), (1349581606,), (1349581668,), (1349581720,), (1349581870,), (1349581888,), (1349581902,), (1349581908,), (1349581955,), (1349581960,), (1349581964,), (1349581969,), (1349581979,), (1349581986,), (1349582012,), (1349582016,), (1349582022,), (1349582028,), (1349582034,), (1349582170,), (1349582173,), (1349582186,), (1349582196,), (1349582202,), (1349582211,), (1349582244,), (1349582257,), (1349582264,), (1349582272,), (1349582279,), (1349582319,), (1349582341,), (1349582348,), (1349582368,), (1349582525,), (1349582552,), (1349582558,), (1349582563,), (1349582568,), (1349582572,), (1349582633,), (1349582643,), (1349582650,), (1349582658,), (1349582673,), (1349582770,), (1349582776,), (1349582783,), (1349582788,), (1349582791,), (1349582803,), (1349582879,), (1349582887,), (1349582896,), (1349582899,), (1349582954,), (1349582959,), (1349582963,), (1349582969,), (1349582976,), (1349583000,), (1349583233,), (1349583123,), (1349583153,), (1349583203,), (1349583416,), (1349583439,), (1349583463,), (1349583780,), (1349583851,), (1349583889,), (1349583911,), (1349583972,), (1349584206,), (1349584212,), (1349584216,), (1349584221,), (1349584224,), (1349584261,), (1349584277,), (1349584286,), (1349584288,), (1349584294,), (1349584381,), (1349584385,), (1349584458,), (1349584463,), (1349584466,), (1349584469,), (1349584498,), (1349584502,), (1349584504,), (1349584552,), (1349584555,), (1349584559,), (1349584563,), (1349584566,), (1349584601,), (1349584605,), (1349584607,), (1349584610,), (1349584646,), (1349584654,), (1349584658,), (1349584667,), (1349584669,), (1349584702,), (1349584705,), (1349584707,), (1349584817,), (1349584820,), (1349584824,), (1349584828,), (1349584832,), (1349585299,), (1349585345,), (1349585405,), (1349585468,), (1349585522,), (1349585676,), (1349585688,), (1349585727,), (1349585745,), (1349585787,), (1349585805,), (1349585851,), (1349585875,), (1349586195,), (1349586077,), (1349586140,), (1349586812,), (1349587556,), (1349587608,), (1349587661,), (1349587703,), (1349587751,), (1349587798,), (1349588151,), (1349588195,), (1349588246,), (1349588305,), (1349588867,), (1349588925,), (1349588973,), (1349589017,), (1349589086,), (1349589105,), (1349589350,), (1349589377,), (1349589383,), (1349589389,), (1349589399,), (1349589412,), (1349589771,), (1349589790,), (1349589805,), (1349589811,), (1349589961,), (1349589987,), (1349590018,), (1349590044,), (1349590068,), (1349590121,), (1349590499,), (1349590510,), (1349590526,), (1349590566,), (1349590625,), (1349590670,), (1349590894,), (1349590912,), (1349590929,), (1349591075,), (1349591080,), (1349591086,), (1349591089,), (1349591096,), (1349591128,), (1349591135,), (1349591139,), (1349591144,), (1349591158,), (1349591182,), (1349591187,), (1349591191,), (1349591196,), (1349591199,), (1349591236,), (1349591243,), (1349591249,), (1349591254,), (1349591274,), (1349591301,), (1349591305,), (1349591309,), (1349591314,), (1349591320,), (1349591324,), (1349591541,), (1349591526,), (1349591536,), (1349591643,), (1349591646,), (1349591683,), (1349591696,), (1349591707,), (1349591750,), (1349591798,), (1349591815,), (1349591826,), (1349591852,), (1349591856,), (1349591869,), (1349591873,), (1349591877,), (1349592013,), (1349592019,), (1349592023,), (1349592028,), (1349592079,), (1349592083,), (1349592085,), (1349592089,), (1349592092,), (1349592197,), (1349592216,), (1349592238,), (1349592263,), (1349592288,), (1349592297,), (1349592464,), (1349592472,), (1349592494,), (1349592644,), (1349592648,), (1349592680,), (1349592765,), (1349592768,), (1349592771,), (1349592817,), (1349592822,), (1349592826,), (1349592829,), (1349592833,), (1349592837,), (1349592881,), (1349592892,), (1349592895,), (1349592970,), (1349592982,), (1349592985,), (1349592988,), (1349592992,), (1349592996,), (1349593220,), (1349593282,), (1349593350,), (1349593412,), (1349593543,), (1349593547,), (1349593573,), (1349593576,), (1349593622,), (1349593627,), (1349593641,), (1349593645,), (1349593652,), (1349593658,), (1349593801,), (1349593787,), (1349593791,), (1349593792,), (1349593794,), (1349593798,), (1349594012,), (1349594016,), (1349594020,), (1349594025,), (1349594027,), (1349594064,), (1349594067,), (1349594070,), (1349594339,), (1349594348,), (1349594351,), (1349594354,), (1349594357,), (1349594407,), (1349594651,), (1349594707,), (1349594756,), (1349594791,), (1349594822,), (1349594868,), (1349595055,), (1349595079,), (1349595120,), (1349595150,), (1349595175,), (1349595205,), (1349595386,), (1349595412,), (1349595418,), (1349595512,), (1349595531,), (1349595540,), (1349595544,), (1349595547,), (1349595678,), (1349595682,), (1349595702,), (1349595710,), (1349595712,), (1349595816,), (1349595822,), (1349595825,), (1349595987,), (1349595992,), (1349595994,), (1349595998,), (1349599695,), (1349599689,), (1349600177,), (1349600205,), (1349601157,), (1349601559,), (1349601586,), (1349601917,), (1349601944,), (1349601947,), (1349601963,), (1349602024,), (1349602054,), (1349602105,), (1349602107,), (1349602111,), (1349602116,), (1349602122,), (1349602192,), (1349602195,), (1349602286,), (1349602288,), (1349602314,), (1349602370,), (1349602373,), (1349602376,), (1349602380,), (1349602384,), (1349602411,), (1349602413,), (1349602418,), (1349602421,), (1349602510,), (1349602512,), (1349602550,), (1349602555,), (1349602557,), (1349602560,), (1349602563,), (1349602566,), (1349602585,), (1349602588,), (1349602592,), (1349602594,), (1349602597,), (1349602601,), (1349602644,), (1349602625,), (1349602627,), (1349602632,), (1349602636,), (1349602738,), (1349602739,), (1349602741,), (1349602743,), (1349602746,), (1349602838,), (1349602843,), (1349602858,), (1349602903,), (1349602943,), (1349602966,), (1349603030,), (1349603031,), (1349603034,), (1349603037,), (1349603067,), (1349603069,), (1349603072,), (1349603075,), (1349603473,), (1349603479,), (1349603482,), (1349603510,), (1349603516,), (1349603522,), (1349603525,), (1349603540,), (1349603655,), (1349603657,), (1349603660,), (1349603721,), (1349603724,), (1349603727,), (1349603730,), (1349603733,), (1349603793,), (1349603814,), (1349603838,), (1349603861,), (1349603879,), (1349603898,), (1349603991,), (1349603999,), (1349604003,), (1349604070,), (1349604071,), (1349604073,), (1349604075,), (1349604078,), (1349604081,), (1349604101,), (1349604112,), (1349604129,), (1349604136,), (1349604171,), (1349604173,), (1349604175,), (1349604177,), (1349604180,), (1349604183,), (1349604211,), (1349604218,), (1349604226,), (1349604229,), (1349604233,), (1349604235,), (1349604278,), (1349604269,), (1349604272,), (1349604275,), (1349604303,), (1349604306,), (1349604310,), (1349604316,), (1349604328,), (1349604380,), (1349604383,), (1349604385,), (1349604388,), (1349604416,), (1349604436,), (1349604568,), (1349604572,), (1349604576,), (1349604595,), (1349604597,), (1349604600,), (1349604603,), (1349604606,), (1349604628,), (1349604631,), (1349604644,), (1349604651,), (1349604725,), (1349604731,), (1349604753,), (1349604771,), (1349604797,), (1349604800,), (1349604813,), (1349604825,), (1349604828,), (1349604831,), (1349604846,), (1349604849,), (1349604853,), (1349604857,), (1349604860,), (1349604915,), (1349604917,), (1349604925,), (1349605063,), (1349605073,), (1349605078,), (1349605082,), (1349605085,), (1349605088,), (1349605198,), (1349605201,), (1349605207,), (1349605211,), (1349605214,), (1349605359,), (1349605365,), (1349605368,), (1349605370,), (1349605374,), (1349605405,), (1349605410,), (1349605412,), (1349605416,), (1349605420,), (1349605448,), (1349605473,), (1349605475,), (1349605479,), (1349605552,), (1349605516,), (1349605524,), (1349605528,), (1349605532,), (1349605542,), (1349605621,), (1349605623,), (1349605628,), (1349605636,), (1349605667,), (1349605774,), (1349605843,), (1349605845,), (1349605848,), (1349605877,), (1349605881,), (1349605885,), (1349605888,), (1349605918,), (1349605919,), (1349605921,), (1349605923,), (1349605926,), (1349605929,), (1349605957,), (1349605961,), (1349605973,), (1349605980,), (1349606004,), (1349606074,), (1349606078,), (1349606082,), (1349606086,), (1349606107,), (1349606109,), (1349606112,), (1349606115,), (1349606118,), (1349606120,), (1349606888,), (1349612222,), (1349612181,), (1349612638,), (1349612673,), (1349612704,), (1349612740,), (1349612793,), (1349612820,), (1349613088,), (1349613122,), (1349613148,), (1349613384,), (1349613402,), (1349613429,), (1349613464,), (1349613640,), (1349613643,), (1349613648,), (1349613653,), (1349613656,), (1349613660,), (1349614154,), (1349613859,), (1349613915,), (1349613967,), (1349614017,), (1349614081,), (1349614680,), (1349614710,), (1349615364,), (1349615387,), (1349615422,), (1349615777,), (1349615825,), (1349616243,), (1349616266,), (1349616307,), (1349616350,), (1349616399,), (1349616983,), (1349617024,), (1349617062,), (1349617089,), (1349617643,), (1349617744,), (1349617768,), (1349617822,), (1349617858,), (1349617904,), (1349618260,), (1349618414,), (1349618517,), (1349618657,), (1349618780,), (1349618857,), (1349619299,), (1349619316,), (1349619342,), (1349619370,), (1349619553,), (1349619577,), (1349619601,), (1349619623,), (1349619675,), (1349619747,), (1349620184,), (1349620201,), (1349620432,), (1349620737,), (1349620777,), (1349620834,), (1349620902,), (1349621535,), (1349621598,), (1349621648,), (1349621721,), (1349621782,), (1349622130,), (1349622158,), (1349622191,), (1349622626,), (1349623964,), (1349623977,), (1349624273,), (1349624317,), (1349624355,), (1349624387,), (1349624697,), (1349624722,), (1349624750,), (1349624772,), (1349624776,), (1349624779,), (1349624905,), (1349624925,), (1349624941,), (1349624947,), (1349624963,), (1349625025,), (1349625029,), (1349625032,), (1349625084,), (1349625097,), (1349625108,), (1349625117,), (1349625125,), (1349625144,), (1349625256,), (1349625262,), (1349625271,), (1349625297,), (1349625521,), (1349625525,), (1349625764,), (1349625775,), (1349625779,), (1349625783,), (1349625787,), (1349626076,), (1349626133,), (1349626158,), (1349626179,), (1349626183,), (1349626208,), (1349626484,), (1349626522,), (1349626547,), (1349626571,), (1349626603,), (1349626620,), (1349626804,), (1349626895,), (1349626910,), (1349626931,), (1349627394,), (1349627184,), (1349627209,), (1349627256,), (1349627304,), (1349627345,), (1349628007,), (1349628053,), (1349628085,), (1349628149,), (1349628654,), (1349628699,), (1349628779,), (1349628921,), (1349628996,), (1349629048,), (1349629663,), (1349629709,), (1349629768,), (1349629926,), (1349630080,), (1349630116,), (1349630971,), (1349631032,), (1349631097,), (1349631188,), (1349631857,), (1349631876,), (1349631952,), (1349631991,), (1349632055,), (1349632132,), (1349632687,), (1349632761,), (1349632867,), (1349632968,), (1349633671,), (1349633745,), (1349633904,), (1349633991,), (1349634076,), (1349634150,), (1349634636,), (1349634704,), (1349634837,), (1349634910,), (1349634932,), (1349635470,), (1349635574,), (1349635674,), (1349635758,), (1349635849,), (1349636481,), (1349636567,), (1349636639,), (1349636709,), (1349637359,), (1349637391,), (1349637439,), (1349637490,), (1349637544,), (1349637603,), (1349638758,), (1349638894,), (1349639008,), (1349639087,), (1349639157,), (1349640422,), (1349640504,), (1349640554,), (1349640608,), (1349640669,), (1349640867,), (1349640962,), (1349641052,), (1349641145,), (1349641230,), (1349641837,), (1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,), (1349650183,), (1349650227,), (1349650326,), (1349650463,), (1349650576,), (1349650648,), (1349651146,), (1349651194,), (1349651262,), (1349651316,), (1349651997,), (1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,), (1349658562,), (1349658606,), (1349658660,), (1349658813,), (1349658963,), (1349659065,), (1349659518,), (1349659616,), (1349659750,), (1349659817,), (1349660349,), (1349660404,), (1349660487,), (1349660542,), (1349660592,), (1349660937,), (1349660961,), (1349660997,), (1349661022,), (1349661055,), (1349661314,), (1349661342,), (1349661362,), (1349661367,), (1349661372,), (1349661409,), (1349661411,), (1349661414,), (1349661416,), (1349661478,), (1349661489,), (1349661496,), (1349661501,), (1349661576,), (1349661553,), (1349661560,), (1349661568,), (1349661573,), (1349661697,), (1349661724,), (1349661760,), (1349661792,), (1349661813,), (1349662051,), (1349662055,), (1349662058,), (1349662061,), (1349662066,), (1349662073,), (1349662218,), (1349662241,), (1349662250,), (1349662285,), (1349662340,), (1349662364,), (1349662374,), (1349662377,), (1349662380,), (1349662384,), (1349662423,), (1349662432,), (1349662443,), (1349662446,), (1349662454,), (1349662504,), (1349662537,), (1349662540,), (1349662546,), (1349662722,), (1349662737,), (1349662766,), (1349662790,), (1349662811,), (1349662834,), (1349662925,), (1349662928,), (1349662933,), (1349662941,), (1349663035,), (1349663042,), (1349663073,), (1349663081,), (1349663086,), (1349663128,), (1349663132,), (1349663137,), (1349663142,), (1349663145,), (1349663148,), (1349663211,), (1349663222,), (1349663235,), (1349663253,), (1349663257,), (1349663318,), (1349663322,), (1349663328,), (1349663375,), (1349663397,), (1349663400,), (1349663434,), (1349663438,), (1349663448,), (1349663459,), (1349663497,), (1349663810,), (1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,), (1349664318,), (1349664325,), (1349664331,), (1349664336,), (1349664338,), (1349664342,), (1349664641,), (1349664648,), (1349664654,), (1349664659,), (1349664711,), (1349664716,), (1349664721,), (1349664726,), (1349664730,), (1349664751,), (1349665274,), (1349665306,), (1349665340,), (1349665366,), (1349665372,), (1349665455,), (1349665515,), (1349665573,), (1349665632,), (1349665688,), (1349666220,), (1349666241,), (1349483112,), (1349483114,), (1349483166,), (1349483170,), (1349483223,), (1349483266,), (1349483315,), (1349483318,), (1349483355,), (1349483358,), (1349483361,), (1349483404,), (1349483409,), (1349483412,), (1349483414,), (1349483418,), (1349483452,), (1349483456,), (1349483460,), (1349483465,), (1349483470,), (1349483501,), (1349483504,), (1349483507,), (1349483509,), (1349483513,), (1349483546,), (1349483549,), (1349483553,), (1349483557,), (1349483561,), (1349483565,), (1349483603,), (1349483604,), (1349483608,), (1349483610,), (1349483614,), (1349483648,), (1349483651,), (1349483655,), (1349483659,), (1349483665,), (1349483696,), (1349483705,), (1349483708,), (1349483711,), (1349483713,), (1349483715,), (1349483743,), (1349483746,), (1349483750,), (1349483753,), (1349483756,), (1349483807,), (1349483793,), (1349483797,), (1349483800,), (1349483803,), (1349483844,), (1349483847,), (1349483849,), (1349483851,), (1349483854,), (1349483905,), (1349483908,), (1349483912,), (1349483915,), (1349483919,), (1349483924,), (1349483960,), (1349483963,), (1349483968,), (1349483972,), (1349483976,), (1349483981,), (1349484020,), (1349484024,), (1349484027,), (1349484029,), (1349484072,), (1349484078,), (1349484083,), (1349484088,), (1349484093,), (1349484131,), (1349484135,), (1349484138,), (1349484142,), (1349484145,), (1349484150,), (1349484180,), (1349484193,), (1349484197,), (1349484202,), (1349484206,), (1349484240,), (1349484245,), (1349484250,), (1349484256,), (1349484262,), (1349484298,), (1349484302,), (1349484306,), (1349484309,), (1349484313,), (1349484318,), (1349484356,), (1349484362,), (1349484365,), (1349484370,), (1349484374,), (1349484414,), (1349484417,), (1349484419,), (1349484420,), (1349484426,), (1349484465,), (1349484468,), (1349484473,), (1349484478,), (1349484484,), (1349484532,), (1349484538,), (1349484546,), (1349484557,), (1349484563,), (1349484627,), (1349484603,), (1349484609,), (1349484614,), (1349484621,), (1349484658,), (1349484665,), (1349484670,), (1349484676,), (1349484683,), (1349484716,), (1349484722,), (1349484728,), (1349484734,), (1349484780,), (1349484784,), (1349484788,), (1349484830,), (1349484836,), (1349484844,), (1349484937,), (1349485170,), (1349485232,), (1349485236,), (1349485240,), (1349485246,), (1349485251,), (1349485290,), (1349485296,), (1349485302,), (1349485308,), (1349485313,), (1349485317,), (1349485350,), (1349485356,), (1349485360,), (1349485364,), (1349485368,), (1349485413,), (1349485419,), (1349485423,), (1349485429,), (1349485437,), (1349485440,), (1349485488,), (1349485471,), (1349485474,), (1349485478,), (1349485483,), (1349485524,), (1349485529,), (1349485535,), (1349485541,), (1349485545,), (1349485579,), (1349485582,), (1349485586,), (1349485589,), (1349485592,), (1349485628,), (1349485635,), (1349485641,), (1349485644,), (1349485648,), (1349485649,), (1349485687,), (1349485692,), (1349485696,), (1349485697,), (1349485702,), (1349485733,), (1349485737,), (1349485742,), (1349485747,), (1349485750,), (1349485790,), (1349485794,), (1349485799,), (1349485804,), (1349485809,), (1349485842,), (1349485847,), (1349485853,), (1349485858,), (1349485863,), (1349485866,), (1349485900,), (1349485903,), (1349485908,), (1349485913,), (1349485916,), (1349485952,), (1349485956,), (1349485959,), (1349485963,), (1349485969,), (1349486001,), (1349486005,), (1349486011,), (1349486017,), (1349486022,), (1349486054,), (1349486057,), (1349486059,), (1349486061,), (1349486063,), (1349486067,), (1349486096,), (1349486099,), (1349486104,), (1349486107,), (1349486111,), (1349486143,), (1349486144,), (1349486147,), (1349486150,), (1349486152,), (1349486178,), (1349486192,), (1349486196,), (1349486201,), (1349486204,), (1349486206,), (1349486237,), (1349486230,), (1349486231,), (1349486234,), (1349486265,), (1349486267,), (1349486271,), (1349486275,), (1349486280,), (1349486282,), (1349486309,), (1349486311,), (1349486315,), (1349486355,), (1349486358,), (1349486361,), (1349486364,), (1349486368,), (1349486372,), (1349486405,), (1349486408,), (1349486410,), (1349486413,), (1349486417,), (1349486456,), (1349486459,), (1349486463,), (1349486467,), (1349486471,), (1349486474,), (1349486510,), (1349486514,), (1349486517,), (1349486521,), (1349486559,), (1349486561,), (1349486564,), (1349486567,), (1349486571,), (1349486615,), (1349486618,), (1349486622,), (1349486626,), (1349486629,), (1349486669,), (1349486672,), (1349486676,), (1349486678,), (1349486683,), (1349486688,), (1349486727,), (1349486729,), (1349486733,), (1349486736,), (1349486740,), (1349486781,), (1349486783,), (1349486785,), (1349486788,), (1349486793,), (1349486833,), (1349486837,), (1349486839,), (1349486843,), (1349486878,), (1349486881,), (1349486884,), (1349486888,), (1349486893,), (1349486896,), (1349486934,), (1349486938,), (1349486940,), (1349486943,), (1349486949,), (1349486953,), (1349486997,), (1349486991,), (1349486994,), (1349487046,), (1349487050,), (1349487053,), (1349487056,), (1349487059,), (1349487062,), (1349487097,), (1349487099,), (1349487103,), (1349487149,), (1349487153,), (1349487156,), (1349487197,), (1349487199,), (1349487202,), (1349487205,), (1349487249,), (1349487252,), (1349487255,), (1349487257,), (1349487260,), (1349487300,), (1349487302,), (1349487305,), (1349487308,), (1349487349,), (1349487352,), (1349487357,), (1349487361,), (1349487365,), (1349487406,), (1349487409,), (1349487411,), (1349487414,), (1349487418,), (1349487458,), (1349487461,), (1349487465,), (1349487471,), (1349487476,), (1349487479,), (1349487515,), (1349487518,), (1349487523,), (1349487528,), (1349487564,), (1349487568,), (1349487571,), (1349487574,), (1349487578,), (1349487581,), (1349487614,), (1349487616,), (1349487621,), (1349487625,), (1349487672,), (1349487678,), (1349487687,), (1349487697,), (1349487706,), (1349487716,), (1349487775,), (1349487754,), (1349487757,), (1349487763,), (1349487767,), (1349487806,), (1349487810,), (1349487819,), (1349487826,), (1349487866,), (1349487871,), (1349487878,), (1349487885,), (1349487891,), (1349487897,), (1349487922,), (1349487926,), (1349487931,), (1349487936,), (1349487972,), (1349487974,), (1349487978,), (1349487982,), (1349487986,), (1349487992,), (1349488023,), (1349488027,), (1349488034,), (1349488039,), (1349488071,), (1349488075,), (1349488079,), (1349488085,), (1349488090,), (1349488091,), (1349488115,), (1349488119,), (1349488124,), (1349488129,), (1349488134,), (1349488159,), (1349488162,), (1349488167,), (1349488171,), (1349488179,), (1349488185,), (1349488205,), (1349488210,), (1349488213,), (1349488217,), (1349488248,), (1349488251,), (1349488255,), (1349488258,), (1349488263,), (1349488266,), (1349488296,), (1349488299,), (1349488303,), (1349488345,), (1349488348,), (1349488353,), (1349488357,), (1349488360,), (1349488362,), (1349488380,), (1349488382,), (1349488386,), (1349488389,), (1349488395,), (1349488419,), (1349488425,), (1349488432,), (1349488440,), (1349488447,), (1349488450,), (1349488484,), (1349488471,), (1349488475,), (1349488480,), (1349488510,), (1349488514,), (1349488519,), (1349488524,), (1349488528,), (1349488533,), (1349488556,), (1349488560,), (1349488564,), (1349488568,), (1349488572,), (1349488575,), (1349488595,), (1349488601,), (1349488606,), (1349488609,), (1349488637,), (1349488641,), (1349488645,), (1349488649,), (1349488652,), (1349488657,), (1349488689,), (1349488694,), (1349488700,), (1349488704,), (1349488733,), (1349488736,), (1349488740,), (1349488745,), (1349488748,), (1349488752,), (1349488779,), (1349488782,), (1349488786,), (1349488790,), (1349488820,), (1349488824,), (1349488829,), (1349488834,), (1349488838,), (1349488843,), (1349488863,), (1349488869,), (1349488874,), (1349488881,), (1349488888,), (1349488917,), (1349488921,), (1349488926,), (1349488930,), (1349488935,), (1349488939,), (1349488964,), (1349488969,), (1349488973,), (1349488978,), (1349488985,), (1349489011,), (1349489017,), (1349489022,), (1349489027,), (1349489030,), (1349489035,), (1349489061,), (1349489064,), (1349489068,), (1349489072,), (1349489105,), (1349489112,), (1349489120,), (1349489126,), (1349489132,), (1349489182,), (1349489169,), (1349489171,), (1349489173,), (1349489175,), (1349489178,), (1349489218,), (1349489223,), (1349489227,), (1349489230,), (1349489261,), (1349489263,), (1349489265,), (1349489267,), (1349489271,), (1349489274,), (1349489304,), (1349489307,), (1349489313,), (1349489317,), (1349489322,), (1349489353,), (1349489356,), (1349489359,), (1349489363,), (1349489369,), (1349489399,), (1349489402,), (1349489406,), (1349489410,), (1349489414,), (1349489448,), (1349489451,), (1349489456,), (1349489461,), (1349489465,), (1349489497,), (1349489500,), (1349489503,), (1349489506,), (1349489509,), (1349489540,), (1349489542,), (1349489545,), (1349489547,), (1349489552,), (1349489584,), (1349489589,), (1349489592,), (1349489596,), (1349489603,), (1349489636,), (1349489639,), (1349489644,), (1349489647,), (1349489651,), (1349489678,), (1349489682,), (1349489686,), (1349489691,), (1349489698,), (1349489721,), (1349489726,), (1349489732,), (1349489736,), (1349489742,), (1349489768,), (1349489771,), (1349489775,), (1349489778,), (1349489782,), (1349489811,), (1349489818,), (1349489824,), (1349489827,), (1349489835,), (1349489841,), (1349489880,), (1349489870,), (1349489874,), (1349489922,), (1349489927,), (1349489931,), (1349489935,), (1349489940,), (1349489945,), (1349489976,), (1349489981,), (1349489987,), (1349490024,), (1349490028,), (1349490033,), (1349490036,), (1349490040,), (1349490046,), (1349490069,), (1349490072,), (1349490075,), (1349490079,), (1349490112,), (1349490116,), (1349490121,), (1349490126,), (1349490132,), (1349490135,), (1349490157,), (1349490160,), (1349490165,), (1349490170,), (1349490175,), (1349490199,), (1349490202,), (1349490207,), (1349490212,), (1349490218,), (1349490223,), (1349490250,), (1349490255,), (1349490260,), (1349490304,), (1349490310,), (1349490317,), (1349490326,), (1349490332,), (1349490338,), (1349490361,), (1349490365,), (1349490370,), (1349490412,), (1349490414,), (1349490418,), (1349490422,), (1349490426,), (1349490432,), (1349490457,), (1349490461,), (1349490464,), (1349490467,), (1349490472,), (1349490509,), (1349490517,), (1349490524,), (1349490532,), (1349490540,), (1349490592,), (1349490570,), (1349490575,), (1349490581,), (1349490587,), (1349490621,), (1349490626,), (1349490633,), (1349490637,), (1349490676,), (1349490680,), (1349490686,), (1349490691,), (1349490696,), (1349490730,), (1349490733,), (1349490736,), (1349490740,), (1349490743,), (1349490777,), (1349490780,), (1349490784,), (1349490792,), (1349490796,), (1349490802,), (1349490828,), (1349490830,), (1349490832,), (1349490833,), (1349490836,), (1349490867,), (1349490870,), (1349490874,), (1349490877,), (1349490878,), (1349490881,), (1349490916,), (1349490919,), (1349490922,), (1349490926,), (1349490958,), (1349490962,), (1349490966,), (1349490971,), (1349490975,), (1349490978,), (1349491004,), (1349491005,), (1349491009,), (1349491013,), (1349491018,), (1349491051,), (1349491056,), (1349491061,), (1349491066,), (1349494408,), (1349494318,), (1349494401,), (1349494406,), (1349494446,), (1349494451,), (1349494455,), (1349494459,), (1349494462,), (1349494464,), (1349494485,), (1349494489,), (1349494493,), (1349494519,), (1349494524,), (1349494563,), (1349494571,), (1349494578,), (1349494585,), (1349494625,), (1349494694,), (1349494880,), (1349494863,), (1349494870,), (1349494874,), (1349494878,), (1349494909,), (1349494912,), (1349494916,), (1349494921,), (1349494924,), (1349494957,), (1349494961,), (1349494965,), (1349495000,), (1349495006,), (1349495012,), (1349495016,), (1349495020,), (1349495050,), (1349495056,), (1349495061,), (1349495064,), (1349495092,), (1349495097,), (1349495102,), (1349495106,), (1349495110,), (1349495114,), (1349495138,), (1349495142,), (1349495147,), (1349495152,), (1349495188,), (1349495194,), (1349495200,), (1349495204,), (1349495207,), (1349495209,), (1349495240,), (1349495243,), (1349495246,), (1349495248,), (1349495251,), (1349495278,), (1349495283,), (1349495288,), (1349495292,), (1349495296,), (1349495329,), (1349495331,), (1349495334,), (1349495336,), (1349495368,), (1349495372,), (1349495377,), (1349495381,), (1349495385,), (1349495427,), (1349495432,), (1349495440,), (1349495448,), (1349495463,), (1349495481,), (1349495485,), (1349495489,), (1349495493,), (1349495513,), (1349495505,), (1349495509,), (1349495558,), (1349495565,), (1349495571,), (1349495576,), (1349495581,), (1349495586,), (1349495623,), (1349495628,), (1349495633,), (1349495638,), (1349495643,), (1349495681,), (1349495686,), (1349495732,), (1349495738,), (1349495743,), (1349495783,), (1349495787,), (1349495792,), (1349495798,), (1349495802,), (1349495836,), (1349495842,), (1349495848,), (1349495854,), (1349495861,), (1349495902,), (1349495907,), (1349495912,), (1349495916,), (1349495957,), (1349495961,), (1349495965,), (1349496011,), (1349496019,), (1349496028,), (1349496034,), (1349496042,), (1349496082,), (1349496087,), (1349496092,), (1349496097,), (1349496103,), (1349496109,), (1349496144,), (1349496148,), (1349496155,), (1349496159,), (1349496199,), (1349496203,), (1349496208,), (1349496212,), (1349496258,), (1349496263,), (1349496269,), (1349496274,), (1349496279,), (1349496318,), (1349496322,), (1349496328,), (1349496334,), (1349496383,), (1349496374,), (1349496377,), (1349496430,), (1349496434,), (1349496439,), (1349496443,), (1349496486,), (1349496490,), (1349496495,), (1349496499,), (1349496504,), (1349496510,), (1349496543,), (1349496550,), (1349496555,), (1349496599,), (1349496610,), (1349496615,), (1349496622,), (1349496630,), (1349496662,), (1349496668,), (1349496672,), (1349496679,), (1349496685,), (1349496691,), (1349496722,), (1349496727,), (1349496731,), (1349496736,), (1349496782,), (1349496787,), (1349496794,), (1349496798,), (1349496805,), (1349496813,), (1349496851,), (1349496854,), (1349496907,), (1349497030,), (1349497034,), (1349497038,), (1349497042,), (1349497046,), (1349497094,), (1349497098,), (1349497102,), (1349497107,), (1349497151,), (1349497156,), (1349497160,), (1349497170,), (1349497176,), (1349497181,), (1349497205,), (1349497209,), (1349497215,), (1349497275,), (1349497266,), (1349497268,), (1349497271,), (1349497322,), (1349497324,), (1349497331,), (1349497333,), (1349497338,), (1349497373,), (1349497376,), (1349497379,), (1349497383,), (1349497388,), (1349497424,), (1349497429,), (1349497433,), (1349497482,), (1349497485,), (1349497488,), (1349497489,), (1349497496,), (1349497502,), (1349497542,), (1349497548,), (1349497552,), (1349497556,), (1349497559,), (1349497565,), (1349497598,), (1349497600,), (1349497604,), (1349497649,), (1349497657,), (1349497661,), (1349497666,), (1349497672,), (1349497707,), (1349497710,), (1349497714,), (1349497717,), (1349497721,), (1349497726,), (1349497759,), (1349497763,), (1349497767,), (1349497772,), (1349497777,), (1349497981,), (1349497986,), (1349497990,), (1349497994,), (1349497999,), (1349498030,), (1349498033,), (1349498039,), (1349498105,), (1349498089,), (1349498095,), (1349498100,), (1349498142,), (1349498146,), (1349498151,), (1349498186,), (1349498193,), (1349498198,), (1349498202,), (1349498207,), (1349498213,), (1349498242,), (1349498245,), (1349498248,), (1349498252,), (1349498294,), (1349498297,), (1349498350,), (1349498352,), (1349498355,), (1349498356,), (1349498361,), (1349498401,), (1349498405,), (1349498416,), (1349498421,), (1349498426,), (1349498432,), (1349498462,), (1349498464,), (1349498466,), (1349498513,), (1349498515,), (1349498518,), (1349498521,), (1349498524,), (1349498527,), (1349498567,), (1349498570,), (1349498574,), (1349498576,), (1349498581,), (1349498585,), (1349498626,), (1349498630,), (1349498634,), (1349498723,), (1349498725,), (1349498728,), (1349498793,), (1349498799,), (1349498806,), (1349498814,), (1349498822,), (1349498885,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21998614]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] map_info['map_portfolio_photo'] : {21998614: [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318]} final : True mtd_id 4302 list_pids : [1349494880, 1349494694, 1349494625, 1349494585, 1349494578, 1349494571, 1349494563, 1349494524, 1349494519, 1349494493, 1349494489, 1349494485, 1349494464, 1349494462, 1349494459, 1349494455, 1349494451, 1349494446, 1349494406, 1349494401, 1349494318] Looping around the photos to save general results len do output : 1 /21998614Didn'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, '2718460') ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460') ('4302', None, None, None, None, None, None, None, '2718460') ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '21998614', 'None', None, None, None, None, '2718460'), ('4302', '21998614', '1349494880', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494694', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494625', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494585', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494578', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494571', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494563', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494524', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494519', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494493', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494489', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494485', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494464', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494462', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494459', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494455', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494451', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494446', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494406', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494401', None, None, None, None, None, '2718460'), ('4302', '21998614', '1349494318', None, None, None, None, None, '2718460')] time used for this insertion : 0.10600018501281738 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.697045803070068 time spend to save output : 0.10630416870117188 total time spend for step 5 : 12.80334997177124 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 (2718460) 2.64user 2.32system 0:20.99elapsed 23%CPU (0avgtext+0avgdata 159204maxresident)k 256inputs+11424outputs (0major+74741minor)pagefaults 0swaps