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 : 265402 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 (3396278) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3396278) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495225 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3396278'] with mtr_portfolio_ids : ['25495225'] and first list_photo_ids : [] new path : /proc/265402/ Name: python3 Umask: 0002 State: R (running) Tgid: 265402 Ngid: 0 Pid: 265402 PPid: 265398 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 265402 NSpid: 265402 NSpgid: 264795 NSsid: 264795 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99692 kB VmRSS: 99692 kB RssAnon: 59820 kB RssFile: 39872 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 51 nonvoluntary_ctxt_switches: 114 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '265402', 'Ngid': '0', 'Pid': '265402', 'PPid': '265398', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '265402', 'NSpid': '265402', 'NSpgid': '264795', 'NSsid': '264795', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99692 kB', 'VmRSS': '99692 kB', 'RssAnon': '59820 kB', 'RssFile': '39872 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '51', 'nonvoluntary_ctxt_switches': '114'} ('datou_batch_current', '265402', '1106868', '0', '1106868', '865620', '99692', b'', 'marlene', '3396278') 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 (25495225) 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 (3396278 ) ) 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 (25495225) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374424070, 'portfolio_id': 25495225}, {'photo_id': 1374424068, 'portfolio_id': 25495225}, {'photo_id': 1374424066, 'portfolio_id': 25495225}, {'photo_id': 1374424064, 'portfolio_id': 25495225}, {'photo_id': 1374424062, 'portfolio_id': 25495225}, {'photo_id': 1374424061, 'portfolio_id': 25495225}, {'photo_id': 1374424040, 'portfolio_id': 25495225}, {'photo_id': 1374424038, 'portfolio_id': 25495225}, {'photo_id': 1374424037, 'portfolio_id': 25495225}, {'photo_id': 1374424036, 'portfolio_id': 25495225}, {'photo_id': 1374424035, 'portfolio_id': 25495225}, {'photo_id': 1374424034, 'portfolio_id': 25495225}, {'photo_id': 1374423863, 'portfolio_id': 25495225}, {'photo_id': 1374423837, 'portfolio_id': 25495225}, {'photo_id': 1374423813, 'portfolio_id': 25495225}, {'photo_id': 1374423789, 'portfolio_id': 25495225}, {'photo_id': 1374423765, 'portfolio_id': 25495225}, {'photo_id': 1374423738, 'portfolio_id': 25495225}, {'photo_id': 1374423684, 'portfolio_id': 25495225}, {'photo_id': 1374423682, 'portfolio_id': 25495225}, {'photo_id': 1374423681, 'portfolio_id': 25495225}, {'photo_id': 1374423680, 'portfolio_id': 25495225}, {'photo_id': 1374423662, 'portfolio_id': 25495225}, {'photo_id': 1374423637, 'portfolio_id': 25495225}, {'photo_id': 1374423473, 'portfolio_id': 25495225}, {'photo_id': 1374423471, 'portfolio_id': 25495225}, {'photo_id': 1374423470, 'portfolio_id': 25495225}, {'photo_id': 1374423469, 'portfolio_id': 25495225}, {'photo_id': 1374423467, 'portfolio_id': 25495225}, {'photo_id': 1374423462, 'portfolio_id': 25495225}, {'photo_id': 1374423258, 'portfolio_id': 25495225}, {'photo_id': 1374423232, 'portfolio_id': 25495225}, {'photo_id': 1374423207, 'portfolio_id': 25495225}, {'photo_id': 1374423183, 'portfolio_id': 25495225}, {'photo_id': 1374423158, 'portfolio_id': 25495225}, {'photo_id': 1374423130, 'portfolio_id': 25495225}, {'photo_id': 1374422949, 'portfolio_id': 25495225}, {'photo_id': 1374422736, 'portfolio_id': 25495225}, {'photo_id': 1374422187, 'portfolio_id': 25495225}, {'photo_id': 1374422136, 'portfolio_id': 25495225}, {'photo_id': 1374422101, 'portfolio_id': 25495225}, {'photo_id': 1374422076, 'portfolio_id': 25495225}, {'photo_id': 1374422047, 'portfolio_id': 25495225}, {'photo_id': 1374422021, 'portfolio_id': 25495225}, {'photo_id': 1374421757, 'portfolio_id': 25495225}, {'photo_id': 1374421732, 'portfolio_id': 25495225}, {'photo_id': 1374421708, 'portfolio_id': 25495225}, {'photo_id': 1374421683, 'portfolio_id': 25495225}, {'photo_id': 1374421654, 'portfolio_id': 25495225}, {'photo_id': 1374421622, 'portfolio_id': 25495225}, {'photo_id': 1374421436, 'portfolio_id': 25495225}, {'photo_id': 1374421414, 'portfolio_id': 25495225}, {'photo_id': 1374421395, 'portfolio_id': 25495225}, {'photo_id': 1374421389, 'portfolio_id': 25495225}, {'photo_id': 1374421383, 'portfolio_id': 25495225}, {'photo_id': 1374421379, 'portfolio_id': 25495225}, {'photo_id': 1374421312, 'portfolio_id': 25495225}, {'photo_id': 1374421287, 'portfolio_id': 25495225}, {'photo_id': 1374421268, 'portfolio_id': 25495225}, {'photo_id': 1374421267, 'portfolio_id': 25495225}, {'photo_id': 1374421265, 'portfolio_id': 25495225}, {'photo_id': 1374421263, 'portfolio_id': 25495225}, {'photo_id': 1374421193, 'portfolio_id': 25495225}, {'photo_id': 1374421168, 'portfolio_id': 25495225}, {'photo_id': 1374421155, 'portfolio_id': 25495225}, {'photo_id': 1374421148, 'portfolio_id': 25495225}, {'photo_id': 1374421139, 'portfolio_id': 25495225}, {'photo_id': 1374421138, 'portfolio_id': 25495225}] map_portfolio_id_photo_id: {25495225: [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738, 1374423684, 1374423682, 1374423681, 1374423680, 1374423662, 1374423637, 1374423473, 1374423471, 1374423470, 1374423469, 1374423467, 1374423462, 1374423258, 1374423232, 1374423207, 1374423183, 1374423158, 1374423130, 1374422949, 1374422736, 1374422187, 1374422136, 1374422101, 1374422076, 1374422047, 1374422021, 1374421757, 1374421732, 1374421708, 1374421683, 1374421654, 1374421622, 1374421436, 1374421414, 1374421395, 1374421389, 1374421383, 1374421379, 1374421312, 1374421287, 1374421268, 1374421267, 1374421265, 1374421263, 1374421193, 1374421168, 1374421155, 1374421148, 1374421139, 1374421138]} ##### 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.015416383743286133 #### 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 Wed Jul 30 09:58:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495225) 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 : 25495225 get user id for portfolio 25495225 get sub ptf for main ptf 25495225, type 3726 and hashtags ['cartonnette', 'autre_refus', 'papier', 'plastique', 'flou', 'kraft', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'metal'] 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`=25495225 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','papier','plastique','flou','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','metal')) 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`=25495225 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','papier','plastique','flou','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25495225, 'sub_port_id': 25495234, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193268, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'Carton_brun': {'main_port_id': 25495225, 'sub_port_id': 25495235, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193269, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25495225, 'sub_port_id': 25495236, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193270, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'plastique': {'main_port_id': 25495225, 'sub_port_id': 25495237, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193271, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'Carton_gris': {'main_port_id': 25495225, 'sub_port_id': 25495238, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193272, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'autre_refus': {'main_port_id': 25495225, 'sub_port_id': 25495239, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193273, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'metal': {'main_port_id': 25495225, 'sub_port_id': 25495240, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193274, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'mal_croppe': {'main_port_id': 25495225, 'sub_port_id': 25495241, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193275, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'flou': {'main_port_id': 25495225, 'sub_port_id': 25495242, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193276, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'kraft': {'main_port_id': 25495225, 'sub_port_id': 25495243, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193277, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'environnement': {'main_port_id': 25495225, 'sub_port_id': 25495244, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193278, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}, 'cartonnette': {'main_port_id': 25495225, 'sub_port_id': 25495245, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193279, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495234 , 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=25495225 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 (25495234) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495235 , 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=25495225 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 (25495235) result : ((1374423142,), (1374423144,), (1374423146,), (1374423148,), (1374423150,), (1374423152,), (1374423465,), (1374423466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495236 , 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=25495225 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 (25495236) result : ((1374423117,), (1374423119,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495237 , 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=25495225 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 (25495237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495238 , 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=25495225 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 (25495238) result : ((1374423460,), (1374423461,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495239 , 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=25495225 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 (25495239) result : ((1374423127,), (1374423459,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495240 , 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=25495225 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 (25495240) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495241 , 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=25495225 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 (25495241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495242 , 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=25495225 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 (25495242) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495243 , 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=25495225 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 (25495243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495244 , 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=25495225 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 (25495244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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 25495245 , 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=25495225 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 (25495245) result : ((1374423464,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495225) result : ((1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) 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`=25495225 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','papier','plastique','flou','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','metal')) 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`=25495225 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','papier','plastique','flou','kraft','mal_croppe','Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25495225, 'sub_port_id': 25495264, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193297, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'Carton_brun': {'main_port_id': 25495225, 'sub_port_id': 25495265, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193298, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 25495225, 'sub_port_id': 25495266, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193299, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'plastique': {'main_port_id': 25495225, 'sub_port_id': 25495267, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193300, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'Carton_gris': {'main_port_id': 25495225, 'sub_port_id': 25495268, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193301, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'autre_refus': {'main_port_id': 25495225, 'sub_port_id': 25495269, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193302, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'metal': {'main_port_id': 25495225, 'sub_port_id': 25495270, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193303, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'mal_croppe': {'main_port_id': 25495225, 'sub_port_id': 25495271, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193304, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'flou': {'main_port_id': 25495225, 'sub_port_id': 25495272, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193305, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'kraft': {'main_port_id': 25495225, 'sub_port_id': 25495273, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193306, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'environnement': {'main_port_id': 25495225, 'sub_port_id': 25495274, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193307, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}, 'cartonnette': {'main_port_id': 25495225, 'sub_port_id': 25495275, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193308, 'last_updated_at': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 9, 56, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 9, 47, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495268,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495269,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495245 lien utilise dans velours : https://www.fotonower.com/velours/25495264,25495265,25495266,25495267,25495268,25495269,25495270,25495271,25495272,25495273,25495274,25495275?tags=papier,Carton_brun,Teint_Dans_La_Masse,plastique,Carton_gris,autre_refus,metal,mal_croppe,flou,kraft,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495225]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] map_info['map_portfolio_photo'] : {25495225: [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738, 1374423684, 1374423682, 1374423681, 1374423680, 1374423662, 1374423637, 1374423473, 1374423471, 1374423470, 1374423469, 1374423467, 1374423462, 1374423258, 1374423232, 1374423207, 1374423183, 1374423158, 1374423130, 1374422949, 1374422736, 1374422187, 1374422136, 1374422101, 1374422076, 1374422047, 1374422021, 1374421757, 1374421732, 1374421708, 1374421683, 1374421654, 1374421622, 1374421436, 1374421414, 1374421395, 1374421389, 1374421383, 1374421379, 1374421312, 1374421287, 1374421268, 1374421267, 1374421265, 1374421263, 1374421193, 1374421168, 1374421155, 1374421148, 1374421139, 1374421138]} final : False mtd_id 4302 list_pids : [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] Looping around the photos to save general results len do output : 1 /25495225. 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, '3396278') ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25495225', "{'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245}", None, None, None, None, '3396278'), ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278')] time used for this insertion : 0.023682832717895508 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5877876281738281 time spend to save output : 0.02402353286743164 total time spend for step 1 : 1.6118111610412598 step2:final Wed Jul 30 09:58: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 (25495225) 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 25495225 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374421193,1374421168,1374421155,1374421148,1374421139,1374421138,1374421312,1374421287,1374421268,1374421267,1374421265,1374421263,1374421436,1374421414,1374421395,1374421389,1374421383,1374421379,1374421757,1374421732,1374421708,1374421683,1374421654,1374421622,1374422187,1374422136,1374422101,1374422076,1374422047,1374422021,1374422736,1374422949,1374423258,1374423232,1374423207,1374423183,1374423158,1374423130,1374423473,1374423471,1374423470,1374423469,1374423467,1374423462,1374423684,1374423682,1374423681,1374423680,1374423662,1374423637,1374423863,1374423837,1374423813,1374423789,1374423765,1374423738,1374424040,1374424038,1374424037,1374424036,1374424035,1374424034,1374424070,1374424068,1374424066,1374424064,1374424062,1374424061); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495225]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} new output for save of step final : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] map_info['map_portfolio_photo'] : {25495225: [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738, 1374423684, 1374423682, 1374423681, 1374423680, 1374423662, 1374423637, 1374423473, 1374423471, 1374423470, 1374423469, 1374423467, 1374423462, 1374423258, 1374423232, 1374423207, 1374423183, 1374423158, 1374423130, 1374422949, 1374422736, 1374422187, 1374422136, 1374422101, 1374422076, 1374422047, 1374422021, 1374421757, 1374421732, 1374421708, 1374421683, 1374421654, 1374421622, 1374421436, 1374421414, 1374421395, 1374421389, 1374421383, 1374421379, 1374421312, 1374421287, 1374421268, 1374421267, 1374421265, 1374421263, 1374421193, 1374421168, 1374421155, 1374421148, 1374421139, 1374421138]} final : False mtd_id 4302 list_pids : [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] Looping around the photos to save general results len do output : 18 /1374424070.Didn't retrieve data . /1374424068.Didn't retrieve data . /1374424066.Didn't retrieve data . /1374424064.Didn't retrieve data . /1374424062.Didn't retrieve data . /1374424061.Didn't retrieve data . /1374424040.Didn't retrieve data . /1374424038.Didn't retrieve data . /1374424037.Didn't retrieve data . /1374424036.Didn't retrieve data . /1374424035.Didn't retrieve data . /1374424034.Didn't retrieve data . /1374423863.Didn't retrieve data . /1374423837.Didn't retrieve data . /1374423813.Didn't retrieve data . /1374423789.Didn't retrieve data . /1374423765.Didn't retrieve data . /1374423738.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, '3396278') ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '25495225', '1374424070', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424068', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424066', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424064', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424062', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424061', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424040', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424038', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424037', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424036', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424035', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374424034', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423863', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423837', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423813', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423789', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423765', '0.04148593058404206', None, None, None, None, '3396278'), ('4302', '25495225', '1374423738', '0.04148593058404206', None, None, None, None, '3396278')] time used for this insertion : 0.11784482002258301 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.061434268951416016 time spend to save output : 0.11863970756530762 total time spend for step 2 : 0.18007397651672363 step3:velours_tree Wed Jul 30 09:58: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 complete output_args for input 0 : {25495225: [{'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245}]} input_args_next_step : {25495225: ()} output_args : {25495225: [{'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245}]} args : 25495225 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 : ({'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495225) 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([25495225]) 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.29974913597106934 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.29980039596557617 step4:send_mail_cod Wed Jul 30 09:58: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 : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} input_args_next_step : {1374424070: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424070 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424068 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424066 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424064 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424062 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424061 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424040 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424038 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424037 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424036 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424035 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374424034 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423863 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423837 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423813 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423789 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423765 depend.output_id : 0 input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ()} output_args : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',)} args : 1374423738 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 : {25495225: [{'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245}]} input_args_next_step : {1374424070: ('0.04148593058404206',), 1374424068: ('0.04148593058404206',), 1374424066: ('0.04148593058404206',), 1374424064: ('0.04148593058404206',), 1374424062: ('0.04148593058404206',), 1374424061: ('0.04148593058404206',), 1374424040: ('0.04148593058404206',), 1374424038: ('0.04148593058404206',), 1374424037: ('0.04148593058404206',), 1374424036: ('0.04148593058404206',), 1374424035: ('0.04148593058404206',), 1374424034: ('0.04148593058404206',), 1374423863: ('0.04148593058404206',), 1374423837: ('0.04148593058404206',), 1374423813: ('0.04148593058404206',), 1374423789: ('0.04148593058404206',), 1374423765: ('0.04148593058404206',), 1374423738: ('0.04148593058404206',), 25495225: ()} output_args : {25495225: [{'papier': 25495234, 'Carton_brun': 25495235, 'Teint_Dans_La_Masse': 25495236, 'plastique': 25495237, 'Carton_gris': 25495238, 'autre_refus': 25495239, 'metal': 25495240, 'mal_croppe': 25495241, 'flou': 25495242, 'kraft': 25495243, 'environnement': 25495244, 'cartonnette': 25495245}]} args : 25495225 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 :19, first value : ('0.04148593058404206',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495225) 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 (1374424070,1374424068,1374424066,1374424064,1374424062,1374424061,1374424040,1374424038,1374424037,1374424036,1374424035,1374424034,1374423863,1374423837,1374423813,1374423789,1374423765,1374423738) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374423738 begin to download photo : 1374423837 begin to download photo : 1374424036 begin to download photo : 1374424061 begin to download photo : 1374424068 download finish for photo 1374424068 begin to download photo : 1374424070 download finish for photo 1374424036 begin to download photo : 1374424037 download finish for photo 1374423738 begin to download photo : 1374423765 download finish for photo 1374424061 begin to download photo : 1374424062 download finish for photo 1374423837 begin to download photo : 1374423863 download finish for photo 1374424070 download finish for photo 1374424062 begin to download photo : 1374424064 download finish for photo 1374423765 begin to download photo : 1374423789 download finish for photo 1374424037 begin to download photo : 1374424038 download finish for photo 1374423863 begin to download photo : 1374424034 download finish for photo 1374424064 begin to download photo : 1374424066 download finish for photo 1374423789 begin to download photo : 1374423813 download finish for photo 1374424038 begin to download photo : 1374424040 download finish for photo 1374424034 begin to download photo : 1374424035 download finish for photo 1374424066 download finish for photo 1374423813 download finish for photo 1374424040 download finish for photo 1374424035 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette254952371753862311/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25495225_30-07-2025_09_58_31.pdf 25495237 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=25495237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254952371753862311 25495239 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=25495239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374423127: '1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125841_0.png', 1374423459: '1753862006_2501376_1374421379_2b7636c0a5d99c2a1b6f809b28b525c4_rle_crop_3898126091_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/688b4daf5788c6dcd729e56ce9b2f693_82156808.png change filename to text .imagette254952391753862311/ imagette254952391753862311/1753862006_2501376_1374421379_2b7636c0a5d99c2a1b6f809b28b525c4_rle_crop_3898126091_0.png.png imagette254952391753862311/1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125841_0.png.png imagette254952401753862311/ imagette254952411753862311/ imagette254952421753862311/ imagette254952431753862312/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/32383ccc7d41027087ae7be22b70742d_46101359.png imagette254952391753862311 25495240 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=25495240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254952401753862311 25495241 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=25495241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254952411753862311 25495242 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=25495242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254952421753862311 25495243 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=25495243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254952431753862312 25495245 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=25495245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374423464: '1753862006_2501376_1374421383_17bdd631aa1c93fa53647bd63e201a51_rle_crop_3898126078_0.png'} change filename to text .imagette254952451753862312/ imagette254952451753862312/1753862006_2501376_1374421383_17bdd631aa1c93fa53647bd63e201a51_rle_crop_3898126078_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/612b91791cbca1144f9979c5d2765945_14824750.png imagette254952451753862312 25495235 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=25495235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374423142: '1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125846_0.png', 1374423144: '1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125845_0.png', 1374423146: '1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125855_0.png', 1374423148: '1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125861_0.png', 1374423150: '1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125862_0.png', 1374423152: '1753861948_2498217_1374421708_40237d3a0198a56d220cbf13960621d9_rle_crop_3898125873_0.png', 1374423465: '1753862006_2501376_1374421395_35e3807dd771679889b7a35923b47540_rle_crop_3898126060_0.png', 1374423466: '1753862006_2501376_1374421389_f17c297cbb25b3f213bf9a32fb59f864_rle_crop_3898126069_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/db07fa5063d5f96967bb22f8a7bf731c_28697297.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5f00f1fe3ac42d5c7b9909c2ba6cfa73_28511669.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/e19a8eb06fbe75c94aaa84bdc790481c_9707087.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c9004f8384498d86197b14b3c74d5998_66227828.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a88da002fc648269a2d47d7bb1ff79ff_54430691.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/f6b68d1350ce0c214bcaf54cb5f2be97_30159617.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2e180a605fb67da72f45bb56bc110792_7413404.png change filename to text .imagette254952351753862312/ imagette254952351753862312/1753862006_2501376_1374421389_f17c297cbb25b3f213bf9a32fb59f864_rle_crop_3898126069_0.png.png imagette254952351753862312/1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125861_0.png.png imagette254952351753862312/1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125862_0.png.png imagette254952351753862312/1753862006_2501376_1374421395_35e3807dd771679889b7a35923b47540_rle_crop_3898126060_0.png.png imagette254952351753862312/1753861948_2498217_1374421708_40237d3a0198a56d220cbf13960621d9_rle_crop_3898125873_0.png.png imagette254952351753862312/1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125855_0.png.png imagette254952351753862312/1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125845_0.png.png imagette254952351753862312/1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125846_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c95e56bb79987c4f931cddb0862b19c8_756698.png imagette254952351753862312 25495236 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=25495236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374423117: '1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125843_0.png', 1374423119: '1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125860_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/47f28502a34710ce6c267c4bdc6e23e8_23079460.png change filename to text .imagette254952361753862312/ imagette254952361753862312/1753861948_2498217_1374421732_986515a63a60c8e6f4ef3d0dfb5386bd_rle_crop_3898125860_0.png.png imagette254952361753862312/1753861948_2498217_1374421757_760c204f86b3f3b5774224f56193f118_rle_crop_3898125843_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/ded2b44e095acfd123b0b09e7523cea0_92570859.png imagette254952361753862312 25495238 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=25495238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374423460: '1753862006_2501376_1374421389_f17c297cbb25b3f213bf9a32fb59f864_rle_crop_3898126064_0.png', 1374423461: '1753862006_2501376_1374421379_2b7636c0a5d99c2a1b6f809b28b525c4_rle_crop_3898126090_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5b186fbc2ff0c801b671ce282ee85636_88213976.png change filename to text .imagette254952381753862312/ imagette254952381753862312/1753862006_2501376_1374421389_f17c297cbb25b3f213bf9a32fb59f864_rle_crop_3898126064_0.png.png imagette254952381753862312/1753862006_2501376_1374421379_2b7636c0a5d99c2a1b6f809b28b525c4_rle_crop_3898126090_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/7d414ebfc8c8b0ababf44192da93b268_7807529.png imagette254952381753862312 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25495225 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25495264,25495265,25495266,25495267,25495268,25495269,25495270,25495271,25495272,25495273,25495274,25495275?tags=papier,Carton_brun,Teint_Dans_La_Masse,plastique,Carton_gris,autre_refus,metal,mal_croppe,flou,kraft,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1374424070] : ('0.04148593058404206',) no score found for photo 1374424070 We are sending mail with results at report@fotonower.com args[1374424068] : ('0.04148593058404206',) no score found for photo 1374424068 We are sending mail with results at report@fotonower.com args[1374424066] : ('0.04148593058404206',) no score found for photo 1374424066 We are sending mail with results at report@fotonower.com args[1374424064] : ('0.04148593058404206',) no score found for photo 1374424064 We are sending mail with results at report@fotonower.com args[1374424062] : ('0.04148593058404206',) no score found for photo 1374424062 We are sending mail with results at report@fotonower.com args[1374424061] : ('0.04148593058404206',) no score found for photo 1374424061 We are sending mail with results at report@fotonower.com args[1374424040] : ('0.04148593058404206',) no score found for photo 1374424040 We are sending mail with results at report@fotonower.com args[1374424038] : ('0.04148593058404206',) no score found for photo 1374424038 We are sending mail with results at report@fotonower.com args[1374424037] : ('0.04148593058404206',) no score found for photo 1374424037 We are sending mail with results at report@fotonower.com args[1374424036] : ('0.04148593058404206',) no score found for photo 1374424036 We are sending mail with results at report@fotonower.com args[1374424035] : ('0.04148593058404206',) no score found for photo 1374424035 We are sending mail with results at report@fotonower.com args[1374424034] : ('0.04148593058404206',) no score found for photo 1374424034 We are sending mail with results at report@fotonower.com args[1374423863] : ('0.04148593058404206',) no score found for photo 1374423863 We are sending mail with results at report@fotonower.com args[1374423837] : ('0.04148593058404206',) no score found for photo 1374423837 We are sending mail with results at report@fotonower.com args[1374423813] : ('0.04148593058404206',) no score found for photo 1374423813 We are sending mail with results at report@fotonower.com args[1374423789] : ('0.04148593058404206',) no score found for photo 1374423789 We are sending mail with results at report@fotonower.com args[1374423765] : ('0.04148593058404206',) no score found for photo 1374423765 We are sending mail with results at report@fotonower.com args[1374423738] : ('0.04148593058404206',) no score found for photo 1374423738 We are sending mail with results at report@fotonower.com refus_total : 0.04148593058404206 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=25495225 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_P25495225_30-07-2025_09_58_31.pdf results_Auto_P25495225_30-07-2025_09_58_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_09_58_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25495225','results_Auto_P25495225_30-07-2025_09_58_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_09_58_31.pdf','pdf','','0.18','0.04148593058404206') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495225]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] map_info['map_portfolio_photo'] : {25495225: [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738, 1374423684, 1374423682, 1374423681, 1374423680, 1374423662, 1374423637, 1374423473, 1374423471, 1374423470, 1374423469, 1374423467, 1374423462, 1374423258, 1374423232, 1374423207, 1374423183, 1374423158, 1374423130, 1374422949, 1374422736, 1374422187, 1374422136, 1374422101, 1374422076, 1374422047, 1374422021, 1374421757, 1374421732, 1374421708, 1374421683, 1374421654, 1374421622, 1374421436, 1374421414, 1374421395, 1374421389, 1374421383, 1374421379, 1374421312, 1374421287, 1374421268, 1374421267, 1374421265, 1374421263, 1374421193, 1374421168, 1374421155, 1374421148, 1374421139, 1374421138]} final : False mtd_id 4302 list_pids : [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] 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, '3396278') ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '25495225', '1374424070', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278')] time used for this insertion : 0.10797762870788574 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6657612323760986 time spend to save output : 0.10830092430114746 total time spend for step 4 : 2.774062156677246 step5:split_time_score Wed Jul 30 09:58:34 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 : ['25495225'] 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 : [('25495225',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495225) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374424068: {'path': 'temp/1753862311_265402_1374424068_c00224e225a128d849120653aeba20b3.jpg', 'extension': 'jpg'}, 1374424070: {'path': 'temp/1753862311_265402_1374424070_0b88892c7f44c6a16fcb5611b9308e5b.jpg', 'extension': 'jpg'}, 1374424061: {'path': 'temp/1753862311_265402_1374424061_4a1e4ef876474c2343b5ad4ff5cc3b58.jpg', 'extension': 'jpg'}, 1374424062: {'path': 'temp/1753862311_265402_1374424062_46e86bba1e0975dcb30c9e19fe2810da.jpg', 'extension': 'jpg'}, 1374424064: {'path': 'temp/1753862311_265402_1374424064_a65febb4363d0f91f4bed32461d78ca8.jpg', 'extension': 'jpg'}, 1374424066: {'path': 'temp/1753862311_265402_1374424066_b2b53640aeaea7bc4681bc65018896ad.jpg', 'extension': 'jpg'}, 1374423738: {'path': 'temp/1753862311_265402_1374423738_bb17052b0cc8a76e308a684a82f2438b.jpg', 'extension': 'jpg'}, 1374423765: {'path': 'temp/1753862311_265402_1374423765_b36281ef2435b4061de58d4535f0dc3a.jpg', 'extension': 'jpg'}, 1374423789: {'path': 'temp/1753862311_265402_1374423789_eb1ec6be91c3427e974c7e60ae496325.jpg', 'extension': 'jpg'}, 1374423813: {'path': 'temp/1753862311_265402_1374423813_f1edcf931a6fd26b18f5033ef9578d6c.jpg', 'extension': 'jpg'}, 1374424036: {'path': 'temp/1753862311_265402_1374424036_8b750849fa5dbdc7903c4d3690735083.jpg', 'extension': 'jpg'}, 1374424037: {'path': 'temp/1753862311_265402_1374424037_22cc1d6b7dac0e1e1888a67b9b022ce0.jpg', 'extension': 'jpg'}, 1374424038: {'path': 'temp/1753862311_265402_1374424038_baef789185e2147caf852d9f211ca89b.jpg', 'extension': 'jpg'}, 1374424040: {'path': 'temp/1753862311_265402_1374424040_2a649f95013180798e6d2e6ccb1f2379.jpg', 'extension': 'jpg'}, 1374423837: {'path': 'temp/1753862311_265402_1374423837_5f997a5984ac49a2bbc3fda529c576f6.jpg', 'extension': 'jpg'}, 1374423863: {'path': 'temp/1753862311_265402_1374423863_5ac9e3aabec8917905dc532ad6dff746.jpg', 'extension': 'jpg'}, 1374424034: {'path': 'temp/1753862311_265402_1374424034_b2651040d542d98637b3b6ed4bff1c65.jpg', 'extension': 'jpg'}, 1374424035: {'path': 'temp/1753862311_265402_1374424035_be9d1e07b1a515ff86f8eb243518fc28.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 = 25495225; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25495225 group by h (('09', 68),) 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=25495225 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 (25495225) 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 (25495225) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30072025 25495225 Nombre de photos uploadées : 68 / 23040 (0%) 30072025 25495225 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 30072025 25495225 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1374421193, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2a7b3f1fc07f813f9edde5f3e7c4f824.jpg', 'username': None, 'uploaded_at': 1753861563, 'text': 'image_30072025_09_45_05_10147.jpg'}, {'photo_id': 1374421168, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/69a5550a8547267471044209bd811089.jpg', 'username': None, 'uploaded_at': 1753861563, 'text': 'image_30072025_09_45_14_9123.jpg'}, {'photo_id': 1374421155, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/4b5aee45a7ab56036b725538be3f6595.jpg', 'username': None, 'uploaded_at': 1753861563, 'text': 'image_30072025_09_45_24_10132.jpg'}, {'photo_id': 1374421148, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/76d00266259598bdd90a0cc0713fa76f.jpg', 'username': None, 'uploaded_at': 1753861563, 'text': 'image_30072025_09_45_34_10132.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0036766529083251953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25495225, '2025-07-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-07-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2027315,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21054434776306152 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= 2027315 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25479976, 'dashboard_result_id': 13351717, '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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25480144, 'dashboard_result_id': 13351718, '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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25480540, 'dashboard_result_id': 13351719, '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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25480974, 'dashboard_result_id': 13351720, '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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25481445, 'dashboard_result_id': 13351721, '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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25482072, 'dashboard_result_id': 13351722, '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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25482427, 'dashboard_result_id': 13351723, '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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25482774, 'dashboard_result_id': 13351724, '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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25483286, 'dashboard_result_id': 13351725, '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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25483646, 'dashboard_result_id': 13351726, '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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25483956, 'dashboard_result_id': 13351727, '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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25484328, 'dashboard_result_id': 13351728, '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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25484572, 'dashboard_result_id': 13351729, '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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25485118, 'dashboard_result_id': 13351730, '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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25485550, 'dashboard_result_id': 13351731, '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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25485885, 'dashboard_result_id': 13351732, '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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25486150, 'dashboard_result_id': 13351733, '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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25486575, 'dashboard_result_id': 13351734, '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_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25486903, 'dashboard_result_id': 13351735, '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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25487222, 'dashboard_result_id': 13351736, '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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25487542, 'dashboard_result_id': 13351737, '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_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25488105, 'dashboard_result_id': 13351738, '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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25488405, 'dashboard_result_id': 13351739, '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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25488777, 'dashboard_result_id': 13351740, '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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25489181, 'dashboard_result_id': 13351741, '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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25489527, 'dashboard_result_id': 13351742, '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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25489884, 'dashboard_result_id': 13351743, '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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25490190, 'dashboard_result_id': 13351744, '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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25490549, 'dashboard_result_id': 13351745, '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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25490989, 'dashboard_result_id': 13351746, '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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25491261, 'dashboard_result_id': 13351747, '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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25491582, 'dashboard_result_id': 13351748, '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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25491851, 'dashboard_result_id': 13351749, '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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25492444, 'dashboard_result_id': 13351750, '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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25492753, 'dashboard_result_id': 13351751, '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_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25493139, 'dashboard_result_id': 13351752, '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_P25493139_30-07-2025_08_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25493772, 'dashboard_result_id': 13351753, '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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25494415, 'dashboard_result_id': 13351754, '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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25494860, 'dashboard_result_id': 13351755, '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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037581, 'mtr_portfolio_id': 25495225, 'dashboard_result_id': 13351756, '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_P25495225_30-07-2025_09_56_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, '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 = 25479976 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': 3394534, 'mtr_portfolio_id': 25479976, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 40), 'result': '0.03451935459707663', 'result_long': None, 'result_double': None}] Qualite : 0.03451935459707663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25479976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25479976 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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}" where mtr_portfolio_id = 25479976 and dashboard_run_id = 2037581 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`=25479976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351717, 0.03451935459707663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 = 25480144 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': 3394535, 'mtr_portfolio_id': 25480144, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 56), 'result': '0.03664504757201986', 'result_long': None, 'result_double': None}] Qualite : 0.03664504757201986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480144 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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}" where mtr_portfolio_id = 25480144 and dashboard_run_id = 2037581 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`=25480144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351718, 0.03664504757201986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, '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 = 25480540 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': 3394536, 'mtr_portfolio_id': 25480540, 'created_at': datetime.datetime(2025, 7, 30, 6, 36, 30), 'result': '0.03073406846853507', 'result_long': None, 'result_double': None}] Qualite : 0.03073406846853507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480540 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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}" where mtr_portfolio_id = 25480540 and dashboard_run_id = 2037581 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`=25480540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351719, 0.03073406846853507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, '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 = 25480974 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': 3394537, 'mtr_portfolio_id': 25480974, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 29), 'result': '0.03237570023229501', 'result_long': None, 'result_double': None}] Qualite : 0.03237570023229501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480974 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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}" where mtr_portfolio_id = 25480974 and dashboard_run_id = 2037581 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`=25480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351720, 0.03237570023229501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, '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 = 25481445 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': 3394538, 'mtr_portfolio_id': 25481445, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 58), 'result': '0.02869571822244944', 'result_long': None, 'result_double': None}] Qualite : 0.02869571822244944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25481445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25481445 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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}" where mtr_portfolio_id = 25481445 and dashboard_run_id = 2037581 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`=25481445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351721, 0.02869571822244944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, '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 = 25482072 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': 3394539, 'mtr_portfolio_id': 25482072, 'created_at': datetime.datetime(2025, 7, 30, 6, 38, 31), 'result': '0.02461677058410563', 'result_long': None, 'result_double': None}] Qualite : 0.02461677058410563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482072 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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}" where mtr_portfolio_id = 25482072 and dashboard_run_id = 2037581 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`=25482072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351722, 0.02461677058410563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, '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 = 25482427 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': 3394540, 'mtr_portfolio_id': 25482427, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 27), 'result': '0.027443203188583346', 'result_long': None, 'result_double': None}] Qualite : 0.027443203188583346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482427 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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}" where mtr_portfolio_id = 25482427 and dashboard_run_id = 2037581 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`=25482427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351723, 0.027443203188583346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, '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 = 25482774 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': 3394541, 'mtr_portfolio_id': 25482774, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 58), 'result': '0.035568930806638456', 'result_long': None, 'result_double': None}] Qualite : 0.035568930806638456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482774 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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}" where mtr_portfolio_id = 25482774 and dashboard_run_id = 2037581 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`=25482774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351724, 0.035568930806638456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, '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 = 25483286 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': 3394542, 'mtr_portfolio_id': 25483286, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 30), 'result': '0.06036606587230913', 'result_long': None, 'result_double': None}] Qualite : 0.06036606587230913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483286 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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}" where mtr_portfolio_id = 25483286 and dashboard_run_id = 2037581 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`=25483286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351725, 0.06036606587230913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, '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 = 25483646 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': 3394543, 'mtr_portfolio_id': 25483646, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 37), 'result': '0.0673795810394603', 'result_long': None, 'result_double': None}] Qualite : 0.0673795810394603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483646 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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}" where mtr_portfolio_id = 25483646 and dashboard_run_id = 2037581 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`=25483646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351726, 0.0673795810394603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, '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 = 25483956 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': 3394544, 'mtr_portfolio_id': 25483956, 'created_at': datetime.datetime(2025, 7, 30, 6, 41, 32), 'result': '0.041671998847643325', 'result_long': None, 'result_double': None}] Qualite : 0.041671998847643325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483956 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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}" where mtr_portfolio_id = 25483956 and dashboard_run_id = 2037581 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`=25483956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351727, 0.041671998847643325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, '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 = 25484328 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': 3394545, 'mtr_portfolio_id': 25484328, 'created_at': datetime.datetime(2025, 7, 30, 6, 42), 'result': '0.04847739858172795', 'result_long': None, 'result_double': None}] Qualite : 0.04847739858172795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484328 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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}" where mtr_portfolio_id = 25484328 and dashboard_run_id = 2037581 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`=25484328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351728, 0.04847739858172795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, '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 = 25484572 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': 3394546, 'mtr_portfolio_id': 25484572, 'created_at': datetime.datetime(2025, 7, 30, 6, 42, 28), 'result': '0.026403362924540007', 'result_long': None, 'result_double': None}] Qualite : 0.026403362924540007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484572 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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}" where mtr_portfolio_id = 25484572 and dashboard_run_id = 2037581 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`=25484572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351729, 0.026403362924540007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, '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 = 25485118 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': 3394547, 'mtr_portfolio_id': 25485118, 'created_at': datetime.datetime(2025, 7, 30, 6, 43, 27), 'result': '0.04199806887953368', 'result_long': None, 'result_double': None}] Qualite : 0.04199806887953368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485118 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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}" where mtr_portfolio_id = 25485118 and dashboard_run_id = 2037581 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`=25485118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351730, 0.04199806887953368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, '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 = 25485550 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': 3394548, 'mtr_portfolio_id': 25485550, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 1), 'result': '0.00940761595292549', 'result_long': None, 'result_double': None}] Qualite : 0.00940761595292549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485550 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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}" where mtr_portfolio_id = 25485550 and dashboard_run_id = 2037581 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`=25485550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351731, 0.00940761595292549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, '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 = 25485885 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': 3394549, 'mtr_portfolio_id': 25485885, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 27), 'result': '0.0737239971511342', 'result_long': None, 'result_double': None}] Qualite : 0.0737239971511342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485885 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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}" where mtr_portfolio_id = 25485885 and dashboard_run_id = 2037581 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`=25485885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351732, 0.0737239971511342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, '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 = 25486150 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': 3394550, 'mtr_portfolio_id': 25486150, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 27), 'result': '0.06050800799818245', 'result_long': None, 'result_double': None}] Qualite : 0.06050800799818245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486150 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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}" where mtr_portfolio_id = 25486150 and dashboard_run_id = 2037581 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`=25486150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351733, 0.06050800799818245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, '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 = 25486575 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': 3394551, 'mtr_portfolio_id': 25486575, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 36), 'result': '0.01992595296241453', 'result_long': None, 'result_double': None}] Qualite : 0.01992595296241453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_06_45_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486575 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_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}" where mtr_portfolio_id = 25486575 and dashboard_run_id = 2037581 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`=25486575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351734, 0.01992595296241453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, '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 = 25486903 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': 3394552, 'mtr_portfolio_id': 25486903, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 57), 'result': '0.02937322358798463', 'result_long': None, 'result_double': None}] Qualite : 0.02937322358798463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486903 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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}" where mtr_portfolio_id = 25486903 and dashboard_run_id = 2037581 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`=25486903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351735, 0.02937322358798463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, '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 = 25487222 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': 3394553, 'mtr_portfolio_id': 25487222, 'created_at': datetime.datetime(2025, 7, 30, 6, 46, 31), 'result': '0.1079298888596298', 'result_long': None, 'result_double': None}] Qualite : 0.1079298888596298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487222 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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}" where mtr_portfolio_id = 25487222 and dashboard_run_id = 2037581 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`=25487222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351736, 0.1079298888596298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, '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 = 25487542 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': 3394554, 'mtr_portfolio_id': 25487542, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 32), 'result': '0.04919211086913888', 'result_long': None, 'result_double': None}] Qualite : 0.04919211086913888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_06_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487542 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_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}" where mtr_portfolio_id = 25487542 and dashboard_run_id = 2037581 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`=25487542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351737, 0.04919211086913888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, '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 = 25488105 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': 3394555, 'mtr_portfolio_id': 25488105, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 59), 'result': '0.049854037341182884', 'result_long': None, 'result_double': None}] Qualite : 0.049854037341182884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488105 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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}" where mtr_portfolio_id = 25488105 and dashboard_run_id = 2037581 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`=25488105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351738, 0.049854037341182884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, '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 = 25488405 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': 3394434, 'mtr_portfolio_id': 25488405, 'created_at': datetime.datetime(2025, 7, 30, 5, 47), 'result': '0.04376102654571132', 'result_long': None, 'result_double': None}] Qualite : 0.04376102654571132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488405 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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}" where mtr_portfolio_id = 25488405 and dashboard_run_id = 2037581 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`=25488405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351739, 0.04376102654571132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, '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 = 25488777 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': 3394652, 'mtr_portfolio_id': 25488777, 'created_at': datetime.datetime(2025, 7, 30, 6, 2, 58), 'result': '0.04996696609710109', 'result_long': None, 'result_double': None}] Qualite : 0.04996696609710109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488777 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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}" where mtr_portfolio_id = 25488777 and dashboard_run_id = 2037581 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`=25488777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351740, 0.04996696609710109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, '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 = 25489181 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': 3394753, 'mtr_portfolio_id': 25489181, 'created_at': datetime.datetime(2025, 7, 30, 6, 17, 34), 'result': '0.049704741373645785', 'result_long': None, 'result_double': None}] Qualite : 0.049704741373645785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489181 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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}" where mtr_portfolio_id = 25489181 and dashboard_run_id = 2037581 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`=25489181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351741, 0.049704741373645785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, '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 = 25489527 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': 3394819, 'mtr_portfolio_id': 25489527, 'created_at': datetime.datetime(2025, 7, 30, 6, 33, 29), 'result': '0.05408252116947864', 'result_long': None, 'result_double': None}] Qualite : 0.05408252116947864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489527 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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}" where mtr_portfolio_id = 25489527 and dashboard_run_id = 2037581 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`=25489527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351742, 0.05408252116947864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, '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 = 25489884 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': 3394893, 'mtr_portfolio_id': 25489884, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 27), 'result': '0.05810583847315051', 'result_long': None, 'result_double': None}] Qualite : 0.05810583847315051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489884 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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}" where mtr_portfolio_id = 25489884 and dashboard_run_id = 2037581 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`=25489884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351743, 0.05810583847315051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, '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 = 25490190 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': 3394963, 'mtr_portfolio_id': 25490190, 'created_at': datetime.datetime(2025, 7, 30, 7, 1, 1), 'result': '0.047138625556918015', 'result_long': None, 'result_double': None}] Qualite : 0.047138625556918015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490190 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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}" where mtr_portfolio_id = 25490190 and dashboard_run_id = 2037581 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`=25490190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351744, 0.047138625556918015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, '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 = 25490549 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': 3395061, 'mtr_portfolio_id': 25490549, 'created_at': datetime.datetime(2025, 7, 30, 7, 19), 'result': '0.03174586237778476', 'result_long': None, 'result_double': None}] Qualite : 0.03174586237778476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490549 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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}" where mtr_portfolio_id = 25490549 and dashboard_run_id = 2037581 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`=25490549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351745, 0.03174586237778476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, '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 = 25490989 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': 3395159, 'mtr_portfolio_id': 25490989, 'created_at': datetime.datetime(2025, 7, 30, 7, 30, 57), 'result': '0.09657178697817131', 'result_long': None, 'result_double': None}] Qualite : 0.09657178697817131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490989 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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}" where mtr_portfolio_id = 25490989 and dashboard_run_id = 2037581 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`=25490989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351746, 0.09657178697817131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, '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 = 25491261 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': 3395235, 'mtr_portfolio_id': 25491261, 'created_at': datetime.datetime(2025, 7, 30, 7, 46, 59), 'result': '0.033857557928719716', 'result_long': None, 'result_double': None}] Qualite : 0.033857557928719716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491261 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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}" where mtr_portfolio_id = 25491261 and dashboard_run_id = 2037581 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`=25491261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351747, 0.033857557928719716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, '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 = 25491582 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': 3395334, 'mtr_portfolio_id': 25491582, 'created_at': datetime.datetime(2025, 7, 30, 8, 2, 58), 'result': '0.04469105505580487', 'result_long': None, 'result_double': None}] Qualite : 0.04469105505580487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491582 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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}" where mtr_portfolio_id = 25491582 and dashboard_run_id = 2037581 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`=25491582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351748, 0.04469105505580487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, '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 = 25491851 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': 3395436, 'mtr_portfolio_id': 25491851, 'created_at': datetime.datetime(2025, 7, 30, 8, 16, 31), 'result': '0.053902655910142094', 'result_long': None, 'result_double': None}] Qualite : 0.053902655910142094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491851 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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}" where mtr_portfolio_id = 25491851 and dashboard_run_id = 2037581 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`=25491851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351749, 0.053902655910142094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, '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 = 25492444 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': 3395547, 'mtr_portfolio_id': 25492444, 'created_at': datetime.datetime(2025, 7, 30, 8, 32, 59), 'result': '0.05356137486829114', 'result_long': None, 'result_double': None}] Qualite : 0.05356137486829114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492444 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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}" where mtr_portfolio_id = 25492444 and dashboard_run_id = 2037581 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`=25492444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351750, 0.05356137486829114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, '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 = 25492753 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': 3395652, 'mtr_portfolio_id': 25492753, 'created_at': datetime.datetime(2025, 7, 30, 8, 46, 57), 'result': '0.03498319511776285', 'result_long': None, 'result_double': None}] Qualite : 0.03498319511776285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492753 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_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}" where mtr_portfolio_id = 25492753 and dashboard_run_id = 2037581 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`=25492753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351751, 0.03498319511776285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, '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 = 25493139 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': 3395793, 'mtr_portfolio_id': 25493139, 'created_at': datetime.datetime(2025, 7, 30, 9, 0, 56), 'result': '0.07371516384188316', 'result_long': None, 'result_double': None}] Qualite : 0.07371516384188316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493139 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_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}" where mtr_portfolio_id = 25493139 and dashboard_run_id = 2037581 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`=25493139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351752, 0.07371516384188316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, '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 = 25493772 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': 3395952, 'mtr_portfolio_id': 25493772, 'created_at': datetime.datetime(2025, 7, 30, 9, 16, 30), 'result': '0.03456542358178976', 'result_long': None, 'result_double': None}] Qualite : 0.03456542358178976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493772 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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}" where mtr_portfolio_id = 25493772 and dashboard_run_id = 2037581 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`=25493772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351753, 0.03456542358178976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, '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 = 25494415 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': 3396058, 'mtr_portfolio_id': 25494415, 'created_at': datetime.datetime(2025, 7, 30, 9, 32, 58), 'result': '0.05836133942362286', 'result_long': None, 'result_double': None}] Qualite : 0.05836133942362286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494415 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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}" where mtr_portfolio_id = 25494415 and dashboard_run_id = 2037581 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`=25494415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351754, 0.05836133942362286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, '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 = 25494860 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': 3396165, 'mtr_portfolio_id': 25494860, 'created_at': datetime.datetime(2025, 7, 30, 9, 46, 58), 'result': '0.07321217713720464', 'result_long': None, 'result_double': None}] Qualite : 0.07321217713720464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494860 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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}" where mtr_portfolio_id = 25494860 and dashboard_run_id = 2037581 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`=25494860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351755, 0.07321217713720464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, '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 = 25495225 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': 3396278, 'mtr_portfolio_id': 25495225, 'created_at': datetime.datetime(2025, 7, 30, 9, 58, 30), 'result': '0.04148593058404206', 'result_long': None, 'result_double': None}] Qualite : 0.04148593058404206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25495225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_09_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25495225 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_P25495225_30-07-2025_09_58_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, 'pht': 3726}}" where mtr_portfolio_id = 25495225 and dashboard_run_id = 2037581 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`=25495225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13351756, 0.04148593058404206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_09_58_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, '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 (25479976,25480144,25480540,25480974,25481445,25482072,25482427,25482774,25483286,25483646,25483956,25484328,25484572,25485118,25485550,25485885,25486150,25486575,25486903,25487222,25487542,25488105,25488405,25488777,25489181,25489527,25489884,25490190,25490549,25490989,25491261,25491582,25491851,25492444,25492753,25493139,25493772,25494415,25494860,25495225) result : ((1374372764,), (1374372795,), (1374372823,), (1374372841,), (1374372865,), (1374373025,), (1374373026,), (1374373027,), (1374373028,), (1374373029,), (1374373031,), (1374373050,), (1374373051,), (1374373052,), (1374373053,), (1374373055,), (1374373057,), (1374373069,), (1374373070,), (1374373071,), (1374373072,), (1374373073,), (1374373075,), (1374373102,), (1374373108,), (1374373109,), (1374373110,), (1374373112,), (1374373114,), (1374373138,), (1374373140,), (1374373142,), (1374373145,), (1374373149,), (1374373151,), (1374373154,), (1374373156,), (1374373157,), (1374373158,), (1374373159,), (1374373162,), (1374373166,), (1374373176,), (1374373177,), (1374373178,), (1374373179,), (1374373181,), (1374373182,), (1374373221,), (1374373240,), (1374373241,), (1374373243,), (1374373245,), (1374373248,), (1374373252,), (1374373332,), (1374373334,), (1374373335,), (1374373350,), (1374373364,), (1374373366,), (1374373391,), (1374373397,), (1374373403,), (1374373404,), (1374373405,), (1374373408,), (1374373417,), (1374373418,), (1374373419,), (1374373420,), (1374373422,), (1374373424,), (1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,), (1374373693,), (1374373694,), (1374373695,), (1374373696,), (1374373698,), (1374373700,), (1374373710,), (1374373718,), (1374373724,), (1374373725,), (1374373727,), (1374373728,), (1374373752,), (1374373753,), (1374373754,), (1374373755,), (1374373757,), (1374373759,), (1374373771,), (1374373781,), (1374373782,), (1374373783,), (1374373785,), (1374373787,), (1374373794,), (1374373795,), (1374373796,), (1374373797,), (1374373798,), (1374373800,), (1374373826,), (1374373828,), (1374373829,), (1374373831,), (1374373834,), (1374373837,), (1374373843,), (1374373844,), (1374373845,), (1374373846,), (1374373848,), (1374373850,), (1374373898,), (1374373910,), (1374373912,), (1374373914,), (1374373915,), (1374373917,), (1374373919,), (1374373928,), (1374373930,), (1374373932,), (1374373933,), (1374373935,), (1374373937,), (1374373944,), (1374373955,), (1374373966,), (1374373967,), (1374373968,), (1374373971,), (1374373984,), (1374373994,), (1374373996,), (1374373997,), (1374373998,), (1374374000,), (1374374010,), (1374374012,), (1374374013,), (1374374014,), (1374374015,), (1374374017,), (1374374039,), (1374374045,), (1374374047,), (1374374048,), (1374374049,), (1374374051,), (1374374061,), (1374374068,), (1374374075,), (1374374077,), (1374374079,), (1374374082,), (1374374104,), (1374374105,), (1374374106,), (1374374108,), (1374374111,), (1374374115,), (1374374123,), (1374374130,), (1374374162,), (1374374169,), (1374374171,), (1374374172,), (1374374174,), (1374374177,), (1374374197,), (1374374222,), (1374374231,), (1374374232,), (1374374234,), (1374374235,), (1374374237,), (1374374249,), (1374374250,), (1374374252,), (1374374253,), (1374374254,), (1374374256,), (1374374283,), (1374374284,), (1374374286,), (1374374288,), (1374374291,), (1374374300,), (1374374320,), (1374374327,), (1374374328,), (1374374329,), (1374374331,), (1374374332,), (1374374356,), (1374374363,), (1374374364,), (1374374365,), (1374374367,), (1374374370,), (1374374378,), (1374374379,), (1374374380,), (1374374381,), (1374374383,), (1374374385,), (1374374400,), (1374374407,), (1374374408,), (1374374409,), (1374374411,), (1374374414,), (1374374469,), (1374374502,), (1374374508,), (1374374511,), (1374374512,), (1374374515,), (1374374518,), (1374374530,), (1374374540,), (1374374546,), (1374374547,), (1374374549,), (1374374551,), (1374374572,), (1374374581,), (1374374582,), (1374374583,), (1374374584,), (1374374586,), (1374374607,), (1374374616,), (1374374618,), (1374374619,), (1374374621,), (1374374624,), (1374374634,), (1374374635,), (1374374636,), (1374374637,), (1374374639,), (1374374642,), (1374374669,), (1374374670,), (1374374671,), (1374374672,), (1374374674,), (1374374676,), (1374374688,), (1374374689,), (1374374699,), (1374374724,), (1374374748,), (1374374775,), (1374375287,), (1374375321,), (1374375366,), (1374375412,), (1374375464,), (1374375515,), (1374376023,), (1374376385,), (1374376395,), (1374376422,), (1374376434,), (1374376435,), (1374376436,), (1374376460,), (1374376464,), (1374376465,), (1374376466,), (1374376468,), (1374376471,), (1374376491,), (1374376492,), (1374376493,), (1374376494,), (1374376496,), (1374376499,), (1374376506,), (1374376507,), (1374376508,), (1374376509,), (1374376511,), (1374376514,), (1374376532,), (1374376533,), (1374376534,), (1374376535,), (1374376537,), (1374376538,), (1374376576,), (1374376582,), (1374376583,), (1374376584,), (1374376586,), (1374376589,), (1374376597,), (1374376604,), (1374376610,), (1374376611,), (1374376613,), (1374376616,), (1374376643,), (1374376661,), (1374376666,), (1374376667,), (1374376668,), (1374376670,), (1374376672,), (1374376727,), (1374376742,), (1374376752,), (1374376757,), (1374376758,), (1374376760,), (1374376763,), (1374376778,), (1374376787,), (1374376788,), (1374376789,), (1374376790,), (1374376793,), (1374376802,), (1374376813,), (1374376819,), (1374376820,), (1374376821,), (1374376824,), (1374376837,), (1374376845,), (1374376856,), (1374376857,), (1374376858,), (1374376860,), (1374376885,), (1374376891,), (1374376892,), (1374376893,), (1374376895,), (1374376898,), (1374376926,), (1374376927,), (1374376928,), (1374376929,), (1374376931,), (1374376933,), (1374376951,), (1374376957,), (1374376958,), (1374376959,), (1374376961,), (1374376964,), (1374376980,), (1374376983,), (1374376984,), (1374376985,), (1374376986,), (1374376988,), (1374377005,), (1374377017,), (1374377018,), (1374377019,), (1374377021,), (1374377023,), (1374377029,), (1374377050,), (1374377058,), (1374377063,), (1374377064,), (1374377065,), (1374377067,), (1374377086,), (1374377092,), (1374377093,), (1374377094,), (1374377095,), (1374377097,), (1374377110,), (1374377120,), (1374377121,), (1374377122,), (1374377123,), (1374377125,), (1374377142,), (1374377148,), (1374377149,), (1374377150,), (1374377151,), (1374377154,), (1374377174,), (1374377175,), (1374377176,), (1374377177,), (1374377179,), (1374377181,), (1374377199,), (1374377207,), (1374377208,), (1374377209,), (1374377211,), (1374377213,), (1374377230,), (1374377235,), (1374377236,), (1374377237,), (1374377239,), (1374377242,), (1374377252,), (1374377253,), (1374377254,), (1374377255,), (1374377257,), (1374377258,), (1374377271,), (1374377272,), (1374377274,), (1374377275,), (1374377277,), (1374377280,), (1374377323,), (1374377331,), (1374377332,), (1374377333,), (1374377337,), (1374377346,), (1374377347,), (1374377359,), (1374377360,), (1374377361,), (1374377362,), (1374377363,), (1374377365,), (1374377378,), (1374377379,), (1374377380,), (1374377381,), (1374377382,), (1374377383,), (1374377403,), (1374377409,), (1374377410,), (1374377411,), (1374377413,), (1374377415,), (1374377425,), (1374377426,), (1374377427,), (1374377428,), (1374377429,), (1374377432,), (1374377453,), (1374377454,), (1374377455,), (1374377456,), (1374377457,), (1374377460,), (1374377483,), (1374377491,), (1374377501,), (1374377507,), (1374377508,), (1374377509,), (1374377511,), (1374377517,), (1374377518,), (1374377527,), (1374377532,), (1374377533,), (1374377535,), (1374377550,), (1374377574,), (1374377581,), (1374377587,), (1374377588,), (1374377589,), (1374377591,), (1374377599,), (1374377600,), (1374377609,), (1374377615,), (1374377616,), (1374377618,), (1374377625,), (1374377632,), (1374377638,), (1374377639,), (1374377641,), (1374377643,), (1374377649,), (1374377650,), (1374377651,), (1374377653,), (1374377655,), (1374377657,), (1374377664,), (1374377665,), (1374377674,), (1374377678,), (1374377680,), (1374377682,), (1374377722,), (1374377724,), (1374377725,), (1374377726,), (1374377728,), (1374377730,), (1374377738,), (1374377745,), (1374377747,), (1374377748,), (1374377749,), (1374377751,), (1374377753,), (1374377768,), (1374377774,), (1374377775,), (1374377776,), (1374377777,), (1374377778,), (1374377797,), (1374377827,), (1374377833,), (1374377834,), (1374377835,), (1374377837,), (1374377839,), (1374377848,), (1374377870,), (1374377871,), (1374377872,), (1374377874,), (1374377876,), (1374377878,), (1374377896,), (1374377897,), (1374377898,), (1374377899,), (1374377901,), (1374377903,), (1374377910,), (1374377911,), (1374377912,), (1374377913,), (1374377915,), (1374377917,), (1374377926,), (1374377927,), (1374377944,), (1374377966,), (1374377989,), (1374378012,), (1374378259,), (1374378261,), (1374378262,), (1374378279,), (1374378304,), (1374378327,), (1374379312,), (1374379727,), (1374379757,), (1374379758,), (1374379759,), (1374379761,), (1374379763,), (1374379766,), (1374379776,), (1374379810,), (1374379816,), (1374379819,), (1374379820,), (1374379822,), (1374379824,), (1374379833,), (1374379940,), (1374379961,), (1374379988,), (1374380011,), (1374380039,), (1374380063,), (1374380231,), (1374380233,), (1374380234,), (1374380235,), (1374380237,), (1374380239,), (1374380253,), (1374380261,), (1374380265,), (1374380266,), (1374380268,), (1374380271,), (1374380283,), (1374380284,), (1374380285,), (1374380286,), (1374380287,), (1374380289,), (1374380306,), (1374380315,), (1374380318,), (1374380319,), (1374380321,), (1374380323,), (1374380336,), (1374380350,), (1374380357,), (1374380363,), (1374380372,), (1374380376,), (1374380377,), (1374380381,), (1374380382,), (1374380383,), (1374380384,), (1374380385,), (1374380387,), (1374380404,), (1374380409,), (1374380410,), (1374380417,), (1374380419,), (1374380422,), (1374380434,), (1374380435,), (1374380436,), (1374380438,), (1374380440,), (1374380442,), (1374389470,), (1374380452,), (1374380459,), (1374380465,), (1374380467,), (1374380469,), (1374380472,), (1374380506,), (1374380525,), (1374380534,), (1374380539,), (1374380540,), (1374380542,), (1374380545,), (1374380559,), (1374380560,), (1374380561,), (1374380562,), (1374380564,), (1374380567,), (1374380581,), (1374380582,), (1374380583,), (1374380584,), (1374380586,), (1374380589,), (1374380601,), (1374380622,), (1374380623,), (1374380624,), (1374380625,), (1374380627,), (1374380630,), (1374380649,), (1374380686,), (1374380687,), (1374380688,), (1374380689,), (1374380691,), (1374380694,), (1374380705,), (1374380706,), (1374380707,), (1374380708,), (1374380709,), (1374380711,), (1374380727,), (1374380728,), (1374380734,), (1374380735,), (1374380737,), (1374380740,), (1374380743,), (1374380744,), (1374380745,), (1374380746,), (1374380747,), (1374380749,), (1374380766,), (1374380769,), (1374380770,), (1374380771,), (1374380773,), (1374380776,), (1374380786,), (1374380792,), (1374380799,), (1374380800,), (1374380802,), (1374380803,), (1374380811,), (1374380819,), (1374380823,), (1374380824,), (1374380826,), (1374380830,), (1374380845,), (1374380877,), (1374380886,), (1374380891,), (1374380895,), (1374380896,), (1374380898,), (1374380910,), (1374380915,), (1374380916,), (1374380917,), (1374380918,), (1374380920,), (1374380933,), (1374380934,), (1374380935,), (1374380936,), (1374380938,), (1374380940,), (1374380950,), (1374380951,), (1374380952,), (1374380953,), (1374380955,), (1374380957,), (1374380972,), (1374380974,), (1374380975,), (1374380976,), (1374380978,), (1374380981,), (1374381008,), (1374381009,), (1374381010,), (1374381011,), (1374381013,), (1374381014,), (1374381029,), (1374381030,), (1374381031,), (1374381032,), (1374381034,), (1374381036,), (1374381052,), (1374381055,), (1374381056,), (1374381057,), (1374381058,), (1374381060,), (1374381070,), (1374381071,), (1374381072,), (1374381073,), (1374381075,), (1374381077,), (1374381086,), (1374381106,), (1374381107,), (1374381108,), (1374381109,), (1374381110,), (1374381111,), (1374381116,), (1374381124,), (1374381133,), (1374381136,), (1374381138,), (1374381141,), (1374381146,), (1374381154,), (1374381163,), (1374381164,), (1374381165,), (1374381167,), (1374381180,), (1374381181,), (1374381182,), (1374381184,), (1374381186,), (1374381188,), (1374381210,), (1374381216,), (1374381217,), (1374381218,), (1374381219,), (1374381221,), (1374381251,), (1374381258,), (1374381261,), (1374381262,), (1374381263,), (1374381264,), (1374381275,), (1374381276,), (1374381278,), (1374381280,), (1374381282,), (1374381285,), (1374381292,), (1374381293,), (1374381295,), (1374381297,), (1374381299,), (1374381301,), (1374381309,), (1374381319,), (1374381329,), (1374381337,), (1374381338,), (1374381339,), (1374381359,), (1374381393,), (1374381402,), (1374381404,), (1374381405,), (1374381406,), (1374381408,), (1374381424,), (1374381426,), (1374381428,), (1374381429,), (1374381430,), (1374381431,), (1374381450,), (1374381458,), (1374381460,), (1374381461,), (1374381462,), (1374381463,), (1374381478,), (1374381484,), (1374381486,), (1374381487,), (1374381488,), (1374381489,), (1374381502,), (1374381504,), (1374381505,), (1374381506,), (1374381507,), (1374381508,), (1374381546,), (1374381547,), (1374381548,), (1374381549,), (1374381550,), (1374381551,), (1374381558,), (1374381559,), (1374381560,), (1374381561,), (1374381563,), (1374381565,), (1374382034,), (1374382106,), (1374382175,), (1374382245,), (1374382325,), (1374382397,), (1374382995,), (1374382997,), (1374383000,), (1374383039,), (1374383086,), (1374383143,), (1374383518,), (1374383532,), (1374383553,), (1374383554,), (1374383555,), (1374383556,), (1374383557,), (1374383558,), (1374383571,), (1374383572,), (1374383573,), (1374383574,), (1374383575,), (1374383579,), (1374383600,), (1374383601,), (1374383602,), (1374383603,), (1374383604,), (1374383606,), (1374383635,), (1374383637,), (1374383639,), (1374383641,), (1374383644,), (1374383647,), (1374383663,), (1374383666,), (1374383668,), (1374383670,), (1374383672,), (1374383674,), (1374383692,), (1374383708,), (1374383710,), (1374383711,), (1374383712,), (1374383714,), (1374383717,), (1374383737,), (1374383756,), (1374383757,), (1374383758,), (1374383759,), (1374383760,), (1374383762,), (1374383777,), (1374383778,), (1374383779,), (1374383780,), (1374383782,), (1374383785,), (1374383798,), (1374383799,), (1374383800,), (1374383801,), (1374383802,), (1374383804,), (1374383820,), (1374383821,), (1374383823,), (1374383824,), (1374383825,), (1374383828,), (1374383838,), (1374383839,), (1374383840,), (1374383841,), (1374383843,), (1374383844,), (1374383856,), (1374383857,), (1374383858,), (1374383859,), (1374383861,), (1374383863,), (1374383877,), (1374383879,), (1374383880,), (1374383881,), (1374383883,), (1374383885,), (1374383891,), (1374383902,), (1374383911,), (1374383919,), (1374383920,), (1374383922,), (1374383924,), (1374383946,), (1374383980,), (1374383992,), (1374383997,), (1374383998,), (1374384000,), (1374384002,), (1374384017,), (1374384027,), (1374384032,), (1374384038,), (1374384039,), (1374384041,), (1374384053,), (1374384054,), (1374384055,), (1374384056,), (1374384057,), (1374384060,), (1374384076,), (1374384077,), (1374384078,), (1374384079,), (1374384081,), (1374384082,), (1374384103,), (1374384104,), (1374384105,), (1374384106,), (1374384108,), (1374384111,), (1374384142,), (1374384163,), (1374384170,), (1374384175,), (1374384176,), (1374384178,), (1374384180,), (1374384199,), (1374384207,), (1374384214,), (1374384215,), (1374384217,), (1374384219,), (1374384238,), (1374384248,), (1374384254,), (1374384255,), (1374384258,), (1374384261,), (1374384287,), (1374384309,), (1374384319,), (1374384325,), (1374384326,), (1374384327,), (1374384329,), (1374384341,), (1374384342,), (1374384343,), (1374384344,), (1374384345,), (1374384348,), (1374384363,), (1374384364,), (1374384365,), (1374384366,), (1374384368,), (1374384372,), (1374384379,), (1374384407,), (1374384409,), (1374384419,), (1374384422,), (1374384424,), (1374384425,), (1374384455,), (1374384456,), (1374384457,), (1374384458,), (1374384460,), (1374384462,), (1374384480,), (1374384483,), (1374384484,), (1374384485,), (1374384487,), (1374384490,), (1374384498,), (1374384505,), (1374384506,), (1374384507,), (1374384509,), (1374384511,), (1374384521,), (1374384527,), (1374384528,), (1374384529,), (1374384530,), (1374384532,), (1374384554,), (1374384555,), (1374384556,), (1374384557,), (1374384558,), (1374384560,), (1374384578,), (1374384585,), (1374384593,), (1374384597,), (1374384601,), (1374384605,), (1374384609,), (1374384612,), (1374384619,), (1374384620,), (1374384621,), (1374384624,), (1374384627,), (1374384641,), (1374384652,), (1374384653,), (1374384654,), (1374384655,), (1374384656,), (1374384659,), (1374384668,), (1374384669,), (1374384670,), (1374384671,), (1374384672,), (1374384674,), (1374384689,), (1374384690,), (1374384691,), (1374384692,), (1374384694,), (1374384696,), (1374384715,), (1374384717,), (1374384718,), (1374384719,), (1374384721,), (1374384723,), (1374384731,), (1374384732,), (1374384733,), (1374384734,), (1374384736,), (1374384738,), (1374384753,), (1374384794,), (1374384795,), (1374384796,), (1374384797,), (1374384799,), (1374384802,), (1374384809,), (1374384814,), (1374384815,), (1374384816,), (1374384817,), (1374384819,), (1374384822,), (1374384831,), (1374384849,), (1374384851,), (1374384855,), (1374384856,), (1374384857,), (1374384861,), (1374384878,), (1374384893,), (1374384894,), (1374384895,), (1374384896,), (1374384898,), (1374384900,), (1374385440,), (1374385481,), (1374385527,), (1374385561,), (1374385584,), (1374385607,), (1374386116,), (1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,), (1374387117,), (1374387137,), (1374387142,), (1374387143,), (1374387144,), (1374387146,), (1374387149,), (1374387161,), (1374387162,), (1374387163,), (1374387164,), (1374387173,), (1374387174,), (1374387187,), (1374387189,), (1374387191,), (1374387193,), (1374387199,), (1374387214,), (1374387226,), (1374387228,), (1374387230,), (1374387231,), (1374387232,), (1374387234,), (1374387249,), (1374387250,), (1374387258,), (1374387268,), (1374387269,), (1374387271,), (1374387300,), (1374387301,), (1374387302,), (1374387303,), (1374387305,), (1374387306,), (1374387322,), (1374387324,), (1374387326,), (1374387329,), (1374387332,), (1374387336,), (1374387351,), (1374387359,), (1374387360,), (1374387361,), (1374387363,), (1374387365,), (1374387393,), (1374387411,), (1374387430,), (1374387432,), (1374387434,), (1374387435,), (1374387436,), (1374387453,), (1374387483,), (1374387484,), (1374387485,), (1374387491,), (1374387500,), (1374387501,), (1374387514,), (1374387522,), (1374387527,), (1374387528,), (1374387529,), (1374387531,), (1374387549,), (1374387567,), (1374387568,), (1374387586,), (1374387591,), (1374387592,), (1374387594,), (1374387608,), (1374387609,), (1374387610,), (1374387611,), (1374387613,), (1374387614,), (1374387625,), (1374387636,), (1374387646,), (1374387648,), (1374387651,), (1374387654,), (1374387670,), (1374387671,), (1374387672,), (1374387673,), (1374387674,), (1374387677,), (1374387691,), (1374387692,), (1374387705,), (1374387707,), (1374387708,), (1374387709,), (1374387782,), (1374389441,), (1374387799,), (1374387808,), (1374387821,), (1374387822,), (1374387823,), (1374387825,), (1374387835,), (1374387838,), (1374387845,), (1374387846,), (1374387848,), (1374387849,), (1374387864,), (1374387866,), (1374387868,), (1374387870,), (1374387873,), (1374387878,), (1374387884,), (1374387885,), (1374387887,), (1374387890,), (1374387893,), (1374387896,), (1374387911,), (1374387913,), (1374387914,), (1374387915,), (1374387916,), (1374387919,), (1374387930,), (1374387932,), (1374387933,), (1374387934,), (1374387935,), (1374387937,), (1374387961,), (1374387963,), (1374387964,), (1374387965,), (1374387967,), (1374387969,), (1374387981,), (1374387983,), (1374387984,), (1374387985,), (1374387986,), (1374387987,), (1374388002,), (1374388009,), (1374388010,), (1374388011,), (1374388013,), (1374388016,), (1374388037,), (1374388056,), (1374388057,), (1374388058,), (1374388059,), (1374388061,), (1374388063,), (1374388079,), (1374388096,), (1374388099,), (1374388101,), (1374388103,), (1374388105,), (1374388107,), (1374388122,), (1374388144,), (1374388145,), (1374388146,), (1374388152,), (1374388155,), (1374388158,), (1374388171,), (1374388173,), (1374388175,), (1374388176,), (1374388177,), (1374388180,), (1374388194,), (1374388196,), (1374388197,), (1374388198,), (1374388200,), (1374388203,), (1374388219,), (1374388244,), (1374388245,), (1374388249,), (1374388260,), (1374388262,), (1374388264,), (1374388317,), (1374388335,), (1374388336,), (1374388337,), (1374388338,), (1374388347,), (1374388356,), (1374388376,), (1374388377,), (1374388381,), (1374388388,), (1374388390,), (1374388403,), (1374388423,), (1374388424,), (1374388425,), (1374388427,), (1374388437,), (1374388439,), (1374388454,), (1374388456,), (1374388458,), (1374388460,), (1374388462,), (1374388465,), (1374388486,), (1374388487,), (1374388488,), (1374388489,), (1374388491,), (1374388494,), (1374388508,), (1374388509,), (1374388510,), (1374388511,), (1374388517,), (1374388542,), (1374388798,), (1374388820,), (1374388844,), (1374388867,), (1374388889,), (1374388911,), (1374389405,), (1374389931,), (1374390485,), (1374390508,), (1374390519,), (1374390526,), (1374390528,), (1374390538,), (1374390661,), (1374390687,), (1374390721,), (1374390736,), (1374390743,), (1374390749,), (1374390810,), (1374390811,), (1374390812,), (1374390813,), (1374390815,), (1374390817,), (1374390829,), (1374390831,), (1374390832,), (1374390839,), (1374390845,), (1374390864,), (1374390876,), (1374390879,), (1374390886,), (1374390889,), (1374390908,), (1374390912,), (1374390955,), (1374390956,), (1374390957,), (1374390958,), (1374390960,), (1374390963,), (1374390983,), (1374390984,), (1374390985,), (1374390986,), (1374390988,), (1374390990,), (1374391009,), (1374391010,), (1374391011,), (1374391019,), (1374391020,), (1374391034,), (1374391061,), (1374391070,), (1374391072,), (1374391073,), (1374391074,), (1374391076,), (1374391128,), (1374391157,), (1374391159,), (1374391169,), (1374391179,), (1374391180,), (1374391183,), (1374391209,), (1374391249,), (1374391250,), (1374391261,), (1374391263,), (1374391265,), (1374391267,), (1374391285,), (1374391305,), (1374391307,), (1374391314,), (1374391315,), (1374391316,), (1374391318,), (1374391322,), (1374391327,), (1374391328,), (1374391329,), (1374391331,), (1374391332,), (1374391344,), (1374391347,), (1374391355,), (1374391356,), (1374391358,), (1374391361,), (1374391371,), (1374391390,), (1374391391,), (1374391392,), (1374391399,), (1374391406,), (1374391413,), (1374391432,), (1374391439,), (1374391440,), (1374391441,), (1374391442,), (1374391444,), (1374391479,), (1374391499,), (1374391501,), (1374391502,), (1374391503,), (1374391505,), (1374391506,), (1374391523,), (1374391525,), (1374391532,), (1374391539,), (1374391547,), (1374391550,), (1374391558,), (1374391559,), (1374391560,), (1374391561,), (1374391563,), (1374391566,), (1374391585,), (1374391593,), (1374391598,), (1374391602,), (1374391604,), (1374391606,), (1374391613,), (1374391615,), (1374391616,), (1374391617,), (1374391618,), (1374391620,), (1374391636,), (1374391641,), (1374391643,), (1374391645,), (1374391646,), (1374391648,), (1374391664,), (1374391665,), (1374391666,), (1374391667,), (1374391669,), (1374391672,), (1374391682,), (1374391686,), (1374391694,), (1374391695,), (1374391697,), (1374391701,), (1374391739,), (1374391740,), (1374391741,), (1374391742,), (1374391743,), (1374391745,), (1374391762,), (1374391788,), (1374391789,), (1374391790,), (1374391791,), (1374391810,), (1374391820,), (1374391838,), (1374391840,), (1374391842,), (1374391843,), (1374391845,), (1374391847,), (1374391863,), (1374391883,), (1374391884,), (1374391885,), (1374391886,), (1374391888,), (1374391890,), (1374391903,), (1374391904,), (1374391905,), (1374391906,), (1374391907,), (1374391910,), (1374391931,), (1374391936,), (1374391941,), (1374391942,), (1374391945,), (1374391948,), (1374391960,), (1374391962,), (1374391963,), (1374391964,), (1374391965,), (1374391967,), (1374391984,), (1374391989,), (1374391994,), (1374391999,), (1374392001,), (1374392004,), (1374392061,), (1374392095,), (1374392096,), (1374392103,), (1374392108,), (1374392110,), (1374392114,), (1374392129,), (1374392133,), (1374392134,), (1374392135,), (1374392137,), (1374392139,), (1374392156,), (1374392159,), (1374392161,), (1374392162,), (1374392163,), (1374392166,), (1374392176,), (1374392178,), (1374392179,), (1374392180,), (1374392183,), (1374392185,), (1374392206,), (1374392212,), (1374392220,), (1374392222,), (1374392224,), (1374392226,), (1374392235,), (1374392236,), (1374392237,), (1374392238,), (1374392240,), (1374392242,), (1374392249,), (1374392257,), (1374392264,), (1374392265,), (1374392267,), (1374392269,), (1374392282,), (1374392289,), (1374392295,), (1374392297,), (1374392298,), (1374392300,), (1374392308,), (1374392309,), (1374392312,), (1374392313,), (1374392319,), (1374392320,), (1374392384,), (1374392407,), (1374392408,), (1374392416,), (1374392417,), (1374392419,), (1374392420,), (1374392439,), (1374392462,), (1374392478,), (1374392479,), (1374392480,), (1374392481,), (1374392483,), (1374392486,), (1374392494,), (1374392495,), (1374392496,), (1374392497,), (1374392499,), (1374392502,), (1374392525,), (1374392791,), (1374392819,), (1374392845,), (1374392867,), (1374392890,), (1374392914,), (1374393078,), (1374393079,), (1374393082,), (1374393084,), (1374393087,), (1374393090,), (1374393144,), (1374393481,), (1374393503,), (1374393529,), (1374393552,), (1374393602,), (1374393628,), (1374393759,), (1374393760,), (1374393767,), (1374393775,), (1374393780,), (1374393810,), (1374394275,), (1374394498,), (1374394522,), (1374394530,), (1374394531,), (1374394532,), (1374394551,), (1374394599,), (1374394608,), (1374394612,), (1374394619,), (1374394625,), (1374394628,), (1374394634,), (1374394636,), (1374394637,), (1374394638,), (1374394640,), (1374394643,), (1374394655,), (1374394659,), (1374394665,), (1374394667,), (1374394668,), (1374394670,), (1374394679,), (1374394686,), (1374394691,), (1374394692,), (1374394695,), (1374394698,), (1374394712,), (1374394714,), (1374394715,), (1374394716,), (1374394718,), (1374394720,), (1374394776,), (1374394777,), (1374394778,), (1374394779,), (1374394780,), (1374394782,), (1374394797,), (1374394815,), (1374394817,), (1374394818,), (1374394819,), (1374394821,), (1374394823,), (1374394832,), (1374394833,), (1374394843,), (1374394844,), (1374394845,), (1374394849,), (1374394863,), (1374394864,), (1374394866,), (1374394867,), (1374394868,), (1374394870,), (1374394888,), (1374394893,), (1374394899,), (1374394900,), (1374394901,), (1374394904,), (1374394925,), (1374394928,), (1374394932,), (1374394935,), (1374394940,), (1374394943,), (1374394947,), (1374394949,), (1374394950,), (1374394951,), (1374394953,), (1374394970,), (1374394986,), (1374394993,), (1374395000,), (1374395001,), (1374395002,), (1374395004,), (1374395059,), (1374395080,), (1374395086,), (1374395094,), (1374395096,), (1374395098,), (1374395101,), (1374395110,), (1374395111,), (1374395112,), (1374395113,), (1374395115,), (1374395116,), (1374395123,), (1374395135,), (1374395141,), (1374395142,), (1374395144,), (1374395147,), (1374395166,), (1374395197,), (1374395218,), (1374395219,), (1374395220,), (1374395221,), (1374395223,), (1374395226,), (1374395241,), (1374395253,), (1374395258,), (1374395259,), (1374395261,), (1374395263,), (1374395271,), (1374395272,), (1374395273,), (1374395274,), (1374395275,), (1374395277,), (1374395290,), (1374395291,), (1374395292,), (1374395293,), (1374395296,), (1374395298,), (1374395370,), (1374395387,), (1374395388,), (1374395389,), (1374395390,), (1374395392,), (1374395396,), (1374395410,), (1374395411,), (1374395412,), (1374395413,), (1374395414,), (1374395416,), (1374395427,), (1374395429,), (1374395431,), (1374395432,), (1374395433,), (1374395436,), (1374395453,), (1374395454,), (1374395462,), (1374395467,), (1374395468,), (1374395470,), (1374395490,), (1374395500,), (1374395503,), (1374395504,), (1374395505,), (1374395507,), (1374395525,), (1374395527,), (1374395529,), (1374395530,), (1374395532,), (1374395534,), (1374395549,), (1374395555,), (1374395561,), (1374395564,), (1374395567,), (1374395570,), (1374395586,), (1374395593,), (1374395598,), (1374395599,), (1374395601,), (1374395603,), (1374395612,), (1374395615,), (1374395620,), (1374395627,), (1374395629,), (1374395633,), (1374395642,), (1374395671,), (1374395674,), (1374395675,), (1374395676,), (1374395677,), (1374395678,), (1374395686,), (1374395687,), (1374395694,), (1374395699,), (1374395700,), (1374395702,), (1374395724,), (1374395729,), (1374395730,), (1374395731,), (1374395733,), (1374395737,), (1374395751,), (1374395753,), (1374395754,), (1374395755,), (1374395757,), (1374395761,), (1374395777,), (1374395778,), (1374395781,), (1374395787,), (1374395789,), (1374395791,), (1374395803,), (1374395807,), (1374395813,), (1374395814,), (1374395815,), (1374395817,), (1374395838,), (1374395857,), (1374395858,), (1374395859,), (1374395860,), (1374395861,), (1374395863,), (1374395881,), (1374395883,), (1374395888,), (1374395891,), (1374395892,), (1374395894,), (1374395914,), (1374395960,), (1374395961,), (1374395964,), (1374395967,), (1374395968,), (1374395971,), (1374395991,), (1374396011,), (1374396013,), (1374396017,), (1374396022,), (1374396023,), (1374396026,), (1374396049,), (1374396051,), (1374396053,), (1374396054,), (1374396056,), (1374396058,), (1374396077,), (1374396079,), (1374396081,), (1374396083,), (1374396086,), (1374396089,), (1374396107,), (1374396110,), (1374396111,), (1374396112,), (1374396113,), (1374396115,), (1374396139,), (1374396141,), (1374396142,), (1374396144,), (1374396147,), (1374396151,), (1374397168,), (1374397198,), (1374397224,), (1374397248,), (1374397274,), (1374397297,), (1374397767,), (1374398282,), (1374398305,), (1374398329,), (1374398355,), (1374398359,), (1374398362,), (1374398549,), (1374398592,), (1374398643,), (1374398687,), (1374398723,), (1374398739,), (1374398908,), (1374398919,), (1374398921,), (1374398923,), (1374398946,), (1374398971,), (1374399022,), (1374399024,), (1374399025,), (1374399026,), (1374399028,), (1374399030,), (1374399050,), (1374399051,), (1374399054,), (1374399055,), (1374399057,), (1374399061,), (1374399097,), (1374399125,), (1374399128,), (1374399131,), (1374399132,), (1374399134,), (1374399136,), (1374399155,), (1374399179,), (1374399182,), (1374399184,), (1374399185,), (1374399186,), (1374399188,), (1374399204,), (1374399250,), (1374399252,), (1374399254,), (1374399256,), (1374399258,), (1374399261,), (1374399282,), (1374399285,), (1374399287,), (1374399288,), (1374399289,), (1374399291,), (1374399309,), (1374399311,), (1374399313,), (1374399315,), (1374399317,), (1374399321,), (1374399342,), (1374399377,), (1374399379,), (1374399381,), (1374399383,), (1374399386,), (1374399389,), (1374399421,), (1374399423,), (1374399424,), (1374399425,), (1374399426,), (1374399429,), (1374399462,), (1374399499,), (1374399504,), (1374399506,), (1374399507,), (1374399508,), (1374399511,), (1374399528,), (1374399531,), (1374399533,), (1374399535,), (1374399537,), (1374399541,), (1374399552,), (1374399591,), (1374399593,), (1374399604,), (1374399611,), (1374399613,), (1374399617,), (1374399640,), (1374399649,), (1374399655,), (1374399663,), (1374399665,), (1374399667,), (1374399693,), (1374399694,), (1374399695,), (1374399696,), (1374399698,), (1374399702,), (1374399725,), (1374399726,), (1374399727,), (1374399728,), (1374399730,), (1374399731,), (1374399753,), (1374399755,), (1374399756,), (1374399757,), (1374399758,), (1374399761,), (1374399783,), (1374399827,), (1374399833,), (1374399838,), (1374399840,), (1374399841,), (1374399843,), (1374399860,), (1374399861,), (1374399862,), (1374399863,), (1374399864,), (1374399866,), (1374399889,), (1374399892,), (1374399894,), (1374399895,), (1374399896,), (1374399900,), (1374399928,), (1374399953,), (1374399954,), (1374399955,), (1374399956,), (1374399957,), (1374399959,), (1374399969,), (1374399970,), (1374399971,), (1374399972,), (1374399974,), (1374399978,), (1374399984,), (1374399986,), (1374399990,), (1374399998,), (1374400003,), (1374400007,), (1374400030,), (1374400062,), (1374400064,), (1374400069,), (1374400070,), (1374400071,), (1374400073,), (1374400111,), (1374400112,), (1374400113,), (1374400114,), (1374400115,), (1374400118,), (1374400143,), (1374400144,), (1374400145,), (1374400146,), (1374400147,), (1374400149,), (1374400168,), (1374400170,), (1374400174,), (1374400182,), (1374400189,), (1374400191,), (1374400209,), (1374400211,), (1374400217,), (1374400218,), (1374400219,), (1374400222,), (1374400238,), (1374400262,), (1374400264,), (1374400267,), (1374400272,), (1374400276,), (1374400279,), (1374400304,), (1374400307,), (1374400315,), (1374400316,), (1374400318,), (1374400321,), (1374400339,), (1374400340,), (1374400341,), (1374400342,), (1374400343,), (1374400346,), (1374400361,), (1374400398,), (1374400399,), (1374400405,), (1374400412,), (1374400420,), (1374400423,), (1374400444,), (1374400448,), (1374400455,), (1374400456,), (1374400457,), (1374400461,), (1374400481,), (1374400482,), (1374400483,), (1374400484,), (1374400486,), (1374400490,), (1374400515,), (1374400517,), (1374400518,), (1374400519,), (1374400520,), (1374400524,), (1374400541,), (1374400544,), (1374400546,), (1374400548,), (1374400549,), (1374400551,), (1374400578,), (1374400601,), (1374400610,), (1374400611,), (1374400613,), (1374400614,), (1374400616,), (1374400630,), (1374400632,), (1374400634,), (1374400635,), (1374400637,), (1374400640,), (1374400659,), (1374400661,), (1374400663,), (1374400664,), (1374400666,), (1374400669,), (1374400689,), (1374400701,), (1374400704,), (1374400705,), (1374400706,), (1374400709,), (1374400725,), (1374400727,), (1374400730,), (1374400732,), (1374400733,), (1374400736,), (1374400758,), (1374400780,), (1374400782,), (1374400784,), (1374400785,), (1374400786,), (1374400789,), (1374401522,), (1374401523,), (1374401573,), (1374401578,), (1374401639,), (1374401651,), (1374401709,), (1374401724,), (1374401770,), (1374401786,), (1374401819,), (1374401835,), (1374402060,), (1374402857,), (1374402903,), (1374402950,), (1374403021,), (1374403092,), (1374403165,), (1374403437,), (1374403486,), (1374403512,), (1374403542,), (1374403565,), (1374403589,), (1374403995,), (1374404040,), (1374404087,), (1374404133,), (1374404184,), (1374404223,), (1374404472,), (1374404524,), (1374404552,), (1374404577,), (1374404580,), (1374404595,), (1374404790,), (1374404813,), (1374404827,), (1374404829,), (1374404832,), (1374404833,), (1374404851,), (1374404874,), (1374404875,), (1374404876,), (1374404877,), (1374404879,), (1374404882,), (1374404903,), (1374404905,), (1374404906,), (1374404907,), (1374404908,), (1374404910,), (1374404933,), (1374404939,), (1374404948,), (1374404952,), (1374404955,), (1374404958,), (1374404975,), (1374404980,), (1374404990,), (1374404991,), (1374404993,), (1374404995,), (1374405041,), (1374405079,), (1374405108,), (1374405109,), (1374405110,), (1374405111,), (1374405112,), (1374405114,), (1374405128,), (1374405135,), (1374405141,), (1374405142,), (1374405144,), (1374405148,), (1374405171,), (1374405175,), (1374405178,), (1374405179,), (1374405181,), (1374405185,), (1374405198,), (1374405199,), (1374405200,), (1374405201,), (1374405202,), (1374405204,), (1374405232,), (1374405233,), (1374405234,), (1374405235,), (1374405236,), (1374405238,), (1374405264,), (1374405303,), (1374405352,), (1374405353,), (1374405354,), (1374405355,), (1374405356,), (1374405358,), (1374405388,), (1374405415,), (1374405421,), (1374405423,), (1374405425,), (1374405428,), (1374405431,), (1374405458,), (1374405461,), (1374405463,), (1374405465,), (1374405467,), (1374405470,), (1374405488,), (1374405494,), (1374405496,), (1374405498,), (1374405500,), (1374405503,), (1374405528,), (1374405530,), (1374405532,), (1374405534,), (1374405537,), (1374405538,), (1374405574,), (1374405576,), (1374405577,), (1374405578,), (1374405579,), (1374405581,), (1374405601,), (1374405602,), (1374405603,), (1374405604,), (1374405605,), (1374405607,), (1374405636,), (1374405640,), (1374405657,), (1374405658,), (1374405660,), (1374405664,), (1374405676,), (1374405679,), (1374405680,), (1374405681,), (1374405684,), (1374405686,), (1374405718,), (1374405733,), (1374405735,), (1374405737,), (1374405738,), (1374405739,), (1374405743,), (1374405757,), (1374405759,), (1374405761,), (1374405762,), (1374405764,), (1374405766,), (1374405783,), (1374405784,), (1374405785,), (1374405786,), (1374405788,), (1374405792,), (1374405803,), (1374405804,), (1374405805,), (1374405806,), (1374405807,), (1374405809,), (1374405836,), (1374405837,), (1374405838,), (1374405839,), (1374405841,), (1374405845,), (1374405952,), (1374406316,), (1374406342,), (1374406366,), (1374406389,), (1374406412,), (1374406437,), (1374406720,), (1374406744,), (1374406768,), (1374406793,), (1374406816,), (1374406842,), (1374406951,), (1374406960,), (1374406964,), (1374406965,), (1374406966,), (1374406968,), (1374407024,), (1374407052,), (1374407094,), (1374407120,), (1374407145,), (1374407168,), (1374407438,), (1374407528,), (1374407560,), (1374407588,), (1374407612,), (1374407637,), (1374407665,), (1374407859,), (1374407886,), (1374407912,), (1374407935,), (1374407962,), (1374407996,), (1374408580,), (1374409146,), (1374409182,), (1374409217,), (1374409242,), (1374409265,), (1374409290,), (1374409622,), (1374409658,), (1374409690,), (1374409713,), (1374409719,), (1374409721,), (1374409738,), (1374409739,), (1374409740,), (1374409741,), (1374409743,), (1374409745,), (1374409996,), (1374410043,), (1374410096,), (1374410141,), (1374410189,), (1374410237,), (1374410500,), (1374410523,), (1374410548,), (1374410560,), (1374410564,), (1374410567,), (1374411090,), (1374411482,), (1374411506,), (1374411554,), (1374411582,), (1374411607,), (1374411632,), (1374411793,), (1374411795,), (1374411797,), (1374411798,), (1374411799,), (1374411820,), (1374412047,), (1374412050,), (1374412052,), (1374412075,), (1374412103,), (1374412117,), (1374412165,), (1374412169,), (1374412170,), (1374412171,), (1374412172,), (1374412174,), (1374412190,), (1374412192,), (1374412194,), (1374412196,), (1374412197,), (1374412199,), (1374412221,), (1374412451,), (1374412475,), (1374412501,), (1374412526,), (1374412551,), (1374412575,), (1374413343,), (1374413717,), (1374414186,), (1374414211,), (1374414240,), (1374414275,), (1374414324,), (1374414370,), (1374414777,), (1374414804,), (1374414824,), (1374414882,), (1374414924,), (1374414961,), (1374415156,), (1374415164,), (1374415169,), (1374415172,), (1374415176,), (1374415181,), (1374415191,), (1374415421,), (1374415429,), (1374415430,), (1374415439,), (1374415469,), (1374415477,), (1374415526,), (1374415527,), (1374415528,), (1374415529,), (1374415532,), (1374415535,), (1374415551,), (1374415552,), (1374415553,), (1374415554,), (1374415555,), (1374415557,), (1374415572,), (1374415574,), (1374415575,), (1374415576,), (1374415577,), (1374415579,), (1374415602,), (1374415609,), (1374415610,), (1374415611,), (1374415612,), (1374415614,), (1374415649,), (1374415688,), (1374415696,), (1374415697,), (1374415698,), (1374415700,), (1374415703,), (1374415723,), (1374415735,), (1374415740,), (1374415741,), (1374415742,), (1374415744,), (1374416020,), (1374416090,), (1374416160,), (1374416227,), (1374416290,), (1374416356,), (1374416922,), (1374416972,), (1374417021,), (1374417070,), (1374417122,), (1374417171,), (1374417602,), (1374417634,), (1374417659,), (1374417684,), (1374417710,), (1374417741,), (1374418197,), (1374418226,), (1374418231,), (1374418232,), (1374418274,), (1374418306,), (1374418462,), (1374418499,), (1374418531,), (1374418556,), (1374418580,), (1374418608,), (1374418937,), (1374418960,), (1374419000,), (1374419045,), (1374419094,), (1374419120,), (1374419328,), (1374419329,), (1374419330,), (1374419331,), (1374419333,), (1374419337,), (1374419604,), (1374419758,), (1374419795,), (1374419831,), (1374419857,), (1374419883,), (1374419909,), (1374419970,), (1374419973,), (1374419976,), (1374419978,), (1374419981,), (1374419985,), (1374420027,), (1374420042,), (1374420060,), (1374420064,), (1374420066,), (1374420069,), (1374420140,), (1374420154,), (1374420163,), (1374420165,), (1374420167,), (1374420170,), (1374420188,), (1374420191,), (1374420194,), (1374420196,), (1374420198,), (1374420202,), (1374420226,), (1374420242,), (1374420250,), (1374420251,), (1374420252,), (1374420254,), (1374420275,), (1374420286,), (1374420293,), (1374420294,), (1374420295,), (1374420297,), (1374420310,), (1374420322,), (1374420330,), (1374420334,), (1374420336,), (1374420338,), (1374420352,), (1374420364,), (1374420372,), (1374420379,), (1374420381,), (1374420384,), (1374420424,), (1374420436,), (1374420438,), (1374420440,), (1374420441,), (1374420442,), (1374420444,), (1374420451,), (1374420466,), (1374420496,), (1374420505,), (1374420509,), (1374420510,), (1374420512,), (1374420514,), (1374420532,), (1374420540,), (1374420546,), (1374420549,), (1374420552,), (1374420555,), (1374420564,), (1374420568,), (1374420583,), (1374420591,), (1374420595,), (1374420597,), (1374420611,), (1374420614,), (1374420629,), (1374420639,), (1374420640,), (1374420642,), (1374420666,), (1374420671,), (1374420672,), (1374420673,), (1374420674,), (1374420676,), (1374420690,), (1374420714,), (1374420727,), (1374420733,), (1374420734,), (1374420736,), (1374420738,), (1374420785,), (1374420786,), (1374420787,), (1374420788,), (1374420789,), (1374420791,), (1374420811,), (1374420853,), (1374420884,), (1374420885,), (1374420886,), (1374420887,), (1374420888,), (1374420890,), (1374420953,), (1374420960,), (1374420963,), (1374420964,), (1374420965,), (1374420969,), (1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30072025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495225]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] map_info['map_portfolio_photo'] : {25495225: [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738, 1374423684, 1374423682, 1374423681, 1374423680, 1374423662, 1374423637, 1374423473, 1374423471, 1374423470, 1374423469, 1374423467, 1374423462, 1374423258, 1374423232, 1374423207, 1374423183, 1374423158, 1374423130, 1374422949, 1374422736, 1374422187, 1374422136, 1374422101, 1374422076, 1374422047, 1374422021, 1374421757, 1374421732, 1374421708, 1374421683, 1374421654, 1374421622, 1374421436, 1374421414, 1374421395, 1374421389, 1374421383, 1374421379, 1374421312, 1374421287, 1374421268, 1374421267, 1374421265, 1374421263, 1374421193, 1374421168, 1374421155, 1374421148, 1374421139, 1374421138]} final : True mtd_id 4302 list_pids : [1374424070, 1374424068, 1374424066, 1374424064, 1374424062, 1374424061, 1374424040, 1374424038, 1374424037, 1374424036, 1374424035, 1374424034, 1374423863, 1374423837, 1374423813, 1374423789, 1374423765, 1374423738] Looping around the photos to save general results len do output : 1 /25495225Didn'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, '3396278') ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278') ('4302', None, None, None, None, None, None, None, '3396278') ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25495225', 'None', None, None, None, None, '3396278'), ('4302', '25495225', '1374424070', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424068', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424066', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424064', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424062', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424061', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424040', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424038', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424037', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424036', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424035', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374424034', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423863', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423837', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423813', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423789', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423765', None, None, None, None, None, '3396278'), ('4302', '25495225', '1374423738', None, None, None, None, None, '3396278')] time used for this insertion : 0.14608526229858398 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.905905246734619 time spend to save output : 0.14639663696289062 total time spend for step 5 : 3.0523018836975098 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 (3396278) 2.43user 2.05system 0:11.28elapsed 39%CPU (0avgtext+0avgdata 161436maxresident)k 192inputs+11704outputs (0major+77542minor)pagefaults 0swaps