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 : 2114166 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 (3706029) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3706029) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769190 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3706029'] with mtr_portfolio_ids : ['26769190'] and first list_photo_ids : [] new path : /proc/2114166/ Name: python3 Umask: 0002 State: R (running) Tgid: 2114166 Ngid: 0 Pid: 2114166 PPid: 2114165 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2114166 NSpid: 2114166 NSpgid: 2111535 NSsid: 2111535 VmPeak: 1107340 kB VmSize: 1107340 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97908 kB VmRSS: 89824 kB RssAnon: 60164 kB RssFile: 29660 kB RssShmem: 0 kB VmData: 866092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 57 nonvoluntary_ctxt_switches: 125 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2114166', 'Ngid': '0', 'Pid': '2114166', 'PPid': '2114165', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2114166', 'NSpid': '2114166', 'NSpgid': '2111535', 'NSsid': '2111535', 'VmPeak': '1107340 kB', 'VmSize': '1107340 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97908 kB', 'VmRSS': '89824 kB', 'RssAnon': '60164 kB', 'RssFile': '29660 kB', 'RssShmem': '0 kB', 'VmData': '866092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '57', 'nonvoluntary_ctxt_switches': '125'} ('datou_batch_current', '2114166', '1107340', '0', '1107340', '866092', '89824', b'', 'marlene', '3706029') 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 (26769190) 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 (3706029 ) ) 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 (26769190) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383306328, 'portfolio_id': 26769190}, {'photo_id': 1383306318, 'portfolio_id': 26769190}, {'photo_id': 1383306285, 'portfolio_id': 26769190}, {'photo_id': 1383306280, 'portfolio_id': 26769190}, {'photo_id': 1383306276, 'portfolio_id': 26769190}, {'photo_id': 1383306252, 'portfolio_id': 26769190}, {'photo_id': 1383306250, 'portfolio_id': 26769190}, {'photo_id': 1383306247, 'portfolio_id': 26769190}, {'photo_id': 1383306190, 'portfolio_id': 26769190}, {'photo_id': 1383306188, 'portfolio_id': 26769190}, {'photo_id': 1383306187, 'portfolio_id': 26769190}, {'photo_id': 1383306184, 'portfolio_id': 26769190}, {'photo_id': 1383306173, 'portfolio_id': 26769190}, {'photo_id': 1383306171, 'portfolio_id': 26769190}, {'photo_id': 1383306169, 'portfolio_id': 26769190}, {'photo_id': 1383306167, 'portfolio_id': 26769190}, {'photo_id': 1383306163, 'portfolio_id': 26769190}, {'photo_id': 1383306148, 'portfolio_id': 26769190}, {'photo_id': 1383306145, 'portfolio_id': 26769190}, {'photo_id': 1383306142, 'portfolio_id': 26769190}, {'photo_id': 1383306139, 'portfolio_id': 26769190}, {'photo_id': 1383306135, 'portfolio_id': 26769190}, {'photo_id': 1383306131, 'portfolio_id': 26769190}, {'photo_id': 1383306110, 'portfolio_id': 26769190}, {'photo_id': 1383306106, 'portfolio_id': 26769190}, {'photo_id': 1383306090, 'portfolio_id': 26769190}, {'photo_id': 1383306087, 'portfolio_id': 26769190}, {'photo_id': 1383306085, 'portfolio_id': 26769190}, {'photo_id': 1383306081, 'portfolio_id': 26769190}, {'photo_id': 1383306040, 'portfolio_id': 26769190}, {'photo_id': 1383306037, 'portfolio_id': 26769190}, {'photo_id': 1383306034, 'portfolio_id': 26769190}, {'photo_id': 1383306030, 'portfolio_id': 26769190}, {'photo_id': 1383306020, 'portfolio_id': 26769190}, {'photo_id': 1383306018, 'portfolio_id': 26769190}, {'photo_id': 1383306016, 'portfolio_id': 26769190}, {'photo_id': 1383306013, 'portfolio_id': 26769190}, {'photo_id': 1383306009, 'portfolio_id': 26769190}, {'photo_id': 1383305995, 'portfolio_id': 26769190}, {'photo_id': 1383305993, 'portfolio_id': 26769190}, {'photo_id': 1383305990, 'portfolio_id': 26769190}, {'photo_id': 1383305975, 'portfolio_id': 26769190}, {'photo_id': 1383305973, 'portfolio_id': 26769190}, {'photo_id': 1383305970, 'portfolio_id': 26769190}, {'photo_id': 1383305967, 'portfolio_id': 26769190}, {'photo_id': 1383305951, 'portfolio_id': 26769190}, {'photo_id': 1383305947, 'portfolio_id': 26769190}, {'photo_id': 1383305944, 'portfolio_id': 26769190}, {'photo_id': 1383305941, 'portfolio_id': 26769190}, {'photo_id': 1383305939, 'portfolio_id': 26769190}, {'photo_id': 1383305845, 'portfolio_id': 26769190}, {'photo_id': 1383305813, 'portfolio_id': 26769190}, {'photo_id': 1383305779, 'portfolio_id': 26769190}, {'photo_id': 1383305741, 'portfolio_id': 26769190}, {'photo_id': 1383305644, 'portfolio_id': 26769190}, {'photo_id': 1383305642, 'portfolio_id': 26769190}, {'photo_id': 1383305638, 'portfolio_id': 26769190}] map_portfolio_id_photo_id: {26769190: [1383306328, 1383306318, 1383306285, 1383306280, 1383306276, 1383306252, 1383306250, 1383306247, 1383306190, 1383306188, 1383306187, 1383306184, 1383306173, 1383306171, 1383306169, 1383306167, 1383306163, 1383306148, 1383306145, 1383306142, 1383306139, 1383306135, 1383306131, 1383306110, 1383306106, 1383306090, 1383306087, 1383306085, 1383306081, 1383306040, 1383306037, 1383306034, 1383306030, 1383306020, 1383306018, 1383306016, 1383306013, 1383306009, 1383305995, 1383305993, 1383305990, 1383305975, 1383305973, 1383305970, 1383305967, 1383305951, 1383305947, 1383305944, 1383305941, 1383305939, 1383305845, 1383305813, 1383305779, 1383305741, 1383305644, 1383305642, 1383305638]} ##### 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.01778435707092285 #### 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 Fri Sep 12 11:21:57 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 (26769190) 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 : 26769190 get user id for portfolio 26769190 get sub ptf for main ptf 26769190, type 3726 and hashtags ['metal', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'Carton_brun', 'mal_croppe', 'autre_refus', 'kraft', 'papier', 'Carton_gris', 'cartonnette', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26769190 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Teint_Dans_La_Masse','plastique','Carton_brun','mal_croppe','autre_refus','kraft','papier','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26769190 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Teint_Dans_La_Masse','plastique','Carton_brun','mal_croppe','autre_refus','kraft','papier','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26769190, 'sub_port_id': 26769214, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047956, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'flou': {'main_port_id': 26769190, 'sub_port_id': 26769215, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047957, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'environnement': {'main_port_id': 26769190, 'sub_port_id': 26769216, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047958, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'plastique': {'main_port_id': 26769190, 'sub_port_id': 26769217, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047959, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'Carton_brun': {'main_port_id': 26769190, 'sub_port_id': 26769218, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047960, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'autre_refus': {'main_port_id': 26769190, 'sub_port_id': 26769220, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047961, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'kraft': {'main_port_id': 26769190, 'sub_port_id': 26769221, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047962, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'cartonnette': {'main_port_id': 26769190, 'sub_port_id': 26769222, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047963, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'Carton_gris': {'main_port_id': 26769190, 'sub_port_id': 26769223, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047964, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'mal_croppe': {'main_port_id': 26769190, 'sub_port_id': 26769224, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047965, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 26769190, 'sub_port_id': 26769225, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047966, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}, 'papier': {'main_port_id': 26769190, 'sub_port_id': 26769226, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047967, 'last_updated_at': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 10, 57, 57), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 31)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26769214 , 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=26769190 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 (26769214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769215 , 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=26769190 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 (26769215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769216 , 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=26769190 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 (26769216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769217 , 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=26769190 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 (26769217) result : ((1383374773,), (1383377505,), (1383377507,), (1383377509,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769218 , 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=26769190 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 (26769218) result : ((1383375432,), (1383375435,), (1383375437,), (1383375439,), (1383377487,), (1383377490,), (1383377492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769220 , 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=26769190 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 (26769220) result : ((1383375383,), (1383375386,), (1383375388,), (1383377448,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769221 , 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=26769190 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 (26769221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769222 , 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=26769190 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 (26769222) result : ((1383374770,), (1383375418,), (1383375420,), (1383375422,), (1383377469,), (1383377471,), (1383377473,), (1383377475,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769223 , 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=26769190 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 (26769223) result : ((1383374765,), (1383374766,), (1383375400,), (1383375403,), (1383375405,), (1383375407,), (1383377455,), (1383377457,), (1383377459,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769224 , 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=26769190 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 (26769224) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769225 , 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=26769190 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 (26769225) result : ((1383374758,), (1383374759,), (1383374760,), (1383374761,), (1383374762,), (1383374763,), (1383375318,), (1383375323,), (1383375328,), (1383375335,), (1383375340,), (1383375345,), (1383375350,), (1383375355,), (1383377446,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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 26769226 , 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=26769190 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 (26769226) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26769190) result : ((1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) 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`=26769190 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Teint_Dans_La_Masse','plastique','Carton_brun','mal_croppe','autre_refus','kraft','papier','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26769190 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Teint_Dans_La_Masse','plastique','Carton_brun','mal_croppe','autre_refus','kraft','papier','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26769190, 'sub_port_id': 26769229, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047968, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'flou': {'main_port_id': 26769190, 'sub_port_id': 26769230, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047969, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'environnement': {'main_port_id': 26769190, 'sub_port_id': 26769231, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047970, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'plastique': {'main_port_id': 26769190, 'sub_port_id': 26769232, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047971, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'Carton_brun': {'main_port_id': 26769190, 'sub_port_id': 26769233, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047972, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'autre_refus': {'main_port_id': 26769190, 'sub_port_id': 26769234, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047973, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'kraft': {'main_port_id': 26769190, 'sub_port_id': 26769235, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047974, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'cartonnette': {'main_port_id': 26769190, 'sub_port_id': 26769236, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047975, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'Carton_gris': {'main_port_id': 26769190, 'sub_port_id': 26769237, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047976, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'mal_croppe': {'main_port_id': 26769190, 'sub_port_id': 26769238, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047977, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'Teint_Dans_La_Masse': {'main_port_id': 26769190, 'sub_port_id': 26769239, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047978, 'last_updated_at': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 23, 47, 37), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}, 'papier': {'main_port_id': 26769190, 'sub_port_id': 26769240, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18047979, 'last_updated_at': datetime.datetime(2025, 9, 12, 6, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 9, 12, 6, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 23, 47, 37)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26769240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26769226 lien utilise dans velours : https://marlene.fotonower.com/velours/26769229,26769230,26769231,26769232,26769233,26769234,26769235,26769236,26769237,26769238,26769239,26769240?tags=metal,flou,environnement,plastique,Carton_brun,autre_refus,kraft,cartonnette,Carton_gris,mal_croppe,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26769190]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] map_info['map_portfolio_photo'] : {26769190: [1383306328, 1383306318, 1383306285, 1383306280, 1383306276, 1383306252, 1383306250, 1383306247, 1383306190, 1383306188, 1383306187, 1383306184, 1383306173, 1383306171, 1383306169, 1383306167, 1383306163, 1383306148, 1383306145, 1383306142, 1383306139, 1383306135, 1383306131, 1383306110, 1383306106, 1383306090, 1383306087, 1383306085, 1383306081, 1383306040, 1383306037, 1383306034, 1383306030, 1383306020, 1383306018, 1383306016, 1383306013, 1383306009, 1383305995, 1383305993, 1383305990, 1383305975, 1383305973, 1383305970, 1383305967, 1383305951, 1383305947, 1383305944, 1383305941, 1383305939, 1383305845, 1383305813, 1383305779, 1383305741, 1383305644, 1383305642, 1383305638]} final : False mtd_id 4302 list_pids : [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] Looping around the photos to save general results len do output : 1 /26769190. 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, '3706029') ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '26769190', "{'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226}", None, None, None, None, '3706029'), ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029')] time used for this insertion : 0.012846946716308594 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5257792472839355 time spend to save output : 0.013395071029663086 total time spend for step 1 : 1.5391743183135986 step2:final Fri Sep 12 11:21:59 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 (26769190) 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 26769190 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383305644,1383305642,1383305638,1383305845,1383305813,1383305779,1383305741,1383305951,1383305947,1383305944,1383305941,1383305939,1383305975,1383305973,1383305970,1383305967,1383305995,1383305993,1383305990,1383306020,1383306018,1383306016,1383306013,1383306009,1383306040,1383306037,1383306034,1383306030,1383306090,1383306087,1383306085,1383306081,1383306110,1383306106,1383306148,1383306145,1383306142,1383306139,1383306135,1383306131,1383306173,1383306171,1383306169,1383306167,1383306163,1383306190,1383306188,1383306187,1383306184,1383306252,1383306250,1383306247,1383306285,1383306280,1383306276,1383306318,1383306328); 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([26769190]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} new output for save of step final : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] map_info['map_portfolio_photo'] : {26769190: [1383306328, 1383306318, 1383306285, 1383306280, 1383306276, 1383306252, 1383306250, 1383306247, 1383306190, 1383306188, 1383306187, 1383306184, 1383306173, 1383306171, 1383306169, 1383306167, 1383306163, 1383306148, 1383306145, 1383306142, 1383306139, 1383306135, 1383306131, 1383306110, 1383306106, 1383306090, 1383306087, 1383306085, 1383306081, 1383306040, 1383306037, 1383306034, 1383306030, 1383306020, 1383306018, 1383306016, 1383306013, 1383306009, 1383305995, 1383305993, 1383305990, 1383305975, 1383305973, 1383305970, 1383305967, 1383305951, 1383305947, 1383305944, 1383305941, 1383305939, 1383305845, 1383305813, 1383305779, 1383305741, 1383305644, 1383305642, 1383305638]} final : False mtd_id 4302 list_pids : [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] Looping around the photos to save general results len do output : 5 /1383306328.Didn't retrieve data . /1383306318.Didn't retrieve data . /1383306285.Didn't retrieve data . /1383306280.Didn't retrieve data . /1383306276.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, '3706029') ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '26769190', '1383306328', '0.31568839209583904', None, None, None, None, '3706029'), ('4302', '26769190', '1383306318', '0.31568839209583904', None, None, None, None, '3706029'), ('4302', '26769190', '1383306285', '0.31568839209583904', None, None, None, None, '3706029'), ('4302', '26769190', '1383306280', '0.31568839209583904', None, None, None, None, '3706029'), ('4302', '26769190', '1383306276', '0.31568839209583904', None, None, None, None, '3706029')] time used for this insertion : 0.01187753677368164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07323622703552246 time spend to save output : 0.012417793273925781 total time spend for step 2 : 0.08565402030944824 step3:velours_tree Fri Sep 12 11:21:59 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 : {26769190: [{'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226}]} input_args_next_step : {26769190: ()} output_args : {26769190: [{'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226}]} args : 26769190 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 : ({'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26769190) 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([26769190]) 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.6233904361724854 time spend to save output : 6.175041198730469e-05 total time spend for step 3 : 0.6234521865844727 step4:send_mail_cod Fri Sep 12 11:22:00 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 : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} input_args_next_step : {1383306328: ()} output_args : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} args : 1383306328 depend.output_id : 0 input_args_next_step : {1383306328: ('0.31568839209583904',), 1383306318: ()} output_args : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} args : 1383306318 depend.output_id : 0 input_args_next_step : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ()} output_args : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} args : 1383306285 depend.output_id : 0 input_args_next_step : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ()} output_args : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} args : 1383306280 depend.output_id : 0 input_args_next_step : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ()} output_args : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',)} args : 1383306276 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 : {26769190: [{'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226}]} input_args_next_step : {1383306328: ('0.31568839209583904',), 1383306318: ('0.31568839209583904',), 1383306285: ('0.31568839209583904',), 1383306280: ('0.31568839209583904',), 1383306276: ('0.31568839209583904',), 26769190: ()} output_args : {26769190: [{'metal': 26769214, 'flou': 26769215, 'environnement': 26769216, 'plastique': 26769217, 'Carton_brun': 26769218, 'autre_refus': 26769220, 'kraft': 26769221, 'cartonnette': 26769222, 'Carton_gris': 26769223, 'mal_croppe': 26769224, 'Teint_Dans_La_Masse': 26769225, 'papier': 26769226}]} args : 26769190 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 :6, first value : ('0.31568839209583904',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26769190) 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 (1383306328,1383306318,1383306285,1383306280,1383306276) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383306276 begin to download photo : 1383306285 begin to download photo : 1383306328 download finish for photo 1383306285 begin to download photo : 1383306318 download finish for photo 1383306328 download finish for photo 1383306276 begin to download photo : 1383306280 download finish for photo 1383306280 download finish for photo 1383306318 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette267692141757668920/ imagette267692151757668920/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P26769190_12-09-2025_11_22_00.pdf 26769214 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=26769214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267692141757668920 26769215 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=26769215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267692151757668920 26769217 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=26769217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383374773: '1757666771_636178_1383306163_c578d2a3be3785de10dc8574720db113_rle_crop_3956177215_0.png', 1383377505: '1757667371_672933_1383305951_06c14515969d12b01592fc65601fca8a_rle_crop_3956224362_0.png', 1383377507: '1757667371_672933_1383305642_a2c40c7c3dfabbee687a8be3e9b91fad_rle_crop_3956226852_0.png', 1383377509: '1757667371_672933_1383305638_944033a734af2fa7fa54cc6dee33672d_rle_crop_3956227221_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/9a4e61b1a4d375446014d38ad8e698f6_25813771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/72ed5e41a275e98008f6e9c9bcad46b9_13674056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/ac2a72615d00c019fa64deb6234251b4_46044974.png change filename to text .imagette267692171757668920/ imagette267692171757668920/1757667371_672933_1383305951_06c14515969d12b01592fc65601fca8a_rle_crop_3956224362_0.png.png imagette267692171757668920/1757666771_636178_1383306163_c578d2a3be3785de10dc8574720db113_rle_crop_3956177215_0.png.png imagette267692171757668920/1757667371_672933_1383305638_944033a734af2fa7fa54cc6dee33672d_rle_crop_3956227221_0.png.png imagette267692171757668920/1757667371_672933_1383305642_a2c40c7c3dfabbee687a8be3e9b91fad_rle_crop_3956226852_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/65cb837a0960f3243b42048ef9308d25_55049436.png imagette267692171757668920 26769220 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=26769220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383375383: '1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187457_0.png', 1383375386: '1757667070_658010_1383306013_655ff527d39f9971307b8d47a3877e96_rle_crop_3956187580_0.png', 1383375388: '1757667070_658010_1383305967_36409b0b72d49d453442e75eaa880ba8_rle_crop_3956187657_0.png', 1383377448: '1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224375_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/3693cbebde24cfe8d4f3efa565306084_45903969.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/a8fe3e4ee3e67a5e03426290d12ad28c_42526537.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/5456a127dd299344df6ffa15a4358bc0_95023875.png change filename to text .imagette267692201757668920/ imagette267692201757668920/1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187457_0.png.png imagette267692201757668920/1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224375_0.png.png imagette267692201757668920/1757667070_658010_1383306013_655ff527d39f9971307b8d47a3877e96_rle_crop_3956187580_0.png.png imagette267692201757668920/1757667070_658010_1383305967_36409b0b72d49d453442e75eaa880ba8_rle_crop_3956187657_0.png.png imagette267692211757668921/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/fa408f6facb58583dd04bcc874852f24_90148886.png imagette267692201757668920 26769221 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=26769221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267692211757668921 26769222 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=26769222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383374770: '1757666771_636178_1383306171_600b88ff1889044207c5a01cfe8b25ea_rle_crop_3956177133_0.png', 1383375418: '1757667070_658010_1383306087_563431b834ef0db386f5dc3557f0b0d6_rle_crop_3956187445_0.png', 1383375420: '1757667070_658010_1383305990_f85d31961856bcaeb4b470f1ef4d1c22_rle_crop_3956187607_0.png', 1383375422: '1757667070_658010_1383305970_2dab11f2726554c705f646ee38b06187_rle_crop_3956187642_0.png', 1383377469: '1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224374_0.png', 1383377471: '1757667371_672933_1383305944_46fc2a00dc17de8cf9a4f5acb41cbc13_rle_crop_3956224391_0.png', 1383377473: '1757667371_672933_1383305944_46fc2a00dc17de8cf9a4f5acb41cbc13_rle_crop_3956224395_0.png', 1383377475: '1757667371_672933_1383305845_a37bc5103127b12d8a9d897c71b9aba8_rle_crop_3956224731_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/521570745c8ebd068621700cd8a3329b_38024478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/267117298bf80054c2c702d59133f68d_91715349.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/52ff018d77b2594aa702ea4d29ee8618_14857014.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/3d0c6386323238018eb975deeb386a93_91580701.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/0126f485b368a98087def324f02304aa_89931994.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/bc4a838f1e72e9ef22cfeb129cd8c6be_29576590.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/76d7e994cbd0dbc2468d543b29a5d72d_62267577.png change filename to text .imagette267692221757668921/ imagette267692221757668921/1757666771_636178_1383306171_600b88ff1889044207c5a01cfe8b25ea_rle_crop_3956177133_0.png.png imagette267692221757668921/1757667371_672933_1383305944_46fc2a00dc17de8cf9a4f5acb41cbc13_rle_crop_3956224395_0.png.png imagette267692221757668921/1757667070_658010_1383306087_563431b834ef0db386f5dc3557f0b0d6_rle_crop_3956187445_0.png.png imagette267692221757668921/1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224374_0.png.png imagette267692221757668921/1757667371_672933_1383305845_a37bc5103127b12d8a9d897c71b9aba8_rle_crop_3956224731_0.png.png imagette267692221757668921/1757667371_672933_1383305944_46fc2a00dc17de8cf9a4f5acb41cbc13_rle_crop_3956224391_0.png.png imagette267692221757668921/1757667070_658010_1383305990_f85d31961856bcaeb4b470f1ef4d1c22_rle_crop_3956187607_0.png.png imagette267692221757668921/1757667070_658010_1383305970_2dab11f2726554c705f646ee38b06187_rle_crop_3956187642_0.png.png imagette267692241757668921/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/4b8e699e479abb6f360a1dfd36590b84_29822335.png imagette267692221757668921 26769224 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=26769224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267692241757668921 26769218 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=26769218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383375432: '1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187474_0.png', 1383375435: '1757667070_658010_1383306034_ee5a191c203402c5bb00c3dd2e578140_rle_crop_3956187509_0.png', 1383375437: '1757667070_658010_1383305970_2dab11f2726554c705f646ee38b06187_rle_crop_3956187647_0.png', 1383375439: '1757667070_658010_1383305967_36409b0b72d49d453442e75eaa880ba8_rle_crop_3956187660_0.png', 1383377487: '1757667371_672933_1383305951_06c14515969d12b01592fc65601fca8a_rle_crop_3956224357_0.png', 1383377490: '1757667371_672933_1383305941_14dba591605a2957f9510951eef85731_rle_crop_3956224705_0.png', 1383377492: '1757667371_672933_1383305779_aa4f2e4fcb454cebefb14987423769bf_rle_crop_3956224752_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/56e307d2fe155a7085e24efadcd42d0d_39795105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/58bad4dfe4dceb2622fcf7c6ccd42020_40311670.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/936304dec120dc2e46e26c1d5058f136_97637010.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/96d4504be3ace1475c3cd82b1ec397f9_87180187.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/20c6da8c4c4c609454a0d33a26913387_30435203.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/79a061f64445c94afc7996457e838cc6_49494924.png change filename to text .imagette267692181757668921/ imagette267692181757668921/1757667371_672933_1383305951_06c14515969d12b01592fc65601fca8a_rle_crop_3956224357_0.png.png imagette267692181757668921/1757667070_658010_1383305967_36409b0b72d49d453442e75eaa880ba8_rle_crop_3956187660_0.png.png imagette267692181757668921/1757667070_658010_1383306034_ee5a191c203402c5bb00c3dd2e578140_rle_crop_3956187509_0.png.png imagette267692181757668921/1757667371_672933_1383305941_14dba591605a2957f9510951eef85731_rle_crop_3956224705_0.png.png imagette267692181757668921/1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187474_0.png.png imagette267692181757668921/1757667371_672933_1383305779_aa4f2e4fcb454cebefb14987423769bf_rle_crop_3956224752_0.png.png imagette267692181757668921/1757667070_658010_1383305970_2dab11f2726554c705f646ee38b06187_rle_crop_3956187647_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/07c6327fa76ea87962094767f20ad7c9_48666101.png imagette267692181757668921 26769223 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=26769223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383374765: '1757666771_636178_1383306247_0c8b3847f38fc5f893ea14f8041e2f92_rle_crop_3956177033_0.png', 1383374766: '1757666771_636178_1383306135_85d6551650a8f66400f5a45dbc2bcfc4_rle_crop_3956177319_0.png', 1383375400: '1757667070_658010_1383306020_a88565b048fab484b76ee27b5f5b7e7d_rle_crop_3956187539_0.png', 1383375403: '1757667070_658010_1383306016_3b81ddc07e9b89e331060651c02a01b9_rle_crop_3956187565_0.png', 1383375405: '1757667070_658010_1383306013_655ff527d39f9971307b8d47a3877e96_rle_crop_3956187583_0.png', 1383375407: '1757667070_658010_1383306009_a51157228e2be291eb1ca10f35546876_rle_crop_3956187590_0.png', 1383377455: '1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224370_0.png', 1383377457: '1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224376_0.png', 1383377459: '1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224379_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/37956b090ab53dc10c1353e36f6a56d0_71866459.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/5f19d920ad9b0146e1da77ce10d2553a_92659045.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/90d5c3d3a9d195822f7f77ac362e8cee_23080751.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/40c1cbfabb56a48caeb0a8fad8cb9f66_82723495.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/5ada30996464efd89f41a36bd5c23878_75937570.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/faa08363107c510a872a1a9c16546723_49974398.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/32988ebae9853b9a34c276d3e36e3703_34261229.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/16d451b0070ada6e7b397f561a5595ff_67129639.png change filename to text .imagette267692231757668922/ imagette267692231757668922/1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224376_0.png.png imagette267692231757668922/1757667070_658010_1383306016_3b81ddc07e9b89e331060651c02a01b9_rle_crop_3956187565_0.png.png imagette267692231757668922/1757667070_658010_1383306013_655ff527d39f9971307b8d47a3877e96_rle_crop_3956187583_0.png.png imagette267692231757668922/1757666771_636178_1383306247_0c8b3847f38fc5f893ea14f8041e2f92_rle_crop_3956177033_0.png.png imagette267692231757668922/1757666771_636178_1383306135_85d6551650a8f66400f5a45dbc2bcfc4_rle_crop_3956177319_0.png.png imagette267692231757668922/1757667070_658010_1383306009_a51157228e2be291eb1ca10f35546876_rle_crop_3956187590_0.png.png imagette267692231757668922/1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224379_0.png.png imagette267692231757668922/1757667070_658010_1383306020_a88565b048fab484b76ee27b5f5b7e7d_rle_crop_3956187539_0.png.png imagette267692231757668922/1757667371_672933_1383305947_f77e1e00e2158d34a0e27dba101859c9_rle_crop_3956224370_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/3df66659bdee69349c8de6534b6abda5_27967014.png imagette267692231757668922 26769225 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=26769225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383374758: '1757666771_636178_1383306169_fc3534a5aa33dc9df1e4bdff511cc612_rle_crop_3956177150_0.png', 1383374759: '1757666771_636178_1383306167_ea51824a9e615c892e0d1edb82e4d7f0_rle_crop_3956177194_0.png', 1383374760: '1757666771_636178_1383306139_c09a83b385aab5982da38bde7d9ed6b7_rle_crop_3956177307_0.png', 1383374761: '1757666771_636178_1383306135_85d6551650a8f66400f5a45dbc2bcfc4_rle_crop_3956177321_0.png', 1383374762: '1757666771_636178_1383306131_59f3385c561b82d943ae7f0b380eaf60_rle_crop_3956177348_0.png', 1383374763: '1757666771_636178_1383306110_9e71813f73e37a3558aa9fe9d5ec7ea5_rle_crop_3956177357_0.png', 1383375318: '1757667070_658010_1383306090_88d61884ebd4bb3531c75642ab9a8c1a_rle_crop_3956187431_0.png', 1383375323: '1757667070_658010_1383306087_563431b834ef0db386f5dc3557f0b0d6_rle_crop_3956187443_0.png', 1383375328: '1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187465_0.png', 1383375335: '1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187463_0.png', 1383375340: '1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187475_0.png', 1383375345: '1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187476_0.png', 1383375350: '1757667070_658010_1383306018_8870cb2b73da527daa96ed55722ee989_rle_crop_3956187555_0.png', 1383375355: '1757667070_658010_1383306016_3b81ddc07e9b89e331060651c02a01b9_rle_crop_3956187570_0.png', 1383377446: '1757667371_672933_1383305941_14dba591605a2957f9510951eef85731_rle_crop_3956224711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/6e1bfe059bd45e778e82c49cb0b4c549_9116585.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/f605e30c231d41ea9d709847f2854003_83131551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/97def963a50c112797af786c0e1b8a1d_32375286.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/b22cb657c8f207d3ebcc2168a6b33ad8_37014327.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/e061c8c385d8e49ad04790a92791b93f_11236507.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/7ceee8c1c377d41cbd948b71015966b3_45628501.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/fffbb3d5d2240d8bfd28541fbbd994a7_88703336.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/28f6a378bdf973b7debb1ae4998ae3ce_74119957.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/23689b988d3fcc9c2d531ec0945ec913_28703413.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/9d3cd6118acae43b065e17696e593cf8_67779579.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/89e09809e59fc28159e9d585f7f165f8_98455658.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/32e52dda0f747abcf45cedf6d2721bc6_44763480.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/ce586fd7644eb551f1ff8ee6251a77e8_36284743.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/6042ebb09040102b1f93329b5ba9e2d2_270880.png change filename to text .imagette267692251757668923/ imagette267692251757668923/1757666771_636178_1383306110_9e71813f73e37a3558aa9fe9d5ec7ea5_rle_crop_3956177357_0.png.png imagette267692251757668923/1757667070_658010_1383306016_3b81ddc07e9b89e331060651c02a01b9_rle_crop_3956187570_0.png.png imagette267692251757668923/1757666771_636178_1383306169_fc3534a5aa33dc9df1e4bdff511cc612_rle_crop_3956177150_0.png.png imagette267692251757668923/1757667371_672933_1383305941_14dba591605a2957f9510951eef85731_rle_crop_3956224711_0.png.png imagette267692251757668923/1757667070_658010_1383306087_563431b834ef0db386f5dc3557f0b0d6_rle_crop_3956187443_0.png.png imagette267692251757668923/1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187465_0.png.png imagette267692251757668923/1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187476_0.png.png imagette267692251757668923/1757667070_658010_1383306018_8870cb2b73da527daa96ed55722ee989_rle_crop_3956187555_0.png.png imagette267692251757668923/1757666771_636178_1383306135_85d6551650a8f66400f5a45dbc2bcfc4_rle_crop_3956177321_0.png.png imagette267692251757668923/1757666771_636178_1383306167_ea51824a9e615c892e0d1edb82e4d7f0_rle_crop_3956177194_0.png.png imagette267692251757668923/1757666771_636178_1383306139_c09a83b385aab5982da38bde7d9ed6b7_rle_crop_3956177307_0.png.png imagette267692251757668923/1757667070_658010_1383306090_88d61884ebd4bb3531c75642ab9a8c1a_rle_crop_3956187431_0.png.png imagette267692251757668923/1757667070_658010_1383306085_3c479e22f349311af433e1bf2c701fdf_rle_crop_3956187463_0.png.png imagette267692251757668923/1757666771_636178_1383306131_59f3385c561b82d943ae7f0b380eaf60_rle_crop_3956177348_0.png.png imagette267692251757668923/1757667070_658010_1383306081_30b8cb014688b0b5bf85c3e931ff5433_rle_crop_3956187475_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/12/277462a494c64e9a18058076fb9e13b0_92131482.png imagette267692251757668923 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26769190 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26769229,26769230,26769231,26769232,26769233,26769234,26769235,26769236,26769237,26769238,26769239,26769240?tags=metal,flou,environnement,plastique,Carton_brun,autre_refus,kraft,cartonnette,Carton_gris,mal_croppe,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1383306328] : ('0.31568839209583904',) no score found for photo 1383306328 We are sending mail with results at report@fotonower.com args[1383306318] : ('0.31568839209583904',) no score found for photo 1383306318 We are sending mail with results at report@fotonower.com args[1383306285] : ('0.31568839209583904',) no score found for photo 1383306285 We are sending mail with results at report@fotonower.com args[1383306280] : ('0.31568839209583904',) no score found for photo 1383306280 We are sending mail with results at report@fotonower.com args[1383306276] : ('0.31568839209583904',) no score found for photo 1383306276 We are sending mail with results at report@fotonower.com refus_total : 0.31568839209583904 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=26769190 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_P26769190_12-09-2025_11_22_00.pdf results_Auto_P26769190_12-09-2025_11_22_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26769190_12-09-2025_11_22_00.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','26769190','results_Auto_P26769190_12-09-2025_11_22_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26769190_12-09-2025_11_22_00.pdf','pdf','','0.19','0.31568839209583904') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26769190]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] map_info['map_portfolio_photo'] : {26769190: [1383306328, 1383306318, 1383306285, 1383306280, 1383306276, 1383306252, 1383306250, 1383306247, 1383306190, 1383306188, 1383306187, 1383306184, 1383306173, 1383306171, 1383306169, 1383306167, 1383306163, 1383306148, 1383306145, 1383306142, 1383306139, 1383306135, 1383306131, 1383306110, 1383306106, 1383306090, 1383306087, 1383306085, 1383306081, 1383306040, 1383306037, 1383306034, 1383306030, 1383306020, 1383306018, 1383306016, 1383306013, 1383306009, 1383305995, 1383305993, 1383305990, 1383305975, 1383305973, 1383305970, 1383305967, 1383305951, 1383305947, 1383305944, 1383305941, 1383305939, 1383305845, 1383305813, 1383305779, 1383305741, 1383305644, 1383305642, 1383305638]} final : False mtd_id 4302 list_pids : [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] 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, '3706029') ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '26769190', '1383306328', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029')] time used for this insertion : 0.012207269668579102 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.102402925491333 time spend to save output : 0.012427091598510742 total time spend for step 4 : 5.114830017089844 step5:split_time_score Fri Sep 12 11:22:05 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 : ['26769190'] 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 : [('26769190',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26769190) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383306328: {'path': 'temp/1757668920_2114166_1383306328_88dc36af5affcd184d8ea1f42a4151c9.jpg', 'extension': 'jpg'}, 1383306276: {'path': 'temp/1757668920_2114166_1383306276_21985a8c7ef221dfd0fec81101fc76cf.jpg', 'extension': 'jpg'}, 1383306280: {'path': 'temp/1757668920_2114166_1383306280_66de1e00b7fddac2d259ec5abc5cce2d.jpg', 'extension': 'jpg'}, 1383306285: {'path': 'temp/1757668920_2114166_1383306285_d80e8125914d9626a85988d6538a8fdf.jpg', 'extension': 'jpg'}, 1383306318: {'path': 'temp/1757668920_2114166_1383306318_7df1cebeacc0cfd38465789d3971d00f.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 = 26769190; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 26769190 group by h (('23', 57),) 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=26769190 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 (26769190) 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 (26769190) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11092025 26769190 Nombre de photos uploadées : 57 / 23040 (0%) 11092025 26769190 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 11092025 26769190 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1383305644, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/9b5ee5dae82b300f97d0c17901cbab83.jpg', 'username': None, 'uploaded_at': 1757627168, 'text': 'image_11092025_23_45_25_10136.jpg'}, {'photo_id': 1383305642, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/a2c40c7c3dfabbee687a8be3e9b91fad.jpg', 'username': None, 'uploaded_at': 1757627168, 'text': 'image_11092025_23_45_35_10133.jpg'}, {'photo_id': 1383305638, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/944033a734af2fa7fa54cc6dee33672d.jpg', 'username': None, 'uploaded_at': 1757627168, 'text': 'image_11092025_23_45_45_10138.jpg'}, {'photo_id': 1383305845, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/a37bc5103127b12d8a9d897c71b9aba8.jpg', 'username': None, 'uploaded_at': 1757627228, 'text': 'image_11092025_23_45_54_9127.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027637481689453125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26769190, '2025-09-11' ) 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-09-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2268717,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.32490968704223633 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= 2268717 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26735086, 'dashboard_result_id': 15059273, '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_P26735086_12-09-2025_05_34_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26735395, 'dashboard_result_id': 15059274, '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_P26735395_12-09-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26735834, 'dashboard_result_id': 15059275, '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_P26735834_12-09-2025_05_36_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26736224, 'dashboard_result_id': 15059276, '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_P26736224_12-09-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26737263, 'dashboard_result_id': 15059277, '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_P26737263_12-09-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26737663, 'dashboard_result_id': 15059278, '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_P26737663_12-09-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26738034, 'dashboard_result_id': 15059279, '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_P26738034_12-09-2025_05_40_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26738546, 'dashboard_result_id': 15059280, '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_P26738546_12-09-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26739074, 'dashboard_result_id': 15059281, '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_P26739074_12-09-2025_05_42_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26739557, 'dashboard_result_id': 15059282, '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_P26739557_12-09-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26739949, 'dashboard_result_id': 15059283, '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_P26739949_12-09-2025_05_43_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26740580, 'dashboard_result_id': 15059284, '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_P26740580_12-09-2025_05_44_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26741023, 'dashboard_result_id': 15059285, '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_P26741023_12-09-2025_05_44_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26741502, 'dashboard_result_id': 15059286, '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_P26741502_12-09-2025_05_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26741873, 'dashboard_result_id': 15059287, '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_P26741873_12-09-2025_05_46_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26743183, 'dashboard_result_id': 15059288, '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_P26743183_12-09-2025_05_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26743522, 'dashboard_result_id': 15059289, '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_P26743522_12-09-2025_05_51_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26743928, 'dashboard_result_id': 15059290, '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_P26743928_12-09-2025_05_52_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26744290, 'dashboard_result_id': 15059291, '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_P26744290_12-09-2025_05_52_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26744795, 'dashboard_result_id': 15059292, '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_P26744795_12-09-2025_05_53_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26745346, 'dashboard_result_id': 15059293, '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_P26745346_12-09-2025_05_54_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745367, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26745732, 'dashboard_result_id': 15059294, '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_P26745732_12-09-2025_05_54_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745768, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26746203, 'dashboard_result_id': 15059295, '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_P26746203_12-09-2025_05_55_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746239, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26746606, 'dashboard_result_id': 15059296, '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_P26746606_12-09-2025_05_56_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746651, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26747451, 'dashboard_result_id': 15059297, '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_P26747451_12-09-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26747467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26747468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26747469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26747470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26747471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26747472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26747473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26747474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26747475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26747476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26747477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26747478, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26748393, 'dashboard_result_id': 15059298, '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_P26748393_12-09-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26748436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26748437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26748438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26748439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26748440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26748441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26748442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26748443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26748444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26748445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26748446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26748447, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26749022, 'dashboard_result_id': 15059299, '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_P26749022_12-09-2025_06_00_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749094, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26749608, 'dashboard_result_id': 15059300, '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_P26749608_12-09-2025_06_00_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749640, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26750734, 'dashboard_result_id': 15059301, '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_P26750734_12-09-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26750772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26750773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26750774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26750775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26750776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26750777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26750778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26750779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26750780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26750781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26750782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26750783, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26751468, 'dashboard_result_id': 15059302, '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_P26751468_12-09-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26751485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26751486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26751487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26751488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26751489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26751490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26751491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26751492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26751493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26751494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26751495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26751496, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26753265, 'dashboard_result_id': 15059303, '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_P26753265_12-09-2025_06_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26753298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26753299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26753300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26753301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26753302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26753303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26753304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26753305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26753306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26753307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26753308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26753309, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26754537, 'dashboard_result_id': 15059304, '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_P26754537_12-09-2025_06_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754583, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26754794, 'dashboard_result_id': 15059305, '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_P26754794_12-09-2025_06_05_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754837, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26755419, 'dashboard_result_id': 15059306, '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_P26755419_12-09-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26755430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26755431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26755432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26755433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26755434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26755435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26755436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26755437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26755438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26755439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26755440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26755441, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26756067, 'dashboard_result_id': 15059307, '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_P26756067_12-09-2025_06_06_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756162, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26756793, 'dashboard_result_id': 15059308, '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_P26756793_12-09-2025_06_16_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756850, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26757660, 'dashboard_result_id': 15059309, '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_P26757660_12-09-2025_06_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26757678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26757679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26757680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26757681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26757682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26757683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26757684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26757685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26757686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26757687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26757688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26757689, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26758182, 'dashboard_result_id': 15059310, '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_P26758182_12-09-2025_06_18_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26758204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26758205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758216, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26758810, 'dashboard_result_id': 15059311, '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_P26758810_12-09-2025_06_18_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26758830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26758834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758842, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26768077, 'dashboard_result_id': 15059312, '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_P26768077_11-09-2025_23_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26768125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26768126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26768127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26768128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26768129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26768130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26768131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26768132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26768133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26768134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26768135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26768136, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26768593, 'dashboard_result_id': 15059313, '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_P26768593_11-09-2025_23_41_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26768620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26768621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26768622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26768623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26768624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26768625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26768626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26768627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26768628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26768629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26768630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26768631, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26769056, 'dashboard_result_id': 15059314, '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_P26769056_12-09-2025_11_17_51.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26769061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26769062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26769063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26769064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26769065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26769066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26769067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26769068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26769069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26769070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26769071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26769072, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2281967, 'mtr_portfolio_id': 26769190, 'dashboard_result_id': 15059315, '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_P26769190_12-09-2025_10_57_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26769214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26769215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26769216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26769217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26769218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26769220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26769221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26769222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26769223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26769224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26769225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26769226, '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 = 26735086 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': 3705987, 'mtr_portfolio_id': 26735086, 'created_at': datetime.datetime(2025, 9, 12, 5, 34, 29), 'result': '0.06353463721231627', 'result_long': None, 'result_double': None}] Qualite : 0.06353463721231627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735086_12-09-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735086 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_P26735086_12-09-2025_05_34_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, 'pht': 3726}}" where mtr_portfolio_id = 26735086 and dashboard_run_id = 2283993 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`=26735086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059273, 0.06353463721231627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735086_12-09-2025_05_34_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, '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 = 26735395 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': 3705988, 'mtr_portfolio_id': 26735395, 'created_at': datetime.datetime(2025, 9, 12, 5, 35, 57), 'result': '0.0697973737177141', 'result_long': None, 'result_double': None}] Qualite : 0.0697973737177141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735395_12-09-2025_05_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735395 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_P26735395_12-09-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, 'pht': 3726}}" where mtr_portfolio_id = 26735395 and dashboard_run_id = 2283993 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`=26735395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059274, 0.0697973737177141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735395_12-09-2025_05_36_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, '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 = 26735834 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': 3705989, 'mtr_portfolio_id': 26735834, 'created_at': datetime.datetime(2025, 9, 12, 5, 36, 29), 'result': '0.06548156566856073', 'result_long': None, 'result_double': None}] Qualite : 0.06548156566856073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735834_12-09-2025_05_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735834 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_P26735834_12-09-2025_05_36_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, 'pht': 3726}}" where mtr_portfolio_id = 26735834 and dashboard_run_id = 2283993 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`=26735834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059275, 0.06548156566856073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735834_12-09-2025_05_36_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, '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 = 26736224 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': 3705990, 'mtr_portfolio_id': 26736224, 'created_at': datetime.datetime(2025, 9, 12, 5, 38, 28), 'result': '0.07705090525339167', 'result_long': None, 'result_double': None}] Qualite : 0.07705090525339167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26736224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26736224_12-09-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26736224 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_P26736224_12-09-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, 'pht': 3726}}" where mtr_portfolio_id = 26736224 and dashboard_run_id = 2283993 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`=26736224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059276, 0.07705090525339167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26736224_12-09-2025_05_38_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, '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 = 26737263 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': 3705991, 'mtr_portfolio_id': 26737263, 'created_at': datetime.datetime(2025, 9, 12, 5, 39, 30), 'result': '0.08766231374296815', 'result_long': None, 'result_double': None}] Qualite : 0.08766231374296815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26737263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737263_12-09-2025_05_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26737263 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_P26737263_12-09-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, 'pht': 3726}}" where mtr_portfolio_id = 26737263 and dashboard_run_id = 2283993 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`=26737263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059277, 0.08766231374296815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737263_12-09-2025_05_39_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, '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 = 26737663 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': 3705992, 'mtr_portfolio_id': 26737663, 'created_at': datetime.datetime(2025, 9, 12, 5, 39, 59), 'result': '0.07541063006684272', 'result_long': None, 'result_double': None}] Qualite : 0.07541063006684272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26737663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737663_12-09-2025_05_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26737663 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_P26737663_12-09-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, 'pht': 3726}}" where mtr_portfolio_id = 26737663 and dashboard_run_id = 2283993 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`=26737663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059278, 0.07541063006684272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737663_12-09-2025_05_40_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, '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 = 26738034 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': 3705993, 'mtr_portfolio_id': 26738034, 'created_at': datetime.datetime(2025, 9, 12, 5, 40, 29), 'result': '0.04973152555026351', 'result_long': None, 'result_double': None}] Qualite : 0.04973152555026351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26738034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738034_12-09-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26738034 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_P26738034_12-09-2025_05_40_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, 'pht': 3726}}" where mtr_portfolio_id = 26738034 and dashboard_run_id = 2283993 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`=26738034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059279, 0.04973152555026351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738034_12-09-2025_05_40_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, '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 = 26738546 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': 3705994, 'mtr_portfolio_id': 26738546, 'created_at': datetime.datetime(2025, 9, 12, 5, 41, 30), 'result': '0.06591712506064186', 'result_long': None, 'result_double': None}] Qualite : 0.06591712506064186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26738546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738546_12-09-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26738546 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_P26738546_12-09-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, 'pht': 3726}}" where mtr_portfolio_id = 26738546 and dashboard_run_id = 2283993 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`=26738546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059280, 0.06591712506064186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738546_12-09-2025_05_41_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, '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 = 26739074 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': 3705995, 'mtr_portfolio_id': 26739074, 'created_at': datetime.datetime(2025, 9, 12, 5, 41, 58), 'result': '0.075331617261646', 'result_long': None, 'result_double': None}] Qualite : 0.075331617261646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739074_12-09-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739074 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_P26739074_12-09-2025_05_42_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, 'pht': 3726}}" where mtr_portfolio_id = 26739074 and dashboard_run_id = 2283993 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`=26739074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059281, 0.075331617261646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739074_12-09-2025_05_42_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, '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 = 26739557 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': 3705996, 'mtr_portfolio_id': 26739557, 'created_at': datetime.datetime(2025, 9, 12, 5, 42, 29), 'result': '0.05369697338449529', 'result_long': None, 'result_double': None}] Qualite : 0.05369697338449529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739557_12-09-2025_05_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739557 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_P26739557_12-09-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, 'pht': 3726}}" where mtr_portfolio_id = 26739557 and dashboard_run_id = 2283993 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`=26739557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059282, 0.05369697338449529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739557_12-09-2025_05_42_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, '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 = 26739949 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': 3705997, 'mtr_portfolio_id': 26739949, 'created_at': datetime.datetime(2025, 9, 12, 5, 43, 27), 'result': '0.05380399396258448', 'result_long': None, 'result_double': None}] Qualite : 0.05380399396258448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739949_12-09-2025_05_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739949 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_P26739949_12-09-2025_05_43_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, 'pht': 3726}}" where mtr_portfolio_id = 26739949 and dashboard_run_id = 2283993 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`=26739949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059283, 0.05380399396258448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739949_12-09-2025_05_43_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, '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 = 26740580 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': 3705998, 'mtr_portfolio_id': 26740580, 'created_at': datetime.datetime(2025, 9, 12, 5, 44, 1), 'result': '0.05082739095227996', 'result_long': None, 'result_double': None}] Qualite : 0.05082739095227996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26740580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26740580_12-09-2025_05_44_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26740580 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_P26740580_12-09-2025_05_44_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, 'pht': 3726}}" where mtr_portfolio_id = 26740580 and dashboard_run_id = 2283993 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`=26740580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059284, 0.05082739095227996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26740580_12-09-2025_05_44_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, '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 = 26741023 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': 3705999, 'mtr_portfolio_id': 26741023, 'created_at': datetime.datetime(2025, 9, 12, 5, 44, 29), 'result': '0.07019873337060782', 'result_long': None, 'result_double': None}] Qualite : 0.07019873337060782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741023_12-09-2025_05_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741023 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_P26741023_12-09-2025_05_44_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, 'pht': 3726}}" where mtr_portfolio_id = 26741023 and dashboard_run_id = 2283993 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`=26741023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059285, 0.07019873337060782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741023_12-09-2025_05_44_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, '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 = 26741502 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': 3706000, 'mtr_portfolio_id': 26741502, 'created_at': datetime.datetime(2025, 9, 12, 5, 45, 27), 'result': '0.06709637877485654', 'result_long': None, 'result_double': None}] Qualite : 0.06709637877485654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741502_12-09-2025_05_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741502 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_P26741502_12-09-2025_05_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, 'pht': 3726}}" where mtr_portfolio_id = 26741502 and dashboard_run_id = 2283993 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`=26741502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059286, 0.06709637877485654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741502_12-09-2025_05_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, '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 = 26741873 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': 3706001, 'mtr_portfolio_id': 26741873, 'created_at': datetime.datetime(2025, 9, 12, 5, 45, 58), 'result': '0.06251679095806', 'result_long': None, 'result_double': None}] Qualite : 0.06251679095806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741873_12-09-2025_05_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741873 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_P26741873_12-09-2025_05_46_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, 'pht': 3726}}" where mtr_portfolio_id = 26741873 and dashboard_run_id = 2283993 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`=26741873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059287, 0.06251679095806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741873_12-09-2025_05_46_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, '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 = 26743183 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': 3706002, 'mtr_portfolio_id': 26743183, 'created_at': datetime.datetime(2025, 9, 12, 5, 46, 28), 'result': '0.07277648308829932', 'result_long': None, 'result_double': None}] Qualite : 0.07277648308829932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743183_12-09-2025_05_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743183 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_P26743183_12-09-2025_05_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, 'pht': 3726}}" where mtr_portfolio_id = 26743183 and dashboard_run_id = 2283993 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`=26743183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059288, 0.07277648308829932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743183_12-09-2025_05_46_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, '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 = 26743522 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': 3706003, 'mtr_portfolio_id': 26743522, 'created_at': datetime.datetime(2025, 9, 12, 5, 51, 26), 'result': '0.09065951838393031', 'result_long': None, 'result_double': None}] Qualite : 0.09065951838393031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743522_12-09-2025_05_51_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743522 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_P26743522_12-09-2025_05_51_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, 'pht': 3726}}" where mtr_portfolio_id = 26743522 and dashboard_run_id = 2283993 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`=26743522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059289, 0.09065951838393031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743522_12-09-2025_05_51_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, '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 = 26743928 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': 3706004, 'mtr_portfolio_id': 26743928, 'created_at': datetime.datetime(2025, 9, 12, 5, 51, 58), 'result': '0.06479810324497016', 'result_long': None, 'result_double': None}] Qualite : 0.06479810324497016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743928_12-09-2025_05_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743928 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_P26743928_12-09-2025_05_52_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, 'pht': 3726}}" where mtr_portfolio_id = 26743928 and dashboard_run_id = 2283993 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`=26743928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059290, 0.06479810324497016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743928_12-09-2025_05_52_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, '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 = 26744290 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': 3706005, 'mtr_portfolio_id': 26744290, 'created_at': datetime.datetime(2025, 9, 12, 5, 52, 31), 'result': '0.05518934820655197', 'result_long': None, 'result_double': None}] Qualite : 0.05518934820655197 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26744290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744290_12-09-2025_05_52_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26744290 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_P26744290_12-09-2025_05_52_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, 'pht': 3726}}" where mtr_portfolio_id = 26744290 and dashboard_run_id = 2283993 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`=26744290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059291, 0.05518934820655197, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744290_12-09-2025_05_52_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, '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 = 26744795 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': 3706006, 'mtr_portfolio_id': 26744795, 'created_at': datetime.datetime(2025, 9, 12, 5, 53, 29), 'result': '0.07318374239696968', 'result_long': None, 'result_double': None}] Qualite : 0.07318374239696968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26744795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_12-09-2025_05_53_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26744795 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_P26744795_12-09-2025_05_53_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, 'pht': 3726}}" where mtr_portfolio_id = 26744795 and dashboard_run_id = 2283993 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`=26744795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059292, 0.07318374239696968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_12-09-2025_05_53_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, '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 = 26745346 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': 3706007, 'mtr_portfolio_id': 26745346, 'created_at': datetime.datetime(2025, 9, 12, 5, 54), 'result': '0.05556219766187698', 'result_long': None, 'result_double': None}] Qualite : 0.05556219766187698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26745346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26745346_12-09-2025_05_54_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26745346 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_P26745346_12-09-2025_05_54_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745367, 'pht': 3726}}" where mtr_portfolio_id = 26745346 and dashboard_run_id = 2283993 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`=26745346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059293, 0.05556219766187698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26745346_12-09-2025_05_54_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745367, '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 = 26745732 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': 3706008, 'mtr_portfolio_id': 26745732, 'created_at': datetime.datetime(2025, 9, 12, 5, 54, 29), 'result': '0.06922323982317109', 'result_long': None, 'result_double': None}] Qualite : 0.06922323982317109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26745732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26745732_12-09-2025_05_54_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26745732 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_P26745732_12-09-2025_05_54_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745768, 'pht': 3726}}" where mtr_portfolio_id = 26745732 and dashboard_run_id = 2283993 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`=26745732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059294, 0.06922323982317109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26745732_12-09-2025_05_54_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26745757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26745758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26745759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26745760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26745761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26745762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26745763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26745764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26745765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26745766, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26745767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26745768, '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 = 26746203 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': 3706009, 'mtr_portfolio_id': 26746203, 'created_at': datetime.datetime(2025, 9, 12, 5, 55, 28), 'result': '0.08223841976003347', 'result_long': None, 'result_double': None}] Qualite : 0.08223841976003347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26746203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26746203_12-09-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26746203 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_P26746203_12-09-2025_05_55_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746239, 'pht': 3726}}" where mtr_portfolio_id = 26746203 and dashboard_run_id = 2283993 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`=26746203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059295, 0.08223841976003347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26746203_12-09-2025_05_55_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746239, '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 = 26746606 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': 3706010, 'mtr_portfolio_id': 26746606, 'created_at': datetime.datetime(2025, 9, 12, 5, 56), 'result': '0.06753064104325386', 'result_long': None, 'result_double': None}] Qualite : 0.06753064104325386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26746606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26746606_12-09-2025_05_56_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26746606 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_P26746606_12-09-2025_05_56_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746651, 'pht': 3726}}" where mtr_portfolio_id = 26746606 and dashboard_run_id = 2283993 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`=26746606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059296, 0.06753064104325386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26746606_12-09-2025_05_56_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26746640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26746641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26746642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26746643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26746644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26746645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26746646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26746647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26746648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26746649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26746650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26746651, '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 = 26747451 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': 3706011, 'mtr_portfolio_id': 26747451, 'created_at': datetime.datetime(2025, 9, 12, 5, 57), 'result': '0.05380685847410049', 'result_long': None, 'result_double': None}] Qualite : 0.05380685847410049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26747451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26747451_12-09-2025_05_57_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26747451 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_P26747451_12-09-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26747467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26747468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26747469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26747470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26747471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26747472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26747473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26747474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26747475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26747476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26747477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26747478, 'pht': 3726}}" where mtr_portfolio_id = 26747451 and dashboard_run_id = 2283993 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`=26747451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059297, 0.05380685847410049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26747451_12-09-2025_05_57_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26747467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26747468, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26747469, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26747470, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26747471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26747472, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26747473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26747474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26747475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26747476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26747477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26747478, '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 = 26748393 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': 3706012, 'mtr_portfolio_id': 26748393, 'created_at': datetime.datetime(2025, 9, 12, 5, 59, 30), 'result': '0.057748020433533574', 'result_long': None, 'result_double': None}] Qualite : 0.057748020433533574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26748393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26748393_12-09-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26748393 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_P26748393_12-09-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26748436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26748437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26748438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26748439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26748440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26748441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26748442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26748443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26748444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26748445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26748446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26748447, 'pht': 3726}}" where mtr_portfolio_id = 26748393 and dashboard_run_id = 2283993 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`=26748393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059298, 0.057748020433533574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26748393_12-09-2025_05_59_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26748436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26748437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26748438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26748439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26748440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26748441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26748442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26748443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26748444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26748445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26748446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26748447, '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 = 26749022 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': 3706013, 'mtr_portfolio_id': 26749022, 'created_at': datetime.datetime(2025, 9, 12, 6, 0), 'result': '0.07336199548911443', 'result_long': None, 'result_double': None}] Qualite : 0.07336199548911443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26749022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26749022_12-09-2025_06_00_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26749022 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_P26749022_12-09-2025_06_00_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749094, 'pht': 3726}}" where mtr_portfolio_id = 26749022 and dashboard_run_id = 2283993 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`=26749022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059299, 0.07336199548911443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26749022_12-09-2025_06_00_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749094, '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 = 26749608 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': 3706014, 'mtr_portfolio_id': 26749608, 'created_at': datetime.datetime(2025, 9, 12, 6, 0, 31), 'result': '0.07061650402613365', 'result_long': None, 'result_double': None}] Qualite : 0.07061650402613365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26749608 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26749608_12-09-2025_06_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26749608 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_P26749608_12-09-2025_06_00_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749640, 'pht': 3726}}" where mtr_portfolio_id = 26749608 and dashboard_run_id = 2283993 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`=26749608 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059300, 0.07061650402613365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26749608_12-09-2025_06_00_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26749627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26749628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26749629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26749630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26749631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26749632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26749633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26749634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26749636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26749638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26749639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26749640, '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 = 26750734 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': 3706015, 'mtr_portfolio_id': 26750734, 'created_at': datetime.datetime(2025, 9, 12, 6, 1, 28), 'result': '0.06104198852077716', 'result_long': None, 'result_double': None}] Qualite : 0.06104198852077716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26750734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26750734_12-09-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26750734 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_P26750734_12-09-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26750772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26750773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26750774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26750775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26750776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26750777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26750778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26750779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26750780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26750781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26750782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26750783, 'pht': 3726}}" where mtr_portfolio_id = 26750734 and dashboard_run_id = 2283993 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`=26750734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059301, 0.06104198852077716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26750734_12-09-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26750772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26750773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26750774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26750775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26750776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26750777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26750778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26750779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26750780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26750781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26750782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26750783, '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 = 26751468 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': 3706016, 'mtr_portfolio_id': 26751468, 'created_at': datetime.datetime(2025, 9, 12, 6, 1, 59), 'result': '0.061183399008741236', 'result_long': None, 'result_double': None}] Qualite : 0.061183399008741236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26751468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26751468_12-09-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26751468 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_P26751468_12-09-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26751485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26751486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26751487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26751488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26751489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26751490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26751491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26751492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26751493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26751494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26751495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26751496, 'pht': 3726}}" where mtr_portfolio_id = 26751468 and dashboard_run_id = 2283993 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`=26751468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059302, 0.061183399008741236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26751468_12-09-2025_06_02_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26751485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26751486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26751487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26751488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26751489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26751490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26751491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26751492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26751493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26751494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26751495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26751496, '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 = 26753265 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': 3706017, 'mtr_portfolio_id': 26753265, 'created_at': datetime.datetime(2025, 9, 12, 6, 3), 'result': '0.055521701765754175', 'result_long': None, 'result_double': None}] Qualite : 0.055521701765754175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26753265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26753265_12-09-2025_06_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26753265 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_P26753265_12-09-2025_06_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26753298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26753299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26753300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26753301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26753302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26753303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26753304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26753305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26753306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26753307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26753308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26753309, 'pht': 3726}}" where mtr_portfolio_id = 26753265 and dashboard_run_id = 2283993 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`=26753265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059303, 0.055521701765754175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26753265_12-09-2025_06_03_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26753298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26753299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26753300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26753301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26753302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26753303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26753304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26753305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26753306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26753307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26753308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26753309, '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 = 26754537 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': 3706018, 'mtr_portfolio_id': 26754537, 'created_at': datetime.datetime(2025, 9, 12, 6, 4, 58), 'result': '0.05720397059822889', 'result_long': None, 'result_double': None}] Qualite : 0.05720397059822889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26754537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26754537_12-09-2025_06_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26754537 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_P26754537_12-09-2025_06_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754583, 'pht': 3726}}" where mtr_portfolio_id = 26754537 and dashboard_run_id = 2283993 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`=26754537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059304, 0.05720397059822889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26754537_12-09-2025_06_04_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754583, '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 = 26754794 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': 3706019, 'mtr_portfolio_id': 26754794, 'created_at': datetime.datetime(2025, 9, 12, 6, 5, 29), 'result': '0.060565396612852575', 'result_long': None, 'result_double': None}] Qualite : 0.060565396612852575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26754794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26754794_12-09-2025_06_05_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26754794 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_P26754794_12-09-2025_06_05_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754837, 'pht': 3726}}" where mtr_portfolio_id = 26754794 and dashboard_run_id = 2283993 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`=26754794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059305, 0.060565396612852575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26754794_12-09-2025_06_05_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26754826, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26754827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26754828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26754829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26754830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26754831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26754832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26754833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26754834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26754835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26754836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26754837, '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 = 26755419 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': 3706020, 'mtr_portfolio_id': 26755419, 'created_at': datetime.datetime(2025, 9, 12, 6, 5, 59), 'result': '0.05048438014948857', 'result_long': None, 'result_double': None}] Qualite : 0.05048438014948857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26755419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26755419_12-09-2025_06_06_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26755419 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_P26755419_12-09-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26755430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26755431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26755432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26755433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26755434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26755435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26755436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26755437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26755438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26755439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26755440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26755441, 'pht': 3726}}" where mtr_portfolio_id = 26755419 and dashboard_run_id = 2283993 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`=26755419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059306, 0.05048438014948857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26755419_12-09-2025_06_06_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26755430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26755431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26755432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26755433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26755434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26755435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26755436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26755437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26755438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26755439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26755440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26755441, '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 = 26756067 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': 3706021, 'mtr_portfolio_id': 26756067, 'created_at': datetime.datetime(2025, 9, 12, 6, 6, 27), 'result': '0.051856778044989914', 'result_long': None, 'result_double': None}] Qualite : 0.051856778044989914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26756067 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26756067_12-09-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26756067 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_P26756067_12-09-2025_06_06_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756162, 'pht': 3726}}" where mtr_portfolio_id = 26756067 and dashboard_run_id = 2283993 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`=26756067 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059307, 0.051856778044989914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26756067_12-09-2025_06_06_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756162, '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 = 26756793 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': 3706022, 'mtr_portfolio_id': 26756793, 'created_at': datetime.datetime(2025, 9, 12, 6, 16, 1), 'result': '0.04873613087875326', 'result_long': None, 'result_double': None}] Qualite : 0.04873613087875326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26756793 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26756793_12-09-2025_06_16_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26756793 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_P26756793_12-09-2025_06_16_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756850, 'pht': 3726}}" where mtr_portfolio_id = 26756793 and dashboard_run_id = 2283993 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`=26756793 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059308, 0.04873613087875326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26756793_12-09-2025_06_16_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26756838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26756839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26756840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26756841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26756843, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26756845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26756846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26756847, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26756848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26756849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26756850, '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 = 26757660 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': 3706023, 'mtr_portfolio_id': 26757660, 'created_at': datetime.datetime(2025, 9, 12, 6, 16, 29), 'result': '0.06149564861822567', 'result_long': None, 'result_double': None}] Qualite : 0.06149564861822567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26757660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26757660_12-09-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26757660 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_P26757660_12-09-2025_06_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26757678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26757679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26757680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26757681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26757682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26757683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26757684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26757685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26757686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26757687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26757688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26757689, 'pht': 3726}}" where mtr_portfolio_id = 26757660 and dashboard_run_id = 2283993 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`=26757660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059309, 0.06149564861822567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26757660_12-09-2025_06_16_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26757678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26757679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26757680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26757681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26757682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26757683, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26757684, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26757685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26757686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26757687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26757688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26757689, '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 = 26758182 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': 3706024, 'mtr_portfolio_id': 26758182, 'created_at': datetime.datetime(2025, 9, 12, 6, 17, 59), 'result': '0.056629172322723076', 'result_long': None, 'result_double': None}] Qualite : 0.056629172322723076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26758182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26758182_12-09-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26758182 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_P26758182_12-09-2025_06_18_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26758204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26758205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758216, 'pht': 3726}}" where mtr_portfolio_id = 26758182 and dashboard_run_id = 2283993 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`=26758182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059310, 0.056629172322723076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26758182_12-09-2025_06_18_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26758204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26758205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758216, '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 = 26758810 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': 3706025, 'mtr_portfolio_id': 26758810, 'created_at': datetime.datetime(2025, 9, 12, 6, 18, 29), 'result': '0.0494782942359935', 'result_long': None, 'result_double': None}] Qualite : 0.0494782942359935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26758810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26758810_12-09-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26758810 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_P26758810_12-09-2025_06_18_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26758830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26758834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758842, 'pht': 3726}}" where mtr_portfolio_id = 26758810 and dashboard_run_id = 2283993 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`=26758810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059311, 0.0494782942359935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26758810_12-09-2025_06_18_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26758830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26758831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26758832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26758833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26758834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26758835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26758836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26758837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26758838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26758839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26758840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26758842, '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 = 26768077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768077 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26768077 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768077 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768077 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26768077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26768077_12-09-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26768077 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_P26768077_12-09-2025_06_19_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26768125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26768126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26768127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26768128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26768129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26768130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26768131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26768132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26768133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26768134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26768135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26768136, 'pht': 3726}}" where mtr_portfolio_id = 26768077 and dashboard_run_id = 2283993 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 = 26768593 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768593 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26768593 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768593 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26768593 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26768593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26768593_12-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26768593 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_P26768593_12-09-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26768620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26768621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26768622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26768623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26768624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26768625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26768626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26768627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26768628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26768629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26768630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26768631, 'pht': 3726}}" where mtr_portfolio_id = 26768593 and dashboard_run_id = 2283993 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 = 26769056 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26769056 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26769056 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26769056 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26769056 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26769056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26769056_12-09-2025_06_20_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26769056 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_P26769056_12-09-2025_06_20_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26769061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26769062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26769063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26769064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26769065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26769066, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26769067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26769068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26769069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26769070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26769071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26769072, 'pht': 3726}}" where mtr_portfolio_id = 26769056 and dashboard_run_id = 2283993 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 = 26769190 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': 3706029, 'mtr_portfolio_id': 26769190, 'created_at': datetime.datetime(2025, 9, 12, 11, 21, 59), 'result': '0.31568839209583904', 'result_long': None, 'result_double': None}] Qualite : 0.31568839209583904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26769190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26769190_12-09-2025_11_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26769190 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_P26769190_12-09-2025_11_22_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26769214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26769215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26769216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26769217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26769218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26769220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26769221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26769222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26769223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26769224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26769225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26769226, 'pht': 3726}}" where mtr_portfolio_id = 26769190 and dashboard_run_id = 2283993 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`=26769190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15059315, 0.31568839209583904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26769190_12-09-2025_11_22_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26769214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26769215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26769216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26769217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26769218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26769220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26769221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26769222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26769223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26769224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26769225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26769226, '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 (26735086,26735395,26735834,26736224,26737263,26737663,26738034,26738546,26739074,26739557,26739949,26740580,26741023,26741502,26741873,26743183,26743522,26743928,26744290,26744795,26745346,26745732,26746203,26746606,26747451,26748393,26749022,26749608,26750734,26751468,26753265,26754537,26754794,26755419,26756067,26756793,26757660,26758182,26758810,26768077,26768593,26769056,26769190) result : ((1383161281,), (1383161320,), (1383161765,), (1383161825,), (1383161885,), (1383162588,), (1383162676,), (1383162763,), (1383162829,), (1383162901,), (1383162973,), (1383163172,), (1383163186,), (1383163255,), (1383163327,), (1383163331,), (1383163337,), (1383163345,), (1383163347,), (1383163378,), (1383163379,), (1383163380,), (1383163383,), (1383163387,), (1383163412,), (1383163415,), (1383163419,), (1383163425,), (1383163428,), (1383163433,), (1383163461,), (1383163470,), (1383163477,), (1383163479,), (1383163549,), (1383163552,), (1383163556,), (1383163565,), (1383163567,), (1383163569,), (1383163573,), (1383163577,), (1383163581,), (1383163604,), (1383163607,), (1383163621,), (1383163624,), (1383163629,), (1383163653,), (1383163659,), (1383163662,), (1383163666,), (1383163671,), (1383163699,), (1383163701,), (1383163704,), (1383163706,), (1383163710,), (1383163713,), (1383163790,), (1383163792,), (1383163823,), (1383163827,), (1383163862,), (1383163864,), (1383163866,), (1383163871,), (1383163877,), (1383163891,), (1383163894,), (1383164017,), (1383163917,), (1383163946,), (1383163948,), (1383163950,), (1383163954,), (1383163967,), (1383163976,), (1383164003,), (1383164006,), (1383164009,), (1383164013,), (1383164028,), (1383164030,), (1383164032,), (1383164034,), (1383164047,), (1383164048,), (1383164049,), (1383164051,), (1383164055,), (1383164162,), (1383164230,), (1383164288,), (1383164344,), (1383164650,), (1383164656,), (1383164667,), (1383164684,), (1383164721,), (1383164723,), (1383164725,), (1383164745,), (1383164746,), (1383164748,), (1383164751,), (1383164800,), (1383164802,), (1383164805,), (1383164811,), (1383164816,), (1383164828,), (1383164832,), (1383164837,), (1383164841,), (1383164844,), (1383164851,), (1383164861,), (1383164864,), (1383164867,), (1383164871,), (1383164893,), (1383164899,), (1383164905,), (1383164909,), (1383164919,), (1383164924,), (1383164961,), (1383164975,), (1383164978,), (1383164982,), (1383164984,), (1383164987,), (1383165003,), (1383165005,), (1383165008,), (1383165013,), (1383165019,), (1383165049,), (1383165052,), (1383165055,), (1383165107,), (1383165094,), (1383165095,), (1383165099,), (1383165103,), (1383165127,), (1383165135,), (1383165140,), (1383165145,), (1383165182,), (1383165186,), (1383165192,), (1383165196,), (1383165225,), (1383165229,), (1383165232,), (1383165236,), (1383165250,), (1383165253,), (1383165255,), (1383165258,), (1383165264,), (1383165268,), (1383165280,), (1383165282,), (1383165285,), (1383165292,), (1383165298,), (1383165308,), (1383165310,), (1383165325,), (1383165338,), (1383165342,), (1383165366,), (1383165374,), (1383165377,), (1383165388,), (1383165389,), (1383165393,), (1383165398,), (1383165412,), (1383165416,), (1383165420,), (1383165425,), (1383165431,), (1383165445,), (1383165448,), (1383165450,), (1383165452,), (1383165474,), (1383165477,), (1383165480,), (1383165527,), (1383165536,), (1383165543,), (1383165555,), (1383165558,), (1383165572,), (1383165580,), (1383165584,), (1383165589,), (1383165593,), (1383165604,), (1383165683,), (1383165797,), (1383165678,), (1383165680,), (1383165700,), (1383165702,), (1383165706,), (1383165711,), (1383165715,), (1383165720,), (1383165752,), (1383165779,), (1383165815,), (1383165820,), (1383165825,), (1383165828,), (1383165831,), (1383165834,), (1383165840,), (1383165844,), (1383165853,), (1383165857,), (1383165877,), (1383165880,), (1383165882,), (1383165885,), (1383165889,), (1383165904,), (1383165907,), (1383165911,), (1383165916,), (1383165921,), (1383165955,), (1383165959,), (1383165962,), (1383165983,), (1383165985,), (1383165987,), (1383165990,), (1383165993,), (1383166023,), (1383166027,), (1383166032,), (1383166036,), (1383166039,), (1383166041,), (1383166054,), (1383166055,), (1383166056,), (1383166061,), (1383166074,), (1383166077,), (1383166080,), (1383166085,), (1383166090,), (1383166093,), (1383166108,), (1383166113,), (1383166125,), (1383166139,), (1383166154,), (1383166169,), (1383166186,), (1383166187,), (1383166189,), (1383166191,), (1383166205,), (1383166206,), (1383166209,), (1383166211,), (1383166213,), (1383166214,), (1383166217,), (1383166220,), (1383166222,), (1383166224,), (1383170642,), (1383170734,), (1383170737,), (1383170741,), (1383170745,), (1383170749,), (1383170753,), (1383170788,), (1383170793,), (1383170806,), (1383170811,), (1383170828,), (1383170829,), (1383170845,), (1383170849,), (1383170852,), (1383170908,), (1383170919,), (1383170922,), (1383170925,), (1383170937,), (1383170939,), (1383170948,), (1383170958,), (1383170968,), (1383170977,), (1383170991,), (1383170994,), (1383170997,), (1383171002,), (1383171020,), (1383171024,), (1383171031,), (1383171035,), (1383171076,), (1383171083,), (1383171088,), (1383171114,), (1383171141,), (1383171157,), (1383171160,), (1383171164,), (1383171186,), (1383171188,), (1383171189,), (1383171192,), (1383171233,), (1383171239,), (1383171242,), (1383171247,), (1383171250,), (1383171301,), (1383171304,), (1383171308,), (1383171335,), (1383171338,), (1383171341,), (1383171346,), (1383171351,), (1383171375,), (1383171380,), (1383171382,), (1383171386,), (1383171389,), (1383171393,), (1383171426,), (1383171501,), (1383171419,), (1383171420,), (1383171422,), (1383171447,), (1383171449,), (1383171451,), (1383171457,), (1383171461,), (1383171464,), (1383171491,), (1383171496,), (1383171498,), (1383171510,), (1383171513,), (1383171515,), (1383171518,), (1383171522,), (1383171525,), (1383171534,), (1383171538,), (1383171544,), (1383171550,), (1383171555,), (1383171585,), (1383171590,), (1383171593,), (1383171684,), (1383171686,), (1383171688,), (1383171692,), (1383171696,), (1383171704,), (1383171730,), (1383171739,), (1383171742,), (1383171765,), (1383171767,), (1383171770,), (1383171801,), (1383171807,), (1383171811,), (1383171815,), (1383171827,), (1383171829,), (1383171833,), (1383171836,), (1383171839,), (1383171842,), (1383171849,), (1383171852,), (1383171860,), (1383171872,), (1383171877,), (1383171880,), (1383171919,), (1383171941,), (1383171950,), (1383171973,), (1383172013,), (1383172009,), (1383172039,), (1383172043,), (1383172047,), (1383172051,), (1383172079,), (1383172111,), (1383172142,), (1383172173,), (1383172469,), (1383172499,), (1383172532,), (1383172566,), (1383172616,), (1383172878,), (1383172921,), (1383172977,), (1383173035,), (1383173423,), (1383173452,), (1383173482,), (1383173511,), (1383173545,), (1383174016,), (1383174073,), (1383174135,), (1383174200,), (1383174273,), (1383174356,), (1383174632,), (1383174683,), (1383174715,), (1383174749,), (1383174807,), (1383174955,), (1383174972,), (1383175018,), (1383175090,), (1383175092,), (1383175094,), (1383175096,), (1383175099,), (1383175102,), (1383175121,), (1383175134,), (1383175137,), (1383175141,), (1383175145,), (1383175171,), (1383175173,), (1383175176,), (1383175181,), (1383175184,), (1383175214,), (1383175217,), (1383175258,), (1383175261,), (1383175263,), (1383175266,), (1383175269,), (1383175289,), (1383175293,), (1383175294,), (1383175296,), (1383175301,), (1383175465,), (1383175492,), (1383175521,), (1383175552,), (1383175911,), (1383176411,), (1383175855,), (1383175882,), (1383176243,), (1383176273,), (1383176303,), (1383176334,), (1383176344,), (1383176347,), (1383176357,), (1383176380,), (1383176494,), (1383176499,), (1383176524,), (1383176531,), (1383176552,), (1383176570,), (1383176574,), (1383176578,), (1383176606,), (1383176625,), (1383176638,), (1383176670,), (1383176675,), (1383176679,), (1383176683,), (1383176689,), (1383176695,), (1383176718,), (1383176720,), (1383176723,), (1383176732,), (1383176742,), (1383176755,), (1383176758,), (1383176760,), (1383176763,), (1383176792,), (1383176793,), (1383176794,), (1383176797,), (1383176803,), (1383176808,), (1383176843,), (1383176847,), (1383176857,), (1383176863,), (1383176875,), (1383176921,), (1383176924,), (1383176928,), (1383176931,), (1383176936,), (1383176945,), (1383176947,), (1383176950,), (1383176953,), (1383176959,), (1383176965,), (1383176975,), (1383176981,), (1383176989,), (1383176994,), (1383176997,), (1383176999,), (1383177002,), (1383177014,), (1383177017,), (1383177054,), (1383177058,), (1383177090,), (1383177122,), (1383177126,), (1383177130,), (1383177155,), (1383177159,), (1383177163,), (1383177186,), (1383177189,), (1383177191,), (1383177195,), (1383177199,), (1383177202,), (1383177220,), (1383177224,), (1383177231,), (1383177236,), (1383177244,), (1383177263,), (1383177266,), (1383177308,), (1383177310,), (1383177313,), (1383177317,), (1383177322,), (1383177325,), (1383177330,), (1383177337,), (1383177346,), (1383177352,), (1383177355,), (1383177358,), (1383177372,), (1383177373,), (1383177375,), (1383177378,), (1383177419,), (1383177422,), (1383177425,), (1383177429,), (1383177454,), (1383177458,), (1383177462,), (1383177467,), (1383177471,), (1383177517,), (1383177519,), (1383177521,), (1383177523,), (1383177544,), (1383177596,), (1383177609,), (1383177642,), (1383177645,), (1383177647,), (1383177652,), (1383177657,), (1383177660,), (1383177670,), (1383177672,), (1383177675,), (1383177682,), (1383177686,), (1383177690,), (1383177736,), (1383177792,), (1383177718,), (1383177721,), (1383177724,), (1383177728,), (1383177733,), (1383177744,), (1383177745,), (1383177749,), (1383177752,), (1383177756,), (1383177760,), (1383177774,), (1383177777,), (1383177785,), (1383177800,), (1383177804,), (1383177808,), (1383177811,), (1383177814,), (1383177818,), (1383177842,), (1383177844,), (1383177845,), (1383177848,), (1383177853,), (1383177878,), (1383177883,), (1383177889,), (1383177895,), (1383177899,), (1383177902,), (1383177921,), (1383177923,), (1383177926,), (1383177930,), (1383177933,), (1383177939,), (1383177965,), (1383177968,), (1383177969,), (1383177984,), (1383178055,), (1383178057,), (1383178059,), (1383178062,), (1383178065,), (1383178069,), (1383178096,), (1383178100,), (1383178102,), (1383178106,), (1383178109,), (1383178126,), (1383178129,), (1383178133,), (1383178147,), (1383178149,), (1383178153,), (1383178156,), (1383178177,), (1383178178,), (1383178182,), (1383178185,), (1383178188,), (1383178193,), (1383178206,), (1383178233,), (1383178263,), (1383178295,), (1383178329,), (1383178361,), (1383178459,), (1383178488,), (1383178518,), (1383178553,), (1383178583,), (1383178618,), (1383178835,), (1383178838,), (1383178842,), (1383178846,), (1383178851,), (1383178861,), (1383178971,), (1383179045,), (1383179106,), (1383179186,), (1383179274,), (1383179376,), (1383180010,), (1383179638,), (1383179704,), (1383179804,), (1383179896,), (1383179962,), (1383180230,), (1383180273,), (1383180306,), (1383180678,), (1383180710,), (1383180742,), (1383180776,), (1383180810,), (1383181085,), (1383181092,), (1383181094,), (1383181128,), (1383181131,), (1383181138,), (1383181143,), (1383181147,), (1383181150,), (1383181331,), (1383181365,), (1383181395,), (1383181427,), (1383181645,), (1383181675,), (1383181714,), (1383181718,), (1383181728,), (1383181747,), (1383181861,), (1383181886,), (1383181899,), (1383181905,), (1383181908,), (1383181911,), (1383181914,), (1383181917,), (1383181961,), (1383181970,), (1383181974,), (1383181979,), (1383181983,), (1383181985,), (1383181986,), (1383182000,), (1383182003,), (1383182006,), (1383182011,), (1383182014,), (1383182017,), (1383182044,), (1383182046,), (1383182047,), (1383182050,), (1383182071,), (1383182076,), (1383182081,), (1383182084,), (1383182110,), (1383182116,), (1383182118,), (1383182123,), (1383182127,), (1383182143,), (1383182146,), (1383182153,), (1383182159,), (1383182162,), (1383182167,), (1383182192,), (1383182253,), (1383182180,), (1383182181,), (1383182182,), (1383182186,), (1383182211,), (1383182215,), (1383182220,), (1383182226,), (1383182230,), (1383182234,), (1383182241,), (1383182250,), (1383182269,), (1383182273,), (1383182275,), (1383182277,), (1383182279,), (1383182291,), (1383182298,), (1383182305,), (1383182307,), (1383182311,), (1383182315,), (1383182335,), (1383182337,), (1383182338,), (1383182366,), (1383182369,), (1383182371,), (1383182377,), (1383182386,), (1383182390,), (1383182433,), (1383182451,), (1383182459,), (1383182462,), (1383182466,), (1383182480,), (1383182484,), (1383182489,), (1383182513,), (1383182515,), (1383182518,), (1383182520,), (1383182525,), (1383182528,), (1383182549,), (1383182553,), (1383182556,), (1383182560,), (1383182564,), (1383182569,), (1383182582,), (1383182583,), (1383182584,), (1383182588,), (1383182611,), (1383182618,), (1383182623,), (1383182626,), (1383182629,), (1383182638,), (1383182680,), (1383182698,), (1383182701,), (1383182704,), (1383182708,), (1383182713,), (1383182717,), (1383182730,), (1383182731,), (1383182732,), (1383182735,), (1383182762,), (1383182767,), (1383182771,), (1383182776,), (1383182781,), (1383182785,), (1383182822,), (1383182810,), (1383182813,), (1383182816,), (1383182819,), (1383182855,), (1383182864,), (1383182871,), (1383182925,), (1383182928,), (1383182933,), (1383182938,), (1383182942,), (1383182951,), (1383182953,), (1383182955,), (1383182985,), (1383182988,), (1383182991,), (1383182994,), (1383182998,), (1383183026,), (1383183029,), (1383183033,), (1383183049,), (1383183051,), (1383183054,), (1383183065,), (1383183072,), (1383183076,), (1383183117,), (1383183125,), (1383183126,), (1383183129,), (1383183148,), (1383183152,), (1383183159,), (1383183164,), (1383183191,), (1383183201,), (1383183207,), (1383183210,), (1383183237,), (1383183241,), (1383183244,), (1383183247,), (1383183271,), (1383183272,), (1383183273,), (1383183277,), (1383183282,), (1383183339,), (1383183353,), (1383183356,), (1383183361,), (1383183394,), (1383183395,), (1383183397,), (1383183402,), (1383183407,), (1383183410,), (1383183425,), (1383183427,), (1383183430,), (1383183435,), (1383183465,), (1383183546,), (1383183449,), (1383183450,), (1383183452,), (1383183457,), (1383183461,), (1383183484,), (1383183489,), (1383183495,), (1383183500,), (1383183509,), (1383183515,), (1383183524,), (1383183534,), (1383183536,), (1383183538,), (1383183540,), (1383183557,), (1383183561,), (1383183566,), (1383183570,), (1383183581,), (1383183585,), (1383183588,), (1383183592,), (1383183594,), (1383183596,), (1383183614,), (1383183616,), (1383183620,), (1383183623,), (1383183626,), (1383183641,), (1383183642,), (1383183644,), (1383183648,), (1383183676,), (1383183679,), (1383183683,), (1383183688,), (1383183693,), (1383183697,), (1383183726,), (1383183729,), (1383183734,), (1383183740,), (1383183776,), (1383183779,), (1383183782,), (1383183786,), (1383183789,), (1383183792,), (1383183807,), (1383183808,), (1383183809,), (1383183811,), (1383183817,), (1383183832,), (1383183834,), (1383183836,), (1383183840,), (1383183846,), (1383183850,), (1383183866,), (1383183870,), (1383183874,), (1383183879,), (1383183883,), (1383183885,), (1383183907,), (1383183913,), (1383183915,), (1383183918,), (1383183921,), (1383183925,), (1383183936,), (1383183940,), (1383183945,), (1383184058,), (1383184092,), (1383184800,), (1383184494,), (1383184555,), (1383184650,), (1383184726,), (1383185453,), (1383185541,), (1383185616,), (1383186264,), (1383186318,), (1383186373,), (1383186417,), (1383186457,), (1383186485,), (1383186790,), (1383186839,), (1383186868,), (1383186915,), (1383187404,), (1383187412,), (1383187445,), (1383187474,), (1383187480,), (1383187490,), (1383187537,), (1383187538,), (1383187539,), (1383187754,), (1383187781,), (1383187819,), (1383187849,), (1383187878,), (1383187909,), (1383188016,), (1383188046,), (1383188105,), (1383188107,), (1383188112,), (1383188122,), (1383188151,), (1383188182,), (1383188280,), (1383188291,), (1383188313,), (1383194720,), (1383195091,), (1383195481,), (1383195533,), (1383195722,), (1383195751,), (1383195781,), (1383195816,), (1383195852,), (1383196025,), (1383196027,), (1383196052,), (1383196086,), (1383196115,), (1383196120,), (1383196210,), (1383196214,), (1383196219,), (1383196246,), (1383196249,), (1383196286,), (1383196292,), (1383196295,), (1383196298,), (1383196321,), (1383196324,), (1383196326,), (1383196330,), (1383196368,), (1383196372,), (1383196377,), (1383196382,), (1383196397,), (1383196401,), (1383196405,), (1383196409,), (1383196414,), (1383196418,), (1383196438,), (1383196549,), (1383196436,), (1383196465,), (1383196475,), (1383196486,), (1383196502,), (1383196506,), (1383196538,), (1383196546,), (1383196570,), (1383196575,), (1383196579,), (1383196583,), (1383196600,), (1383196604,), (1383196610,), (1383196614,), (1383196647,), (1383196650,), (1383196653,), (1383196659,), (1383196663,), (1383196675,), (1383196677,), (1383196679,), (1383196683,), (1383196688,), (1383196712,), (1383196714,), (1383196716,), (1383196780,), (1383196800,), (1383196815,), (1383196820,), (1383196895,), (1383196899,), (1383196902,), (1383196909,), (1383196915,), (1383196921,), (1383196935,), (1383196939,), (1383196944,), (1383196948,), (1383196952,), (1383196972,), (1383196975,), (1383196979,), (1383197003,), (1383197005,), (1383197010,), (1383197017,), (1383197024,), (1383197027,), (1383197032,), (1383197034,), (1383197041,), (1383197046,), (1383197111,), (1383197114,), (1383197119,), (1383197129,), (1383197136,), (1383197158,), (1383197171,), (1383197176,), (1383197182,), (1383197189,), (1383197224,), (1383197210,), (1383197216,), (1383197219,), (1383197261,), (1383197265,), (1383197268,), (1383197273,), (1383197291,), (1383197292,), (1383197293,), (1383197326,), (1383197328,), (1383197331,), (1383197336,), (1383197341,), (1383197346,), (1383197359,), (1383197363,), (1383197367,), (1383197375,), (1383197412,), (1383197414,), (1383197416,), (1383197420,), (1383197423,), (1383197438,), (1383197441,), (1383197446,), (1383197451,), (1383197455,), (1383197458,), (1383197477,), (1383197480,), (1383197483,), (1383197493,), (1383197498,), (1383197504,), (1383197520,), (1383197525,), (1383197531,), (1383197536,), (1383197542,), (1383197545,), (1383197569,), (1383197571,), (1383197584,), (1383197592,), (1383197598,), (1383197635,), (1383197640,), (1383197646,), (1383197683,), (1383197688,), (1383197690,), (1383197694,), (1383197715,), (1383197718,), (1383197721,), (1383197726,), (1383197729,), (1383197732,), (1383197749,), (1383197751,), (1383197754,), (1383197776,), (1383197780,), (1383197783,), (1383197829,), (1383197879,), (1383197815,), (1383197819,), (1383197823,), (1383197843,), (1383197845,), (1383197848,), (1383197851,), (1383197854,), (1383197857,), (1383197875,), (1383197877,), (1383197897,), (1383197902,), (1383197905,), (1383197908,), (1383197910,), (1383197922,), (1383197926,), (1383197932,), (1383197935,), (1383197938,), (1383197968,), (1383197974,), (1383197976,), (1383198012,), (1383198014,), (1383198017,), (1383198025,), (1383198029,), (1383198033,), (1383198054,), (1383198064,), (1383198072,), (1383198076,), (1383198080,), (1383198083,), (1383198097,), (1383198098,), (1383198099,), (1383198118,), (1383198121,), (1383198125,), (1383198129,), (1383198133,), (1383198136,), (1383198154,), (1383198156,), (1383198158,), (1383198160,), (1383198202,), (1383198210,), (1383198213,), (1383198217,), (1383198220,), (1383198233,), (1383198234,), (1383198238,), (1383198242,), (1383198248,), (1383198252,), (1383198260,), (1383198261,), (1383198262,), (1383198281,), (1383198284,), (1383198288,), (1383198369,), (1383198378,), (1383198382,), (1383198387,), (1383198405,), (1383198425,), (1383198426,), (1383198442,), (1383198507,), (1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,), (1383202554,), (1383202557,), (1383202562,), (1383202568,), (1383202572,), (1383202624,), (1383202702,), (1383202622,), (1383202686,), (1383202690,), (1383202694,), (1383202698,), (1383202734,), (1383202737,), (1383202740,), (1383202744,), (1383202767,), (1383202770,), (1383202772,), (1383202777,), (1383202780,), (1383202799,), (1383202802,), (1383202806,), (1383202811,), (1383202814,), (1383202856,), (1383202859,), (1383202860,), (1383202864,), (1383202888,), (1383202890,), (1383202917,), (1383202920,), (1383202922,), (1383202927,), (1383202931,), (1383202965,), (1383202967,), (1383202970,), (1383202974,), (1383202978,), (1383202995,), (1383202998,), (1383203004,), (1383203009,), (1383203011,), (1383203034,), (1383203035,), (1383203037,), (1383203040,), (1383203045,), (1383203082,), (1383203087,), (1383203091,), (1383203096,), (1383203101,), (1383203109,), (1383203164,), (1383203168,), (1383203171,), (1383203175,), (1383203183,), (1383203187,), (1383203190,), (1383203193,), (1383203196,), (1383203210,), (1383203213,), (1383203215,), (1383203219,), (1383203222,), (1383203237,), (1383203241,), (1383203245,), (1383203249,), (1383203254,), (1383203257,), (1383203306,), (1383203291,), (1383203296,), (1383203299,), (1383203303,), (1383203367,), (1383203371,), (1383203375,), (1383203379,), (1383203410,), (1383203413,), (1383203417,), (1383203421,), (1383203425,), (1383203429,), (1383203468,), (1383203470,), (1383203472,), (1383203476,), (1383203480,), (1383203501,), (1383203505,), (1383203508,), (1383203511,), (1383203566,), (1383203569,), (1383203574,), (1383203579,), (1383203582,), (1383203584,), (1383203591,), (1383203594,), (1383203602,), (1383203605,), (1383203616,), (1383203628,), (1383203683,), (1383203685,), (1383203687,), (1383203693,), (1383203697,), (1383203700,), (1383203711,), (1383203715,), (1383203719,), (1383203776,), (1383203780,), (1383203784,), (1383203788,), (1383203791,), (1383203795,), (1383203814,), (1383203821,), (1383203823,), (1383203825,), (1383203829,), (1383203833,), (1383203847,), (1383203850,), (1383203853,), (1383203858,), (1383203890,), (1383203893,), (1383203896,), (1383203899,), (1383203902,), (1383203905,), (1383203923,), (1383203927,), (1383203934,), (1383203941,), (1383203946,), (1383203949,), (1383203972,), (1383204081,), (1383203964,), (1383203967,), (1383203970,), (1383204006,), (1383204019,), (1383204025,), (1383204030,), (1383204034,), (1383204038,), (1383204064,), (1383204066,), (1383204073,), (1383204093,), (1383204094,), (1383204098,), (1383204099,), (1383204103,), (1383204106,), (1383204108,), (1383204110,), (1383204112,), (1383204113,), (1383204130,), (1383204133,), (1383204135,), (1383204141,), (1383204178,), (1383204182,), (1383204185,), (1383204203,), (1383204209,), (1383204214,), (1383204249,), (1383204251,), (1383204256,), (1383204261,), (1383204265,), (1383204284,), (1383204288,), (1383204304,), (1383204344,), (1383204346,), (1383204348,), (1383204353,), (1383204374,), (1383204386,), (1383204397,), (1383204408,), (1383204412,), (1383204415,), (1383204429,), (1383204431,), (1383204432,), (1383204436,), (1383204453,), (1383204456,), (1383204459,), (1383204465,), (1383204469,), (1383204471,), (1383204480,), (1383204482,), (1383204484,), (1383204487,), (1383204493,), (1383204501,), (1383204507,), (1383204512,), (1383204515,), (1383204566,), (1383204597,), (1383204628,), (1383205088,), (1383205122,), (1383205153,), (1383205184,), (1383205219,), (1383205242,), (1383205299,), (1383205323,), (1383205352,), (1383205384,), (1383205416,), (1383205686,), (1383205521,), (1383205572,), (1383205626,), (1383206048,), (1383206106,), (1383206162,), (1383206768,), (1383206827,), (1383206884,), (1383206922,), (1383207317,), (1383207335,), (1383207337,), (1383207345,), (1383207350,), (1383207373,), (1383207375,), (1383207377,), (1383207382,), (1383207550,), (1383207595,), (1383207623,), (1383207656,), (1383207687,), (1383207718,), (1383207874,), (1383207897,), (1383207929,), (1383207951,), (1383207956,), (1383207959,), (1383208024,), (1383208057,), (1383208069,), (1383208078,), (1383208081,), (1383208102,), (1383208106,), (1383208110,), (1383208114,), (1383208130,), (1383208132,), (1383208134,), (1383208175,), (1383208179,), (1383208183,), (1383208194,), (1383208204,), (1383208264,), (1383208267,), (1383208273,), (1383208282,), (1383208357,), (1383208383,), (1383208418,), (1383208473,), (1383208687,), (1383208691,), (1383208701,), (1383208713,), (1383208757,), (1383208758,), (1383208759,), (1383208817,), (1383208821,), (1383208826,), (1383208853,), (1383208890,), (1383208957,), (1383208991,), (1383208997,), (1383209028,), (1383209058,), (1383209090,), (1383208940,), (1383208942,), (1383208944,), (1383208947,), (1383208953,), (1383209151,), (1383209168,), (1383209201,), (1383209396,), (1383209404,), (1383209416,), (1383209426,), (1383209435,), (1383209439,), (1383209474,), (1383209511,), (1383209545,), (1383209576,), (1383209580,), (1383209657,), (1383209680,), (1383209682,), (1383209925,), (1383210000,), (1383210307,), (1383210349,), (1383210382,), (1383210414,), (1383210434,), (1383210441,), (1383210548,), (1383210611,), (1383210679,), (1383210707,), (1383210739,), (1383210882,), (1383210917,), (1383210931,), (1383210937,), (1383210942,), (1383210945,), (1383210971,), (1383210975,), (1383210979,), (1383210982,), (1383210986,), (1383210988,), (1383211011,), (1383211018,), (1383211026,), (1383211046,), (1383211076,), (1383211082,), (1383211097,), (1383211099,), (1383211102,), (1383211117,), (1383211122,), (1383211126,), (1383211155,), (1383211318,), (1383211321,), (1383211326,), (1383211330,), (1383211353,), (1383211375,), (1383211386,), (1383211389,), (1383211535,), (1383211540,), (1383211544,), (1383211547,), (1383211551,), (1383211665,), (1383211635,), (1383211832,), (1383211876,), (1383211909,), (1383211936,), (1383212105,), (1383212109,), (1383212112,), (1383212116,), (1383212120,), (1383212161,), (1383212166,), (1383212171,), (1383212175,), (1383212190,), (1383212268,), (1383212273,), (1383212283,), (1383212296,), (1383212319,), (1383212349,), (1383212379,), (1383212413,), (1383212491,), (1383212493,), (1383212497,), (1383212502,), (1383212507,), (1383212510,), (1383212519,), (1383212524,), (1383212528,), (1383212538,), (1383212543,), (1383212546,), (1383212551,), (1383212555,), (1383212566,), (1383212569,), (1383212574,), (1383212602,), (1383212638,), (1383212649,), (1383212663,), (1383212667,), (1383212733,), (1383212761,), (1383212791,), (1383212823,), (1383212843,), (1383212847,), (1383212865,), (1383212871,), (1383212878,), (1383212882,), (1383212885,), (1383212979,), (1383213008,), (1383213646,), (1383213656,), (1383213678,), (1383213711,), (1383213831,), (1383213836,), (1383213842,), (1383213848,), (1383213850,), (1383213814,), (1383213816,), (1383213823,), (1383213865,), (1383213877,), (1383213881,), (1383213948,), (1383213954,), (1383213991,), (1383214010,), (1383214017,), (1383214035,), (1383214129,), (1383214132,), (1383214135,), (1383214139,), (1383214145,), (1383214150,), (1383214372,), (1383214402,), (1383214432,), (1383214462,), (1383214585,), (1383214615,), (1383214639,), (1383214652,), (1383214663,), (1383214671,), (1383214701,), (1383214704,), (1383214707,), (1383214712,), (1383214719,), (1383214739,), (1383214742,), (1383214746,), (1383214752,), (1383214757,), (1383214781,), (1383214784,), (1383214789,), (1383214797,), (1383214800,), (1383214803,), (1383214811,), (1383214813,), (1383214815,), (1383214834,), (1383214865,), (1383214899,), (1383214930,), (1383214955,), (1383214993,), (1383214997,), (1383214999,), (1383215004,), (1383215007,), (1383215028,), (1383215122,), (1383215135,), (1383215150,), (1383215157,), (1383215161,), (1383215166,), (1383215173,), (1383215176,), (1383215191,), (1383215212,), (1383215216,), (1383215219,), (1383215860,), (1383215919,), (1383215976,), (1383216032,), (1383216089,), (1383216146,), (1383216323,), (1383216377,), (1383216448,), (1383216773,), (1383216614,), (1383216666,), (1383216697,), (1383216731,), (1383216961,), (1383217240,), (1383217288,), (1383217334,), (1383217373,), (1383217404,), (1383217549,), (1383217555,), (1383217560,), (1383217784,), (1383217812,), (1383217840,), (1383217872,), (1383217906,), (1383218183,), (1383218218,), (1383218254,), (1383218299,), (1383218329,), (1383218359,), (1383218636,), (1383218664,), (1383218694,), (1383218725,), (1383218759,), (1383218792,), (1383219011,), (1383219016,), (1383219030,), (1383219039,), (1383219041,), (1383219044,), (1383219051,), (1383219054,), (1383219058,), (1383219061,), (1383219068,), (1383219073,), (1383219127,), (1383219169,), (1383219199,), (1383219228,), (1383219257,), (1383219285,), (1383219379,), (1383219418,), (1383219450,), (1383222751,), (1383222782,), (1383222784,), (1383222877,), (1383222879,), (1383222883,), (1383222886,), (1383222898,), (1383222900,), (1383222903,), (1383222909,), (1383222928,), (1383222937,), (1383222944,), (1383222948,), (1383222950,), (1383222962,), (1383222966,), (1383222987,), (1383222989,), (1383222994,), (1383222996,), (1383223042,), (1383223044,), (1383223046,), (1383223047,), (1383223051,), (1383223062,), (1383223064,), (1383223065,), (1383223077,), (1383223080,), (1383223082,), (1383223111,), (1383223120,), (1383223121,), (1383223124,), (1383223144,), (1383223146,), (1383223148,), (1383223150,), (1383223213,), (1383223214,), (1383223215,), (1383223216,), (1383223341,), (1383223373,), (1383223423,), (1383223439,), (1383223441,), (1383223545,), (1383223546,), (1383223547,), (1383223552,), (1383223780,), (1383223809,), (1383223838,), (1383223845,), (1383223848,), (1383223878,), (1383223880,), (1383223890,), (1383223893,), (1383223895,), (1383223898,), (1383223860,), (1383223865,), (1383223873,), (1383223876,), (1383223916,), (1383223919,), (1383223921,), (1383223923,), (1383223951,), (1383223981,), (1383224039,), (1383224043,), (1383224046,), (1383224087,), (1383224121,), (1383224150,), (1383224179,), (1383224213,), (1383224400,), (1383224404,), (1383224411,), (1383224413,), (1383224438,), (1383224439,), (1383224441,), (1383224444,), (1383224446,), (1383224448,), (1383224460,), (1383224463,), (1383224466,), (1383224473,), (1383224525,), (1383224537,), (1383224540,), (1383224543,), (1383224555,), (1383224746,), (1383224748,), (1383224780,), (1383224816,), (1383225272,), (1383225274,), (1383225276,), (1383225294,), (1383225307,), (1383225308,), (1383225369,), (1383225377,), (1383225409,), (1383225443,), (1383225472,), (1383225482,), (1383225733,), (1383225806,), (1383225815,), (1383225941,), (1383225975,), (1383225992,), (1383225996,), (1383226022,), (1383226029,), (1383226032,), (1383236948,), (1383237027,), (1383237032,), (1383237052,), (1383237103,), (1383237168,), (1383237194,), (1383237204,), (1383237259,), (1383237263,), (1383237348,), (1383237358,), (1383237369,), (1383237400,), (1383237545,), (1383237577,), (1383237997,), (1383238012,), (1383238032,), (1383238066,), (1383238172,), (1383238189,), (1383238222,), (1383238239,), (1383238244,), (1383238420,), (1383238430,), (1383238434,), (1383238448,), (1383238452,), (1383238470,), (1383238474,), (1383238478,), (1383238481,), (1383238486,), (1383238535,), (1383238544,), (1383238546,), (1383238548,), (1383238590,), (1383238595,), (1383238618,), (1383238619,), (1383238620,), (1383238673,), (1383238689,), (1383238700,), (1383238875,), (1383238888,), (1383238925,), (1383238965,), (1383239375,), (1383239411,), (1383239444,), (1383239498,), (1383239529,), (1383242480,), (1383243729,), (1383244216,), (1383244222,), (1383244225,), (1383244228,), (1383244279,), (1383244350,), (1383244351,), (1383244354,), (1383244359,), (1383244248,), (1383244250,), (1383244255,), (1383244270,), (1383244275,), (1383244372,), (1383244392,), (1383244423,), (1383244451,), (1383244495,), (1383244569,), (1383244574,), (1383244689,), (1383244710,), (1383244714,), (1383244744,), (1383244752,), (1383244759,), (1383244764,), (1383244797,), (1383244809,), (1383244903,), (1383244938,), (1383244942,), (1383244948,), (1383244952,), (1383244975,), (1383244978,), (1383244981,), (1383245008,), (1383245033,), (1383245036,), (1383245040,), (1383245045,), (1383245048,), (1383245080,), (1383245082,), (1383245084,), (1383245088,), (1383245092,), (1383245113,), (1383245116,), (1383245123,), (1383245129,), (1383245152,), (1383245157,), (1383245162,), (1383245167,), (1383245169,), (1383245171,), (1383245186,), (1383245187,), (1383245189,), (1383245192,), (1383245196,), (1383245202,), (1383245229,), (1383245240,), (1383245250,), (1383245266,), (1383245287,), (1383245300,), (1383245301,), (1383245305,), (1383245308,), (1383245309,), (1383245310,), (1383245316,), (1383245322,), (1383245326,), (1383245333,), (1383245337,), (1383245342,), (1383245361,), (1383245366,), (1383245369,), (1383245373,), (1383245378,), (1383245414,), (1383245411,), (1383245432,), (1383245445,), (1383245452,), (1383245474,), (1383245479,), (1383245496,), (1383245500,), (1383245503,), (1383245507,), (1383245539,), (1383245543,), (1383245546,), (1383245549,), (1383245763,), (1383245793,), (1383245822,), (1383246126,), (1383246130,), (1383246133,), (1383246137,), (1383246139,), (1383246142,), (1383246150,), (1383246155,), (1383246158,), (1383246230,), (1383246259,), (1383246294,), (1383246327,), (1383246502,), (1383246510,), (1383246514,), (1383246534,), (1383246589,), (1383246720,), (1383246724,), (1383246726,), (1383246736,), (1383247049,), (1383247097,), (1383247153,), (1383247213,), (1383247635,), (1383248103,), (1383248166,), (1383248229,), (1383248291,), (1383248372,), (1383248816,), (1383248824,), (1383248827,), (1383248828,), (1383249232,), (1383249291,), (1383250277,), (1383250282,), (1383250297,), (1383250056,), (1383250114,), (1383250172,), (1383250233,), (1383250400,), (1383250534,), (1383250678,), (1383250797,), (1383251603,), (1383251654,), (1383251702,), (1383251752,), (1383251786,), (1383251864,), (1383252348,), (1383252402,), (1383252453,), (1383252508,), (1383252729,), (1383252741,), (1383252751,), (1383252771,), (1383252956,), (1383252959,), (1383252973,), (1383253008,), (1383253040,), (1383253071,), (1383253473,), (1383253533,), (1383253832,), (1383253859,), (1383253909,), (1383253967,), (1383254023,), (1383254239,), (1383254248,), (1383254252,), (1383254278,), (1383254307,), (1383254315,), (1383254624,), (1383254654,), (1383254683,), (1383254715,), (1383254813,), (1383254816,), (1383254819,), (1383254824,), (1383254828,), (1383254860,), (1383254867,), (1383254901,), (1383254930,), (1383254933,), (1383254940,), (1383254951,), (1383254952,), (1383254953,), (1383254965,), (1383254974,), (1383254989,), (1383254993,), (1383254995,), (1383255020,), (1383255050,), (1383255082,), (1383255224,), (1383255256,), (1383255295,), (1383255332,), (1383255434,), (1383255435,), (1383255465,), (1383255468,), (1383255493,), (1383255497,), (1383255539,), (1383255550,), (1383255921,), (1383255684,), (1383255737,), (1383255804,), (1383255869,), (1383256519,), (1383256606,), (1383256695,), (1383256837,), (1383257674,), (1383257771,), (1383257847,), (1383257937,), (1383258031,), (1383258148,), (1383258707,), (1383258741,), (1383258772,), (1383258789,), (1383258793,), (1383258795,), (1383259147,), (1383259619,), (1383259653,), (1383259667,), (1383259672,), (1383259677,), (1383259681,), (1383260073,), (1383260136,), (1383260196,), (1383260281,), (1383260384,), (1383260462,), (1383260663,), (1383260728,), (1383260765,), (1383260816,), (1383260847,), (1383260889,), (1383261017,), (1383261018,), (1383261054,), (1383261056,), (1383261084,), (1383261088,), (1383261286,), (1383261336,), (1383261366,), (1383261419,), (1383261479,), (1383261726,), (1383261765,), (1383261805,), (1383261811,), (1383262063,), (1383262154,), (1383262239,), (1383262626,), (1383262678,), (1383263050,), (1383263055,), (1383263225,), (1383263305,), (1383263335,), (1383263652,), (1383263765,), (1383263741,), (1383263748,), (1383263752,), (1383263756,), (1383263760,), (1383263777,), (1383263780,), (1383263786,), (1383263791,), (1383263794,), (1383263808,), (1383263812,), (1383263818,), (1383263823,), (1383263828,), (1383263844,), (1383263846,), (1383263847,), (1383263850,), (1383263876,), (1383263883,), (1383263892,), (1383263898,), (1383263902,), (1383263905,), (1383263917,), (1383263919,), (1383263920,), (1383263984,), (1383264170,), (1383264173,), (1383264202,), (1383264207,), (1383264217,), (1383264224,), (1383264230,), (1383264244,), (1383264247,), (1383264250,), (1383264306,), (1383264309,), (1383264311,), (1383264313,), (1383264321,), (1383264479,), (1383264391,), (1383264421,), (1383264449,), (1383264651,), (1383264660,), (1383264664,), (1383264668,), (1383264671,), (1383264675,), (1383264849,), (1383264879,), (1383264910,), (1383264919,), (1383264923,), (1383265005,), (1383265037,), (1383265065,), (1383265071,), (1383265090,), (1383265209,), (1383265223,), (1383265229,), (1383265253,), (1383265254,), (1383265259,), (1383265262,), (1383265265,), (1383265268,), (1383265274,), (1383265284,), (1383265287,), (1383265292,), (1383265298,), (1383265301,), (1383265316,), (1383265318,), (1383265320,), (1383265325,), (1383265345,), (1383265349,), (1383265358,), (1383265391,), (1383265421,), (1383265433,), (1383265441,), (1383265443,), (1383265453,), (1383265480,), (1383265483,), (1383265485,), (1383265501,), (1383265507,), (1383265517,), (1383265646,), (1383265649,), (1383265652,), (1383265681,), (1383265689,), (1383265696,), (1383265727,), (1383265730,), (1383265748,), (1383265783,), (1383265787,), (1383265802,), (1383265807,), (1383265821,), (1383265893,), (1383265897,), (1383265899,), (1383265906,), (1383265957,), (1383266013,), (1383266299,), (1383266305,), (1383266321,), (1383266354,), (1383266361,), (1383266367,), (1383266399,), (1383266262,), (1383266288,), (1383266293,), (1383266451,), (1383266457,), (1383266463,), (1383266467,), (1383266471,), (1383266482,), (1383266492,), (1383266496,), (1383266500,), (1383266504,), (1383266511,), (1383266573,), (1383266576,), (1383266577,), (1383266581,), (1383266620,), (1383266661,), (1383266664,), (1383266667,), (1383266672,), (1383266698,), (1383266700,), (1383266702,), (1383266705,), (1383266712,), (1383266719,), (1383266744,), (1383266753,), (1383266760,), (1383266900,), (1383266926,), (1383266954,), (1383266985,), (1383267283,), (1383267286,), (1383267292,), (1383267317,), (1383267319,), (1383267410,), (1383267417,), (1383267427,), (1383267433,), (1383267437,), (1383267457,), (1383267459,), (1383267464,), (1383267468,), (1383267473,), (1383267476,), (1383267487,), (1383267490,), (1383267506,), (1383267542,), (1383267667,), (1383267702,), (1383268558,), (1383268624,), (1383268686,), (1383269098,), (1383300709,), (1383300762,), (1383300796,), (1383300832,), (1383301381,), (1383301453,), (1383301497,), (1383301536,), (1383301570,), (1383301575,), (1383301579,), (1383301614,), (1383301651,), (1383301689,), (1383301899,), (1383301906,), (1383301915,), (1383301945,), (1383301988,), (1383302254,), (1383302263,), (1383302265,), (1383302269,), (1383302273,), (1383302298,), (1383302304,), (1383302309,), (1383302313,), (1383302316,), (1383302319,), (1383302415,), (1383302505,), (1383302506,), (1383302509,), (1383302544,), (1383302627,), (1383302630,), (1383302632,), (1383302635,), (1383302654,), (1383302659,), (1383302662,), (1383302666,), (1383302670,), (1383302688,), (1383302692,), (1383302695,), (1383302698,), (1383302701,), (1383302703,), (1383302723,), (1383302726,), (1383302728,), (1383302731,), (1383302735,), (1383302746,), (1383302749,), (1383302752,), (1383302774,), (1383302779,), (1383302781,), (1383302784,), (1383302800,), (1383302803,), (1383302805,), (1383302808,), (1383302812,), (1383302816,), (1383302829,), (1383302834,), (1383302837,), (1383302840,), (1383302844,), (1383302847,), (1383302873,), (1383302859,), (1383302864,), (1383302867,), (1383302871,), (1383302891,), (1383302894,), (1383302896,), (1383302900,), (1383302904,), (1383302908,), (1383302921,), (1383302924,), (1383302927,), (1383302930,), (1383302934,), (1383302951,), (1383302957,), (1383302960,), (1383302984,), (1383302986,), (1383302988,), (1383303011,), (1383303015,), (1383303018,), (1383303021,), (1383303024,), (1383303027,), (1383303047,), (1383303049,), (1383303051,), (1383303053,), (1383303056,), (1383303060,), (1383303085,), (1383303088,), (1383303091,), (1383303094,), (1383303096,), (1383303098,), (1383303100,), (1383303101,), (1383303106,), (1383303110,), (1383303113,), (1383303117,), (1383303125,), (1383303126,), (1383303128,), (1383303132,), (1383303136,), (1383303140,), (1383303155,), (1383303158,), (1383303161,), (1383303165,), (1383303169,), (1383303199,), (1383303202,), (1383303206,), (1383303211,), (1383303225,), (1383303229,), (1383303246,), (1383303252,), (1383303256,), (1383303260,), (1383303323,), (1383303327,), (1383303330,), (1383303332,), (1383303354,), (1383303358,), (1383303360,), (1383303363,), (1383303366,), (1383303369,), (1383303379,), (1383303382,), (1383303385,), (1383303391,), (1383303424,), (1383303583,), (1383303411,), (1383303416,), (1383303419,), (1383303421,), (1383303423,), (1383303435,), (1383303440,), (1383303444,), (1383303447,), (1383303451,), (1383303456,), (1383303467,), (1383303470,), (1383303473,), (1383303476,), (1383303478,), (1383303480,), (1383303482,), (1383303487,), (1383303491,), (1383303493,), (1383303497,), (1383303501,), (1383303507,), (1383303510,), (1383303513,), (1383303515,), (1383303519,), (1383303524,), (1383303543,), (1383303554,), (1383303558,), (1383303561,), (1383303564,), (1383303566,), (1383303577,), (1383303580,), (1383303590,), (1383303593,), (1383303594,), (1383303602,), (1383303606,), (1383303609,), (1383303612,), (1383303615,), (1383303619,), (1383303630,), (1383303635,), (1383303639,), (1383303643,), (1383303658,), (1383303662,), (1383303665,), (1383303668,), (1383303673,), (1383303677,), (1383303691,), (1383303695,), (1383303699,), (1383303702,), (1383303722,), (1383303725,), (1383303727,), (1383303729,), (1383303732,), (1383303862,), (1383303896,), (1383303930,), (1383303963,), (1383304366,), (1383304398,), (1383304439,), (1383304476,), (1383304513,), (1383304681,), (1383304715,), (1383304754,), (1383304792,), (1383304826,), (1383304863,), (1383305140,), (1383305176,), (1383305210,), (1383305244,), (1383305283,), (1383305356,), (1383305647,), (1383305638,), (1383305642,), (1383305644,), (1383305741,), (1383305779,), (1383305813,), (1383305845,), (1383305939,), (1383305941,), (1383305944,), (1383305947,), (1383305951,), (1383305967,), (1383305970,), (1383305973,), (1383305975,), (1383305990,), (1383305993,), (1383305995,), (1383306009,), (1383306013,), (1383306016,), (1383306018,), (1383306020,), (1383306030,), (1383306034,), (1383306037,), (1383306040,), (1383306081,), (1383306085,), (1383306087,), (1383306090,), (1383306106,), (1383306110,), (1383306131,), (1383306135,), (1383306139,), (1383306142,), (1383306145,), (1383306148,), (1383306163,), (1383306167,), (1383306169,), (1383306171,), (1383306173,), (1383306184,), (1383306187,), (1383306188,), (1383306190,), (1383306247,), (1383306250,), (1383306252,), (1383306276,), (1383306280,), (1383306285,), (1383306318,), (1383306328,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11092025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26769190]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] map_info['map_portfolio_photo'] : {26769190: [1383306328, 1383306318, 1383306285, 1383306280, 1383306276, 1383306252, 1383306250, 1383306247, 1383306190, 1383306188, 1383306187, 1383306184, 1383306173, 1383306171, 1383306169, 1383306167, 1383306163, 1383306148, 1383306145, 1383306142, 1383306139, 1383306135, 1383306131, 1383306110, 1383306106, 1383306090, 1383306087, 1383306085, 1383306081, 1383306040, 1383306037, 1383306034, 1383306030, 1383306020, 1383306018, 1383306016, 1383306013, 1383306009, 1383305995, 1383305993, 1383305990, 1383305975, 1383305973, 1383305970, 1383305967, 1383305951, 1383305947, 1383305944, 1383305941, 1383305939, 1383305845, 1383305813, 1383305779, 1383305741, 1383305644, 1383305642, 1383305638]} final : True mtd_id 4302 list_pids : [1383306328, 1383306318, 1383306285, 1383306280, 1383306276] Looping around the photos to save general results len do output : 1 /26769190Didn'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, '3706029') ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029') ('4302', None, None, None, None, None, None, None, '3706029') ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '26769190', 'None', None, None, None, None, '3706029'), ('4302', '26769190', '1383306328', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306318', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306285', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306280', None, None, None, None, None, '3706029'), ('4302', '26769190', '1383306276', None, None, None, None, None, '3706029')] time used for this insertion : 0.020482301712036133 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5154950618743896 time spend to save output : 0.020679473876953125 total time spend for step 5 : 3.5361745357513428 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 (3706029) 2.51user 3.67system 0:16.25elapsed 38%CPU (0avgtext+0avgdata 130448maxresident)k 299784inputs+10008outputs (8164major+83174minor)pagefaults 0swaps