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 : 3774836 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 (4119035) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4119035) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913393 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4119035'] with mtr_portfolio_ids : ['28913393'] and first list_photo_ids : [] new path : /proc/3774836/ Name: python3 Umask: 0002 State: R (running) Tgid: 3774836 Ngid: 0 Pid: 3774836 PPid: 3774835 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3774836 NSpid: 3774836 NSpgid: 3772967 NSsid: 3772967 VmPeak: 1106908 kB VmSize: 1106888 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98296 kB VmRSS: 98296 kB RssAnon: 59900 kB RssFile: 38396 kB RssShmem: 0 kB VmData: 865640 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 41 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3774836', 'Ngid': '0', 'Pid': '3774836', 'PPid': '3774835', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3774836', 'NSpid': '3774836', 'NSpgid': '3772967', 'NSsid': '3772967', 'VmPeak': '1106908 kB', 'VmSize': '1106888 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98296 kB', 'VmRSS': '98296 kB', 'RssAnon': '59900 kB', 'RssFile': '38396 kB', 'RssShmem': '0 kB', 'VmData': '865640 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '41', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '3774836', '1106908', '0', '1106888', '865640', '98296', b'', 'marlene', '4119035') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28913393) 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 (4119035 ) ) 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 (28913393) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396221965, 'portfolio_id': 28913393}, {'photo_id': 1396221963, 'portfolio_id': 28913393}, {'photo_id': 1396221954, 'portfolio_id': 28913393}, {'photo_id': 1396221951, 'portfolio_id': 28913393}, {'photo_id': 1396221948, 'portfolio_id': 28913393}, {'photo_id': 1396221945, 'portfolio_id': 28913393}, {'photo_id': 1396221941, 'portfolio_id': 28913393}, {'photo_id': 1396221939, 'portfolio_id': 28913393}, {'photo_id': 1396221903, 'portfolio_id': 28913393}, {'photo_id': 1396221898, 'portfolio_id': 28913393}, {'photo_id': 1396221893, 'portfolio_id': 28913393}, {'photo_id': 1396221888, 'portfolio_id': 28913393}, {'photo_id': 1396221870, 'portfolio_id': 28913393}, {'photo_id': 1396221868, 'portfolio_id': 28913393}, {'photo_id': 1396221867, 'portfolio_id': 28913393}, {'photo_id': 1396221854, 'portfolio_id': 28913393}, {'photo_id': 1396221849, 'portfolio_id': 28913393}, {'photo_id': 1396221846, 'portfolio_id': 28913393}, {'photo_id': 1396221843, 'portfolio_id': 28913393}, {'photo_id': 1396221840, 'portfolio_id': 28913393}, {'photo_id': 1396221815, 'portfolio_id': 28913393}, {'photo_id': 1396221813, 'portfolio_id': 28913393}, {'photo_id': 1396221809, 'portfolio_id': 28913393}, {'photo_id': 1396221807, 'portfolio_id': 28913393}, {'photo_id': 1396221806, 'portfolio_id': 28913393}, {'photo_id': 1396221805, 'portfolio_id': 28913393}, {'photo_id': 1396221783, 'portfolio_id': 28913393}, {'photo_id': 1396221780, 'portfolio_id': 28913393}, {'photo_id': 1396221778, 'portfolio_id': 28913393}, {'photo_id': 1396221776, 'portfolio_id': 28913393}, {'photo_id': 1396221740, 'portfolio_id': 28913393}, {'photo_id': 1396221736, 'portfolio_id': 28913393}, {'photo_id': 1396221735, 'portfolio_id': 28913393}, {'photo_id': 1396221651, 'portfolio_id': 28913393}, {'photo_id': 1396221648, 'portfolio_id': 28913393}, {'photo_id': 1396221643, 'portfolio_id': 28913393}, {'photo_id': 1396221608, 'portfolio_id': 28913393}, {'photo_id': 1396221536, 'portfolio_id': 28913393}, {'photo_id': 1396221513, 'portfolio_id': 28913393}, {'photo_id': 1396221481, 'portfolio_id': 28913393}, {'photo_id': 1396221448, 'portfolio_id': 28913393}, {'photo_id': 1396221417, 'portfolio_id': 28913393}, {'photo_id': 1396221216, 'portfolio_id': 28913393}, {'photo_id': 1396221213, 'portfolio_id': 28913393}, {'photo_id': 1396221211, 'portfolio_id': 28913393}, {'photo_id': 1396221209, 'portfolio_id': 28913393}, {'photo_id': 1396220990, 'portfolio_id': 28913393}, {'photo_id': 1396220793, 'portfolio_id': 28913393}, {'photo_id': 1396220764, 'portfolio_id': 28913393}, {'photo_id': 1396220760, 'portfolio_id': 28913393}, {'photo_id': 1396220757, 'portfolio_id': 28913393}, {'photo_id': 1396220755, 'portfolio_id': 28913393}, {'photo_id': 1396220723, 'portfolio_id': 28913393}, {'photo_id': 1396220718, 'portfolio_id': 28913393}, {'photo_id': 1396220716, 'portfolio_id': 28913393}, {'photo_id': 1396220715, 'portfolio_id': 28913393}, {'photo_id': 1396220714, 'portfolio_id': 28913393}] map_portfolio_id_photo_id: {28913393: [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893, 1396221888, 1396221870, 1396221868, 1396221867, 1396221854, 1396221849, 1396221846, 1396221843, 1396221840, 1396221815, 1396221813, 1396221809, 1396221807, 1396221806, 1396221805, 1396221783, 1396221780, 1396221778, 1396221776, 1396221740, 1396221736, 1396221735, 1396221651, 1396221648, 1396221643, 1396221608, 1396221536, 1396221513, 1396221481, 1396221448, 1396221417, 1396221216, 1396221213, 1396221211, 1396221209, 1396220990, 1396220793, 1396220764, 1396220760, 1396220757, 1396220755, 1396220723, 1396220718, 1396220716, 1396220715, 1396220714]} ##### 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.020113706588745117 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 26 08:30:56 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 (28913393) 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 : 28913393 get user id for portfolio 28913393 get sub ptf for main ptf 28913393, type 3726 and hashtags ['flou', 'Carton_brun', 'papier', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'plastique', 'metal', 'environnement', 'autre_refus'] 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`=28913393 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','papier','kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','plastique','metal','environnement','autre_refus')) 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`=28913393 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','papier','kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','plastique','metal','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28913393, 'sub_port_id': 28913419, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633044, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'plastique': {'main_port_id': 28913393, 'sub_port_id': 28913420, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633045, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'Carton_gris': {'main_port_id': 28913393, 'sub_port_id': 28913421, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633046, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'Carton_brun': {'main_port_id': 28913393, 'sub_port_id': 28913422, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633047, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'metal': {'main_port_id': 28913393, 'sub_port_id': 28913423, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633048, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'flou': {'main_port_id': 28913393, 'sub_port_id': 28913424, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633049, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'kraft': {'main_port_id': 28913393, 'sub_port_id': 28913425, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633050, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'mal_croppe': {'main_port_id': 28913393, 'sub_port_id': 28913426, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633051, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'papier': {'main_port_id': 28913393, 'sub_port_id': 28913427, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633052, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'autre_refus': {'main_port_id': 28913393, 'sub_port_id': 28913428, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633053, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'environnement': {'main_port_id': 28913393, 'sub_port_id': 28913429, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633054, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28913393, 'sub_port_id': 28913430, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633055, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28913419 , 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=28913393 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 (28913419) result : ((1396221627,), (1396221769,), (1396221801,), (1396221835,), (1396221930,), (1396221931,), (1396221932,), (1396221969,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913420 , 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=28913393 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 (28913420) result : ((1396221837,), (1396221838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913421 , 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=28913393 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 (28913421) result : ((1396221618,), (1396221767,), (1396221926,), (1396221927,), (1396221928,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913422 , 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=28913393 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 (28913422) result : ((1396221635,), (1396221770,), (1396221933,), (1396221934,), (1396221935,), (1396221936,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913423 , 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=28913393 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 (28913423) result : ((1396221970,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913424 , 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=28913393 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 (28913424) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913425 , 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=28913393 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 (28913425) result : ((1396221645,), (1396221647,), (1396221771,), (1396221772,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913426 , 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=28913393 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 (28913426) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913427 , 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=28913393 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 (28913427) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913428 , 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=28913393 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 (28913428) result : ((1396221833,), (1396221834,), (1396221921,), (1396221922,), (1396221923,), (1396221924,), (1396221925,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913429 , 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=28913393 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 (28913429) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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 28913430 , 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=28913393 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 (28913430) result : ((1396221594,), (1396221596,), (1396221598,), (1396221600,), (1396221602,), (1396221604,), (1396221606,), (1396221609,), (1396221737,), (1396221738,), (1396221758,), (1396221759,), (1396221760,), (1396221761,), (1396221762,), (1396221763,), (1396221764,), (1396221765,), (1396221919,), (1396221968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28913393) result : ((1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) 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`=28913393 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','papier','kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','plastique','metal','environnement','autre_refus')) 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`=28913393 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','papier','kraft','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','plastique','metal','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 28913393, 'sub_port_id': 28913432, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633056, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'plastique': {'main_port_id': 28913393, 'sub_port_id': 28913433, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633057, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'Carton_gris': {'main_port_id': 28913393, 'sub_port_id': 28913434, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633058, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'Carton_brun': {'main_port_id': 28913393, 'sub_port_id': 28913435, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633059, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'metal': {'main_port_id': 28913393, 'sub_port_id': 28913436, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633060, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'flou': {'main_port_id': 28913393, 'sub_port_id': 28913437, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633061, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'kraft': {'main_port_id': 28913393, 'sub_port_id': 28913438, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633062, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'mal_croppe': {'main_port_id': 28913393, 'sub_port_id': 28913439, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633063, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'papier': {'main_port_id': 28913393, 'sub_port_id': 28913440, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633064, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'autre_refus': {'main_port_id': 28913393, 'sub_port_id': 28913441, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633065, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'environnement': {'main_port_id': 28913393, 'sub_port_id': 28913443, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633066, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 19, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 28913393, 'sub_port_id': 28913445, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19633067, 'last_updated_at': datetime.datetime(2025, 11, 26, 8, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 26, 8, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 26, 8, 19, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913438,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913439,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913440,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913427 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913441,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28913445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28913430 lien utilise dans velours : https://marlene.fotonower.com/velours/28913432,28913433,28913434,28913435,28913436,28913437,28913438,28913439,28913440,28913441,28913443,28913445?tags=cartonnette,plastique,Carton_gris,Carton_brun,metal,flou,kraft,mal_croppe,papier,autre_refus,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28913393]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] map_info['map_portfolio_photo'] : {28913393: [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893, 1396221888, 1396221870, 1396221868, 1396221867, 1396221854, 1396221849, 1396221846, 1396221843, 1396221840, 1396221815, 1396221813, 1396221809, 1396221807, 1396221806, 1396221805, 1396221783, 1396221780, 1396221778, 1396221776, 1396221740, 1396221736, 1396221735, 1396221651, 1396221648, 1396221643, 1396221608, 1396221536, 1396221513, 1396221481, 1396221448, 1396221417, 1396221216, 1396221213, 1396221211, 1396221209, 1396220990, 1396220793, 1396220764, 1396220760, 1396220757, 1396220755, 1396220723, 1396220718, 1396220716, 1396220715, 1396220714]} final : False mtd_id 4302 list_pids : [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] Looping around the photos to save general results len do output : 1 /28913393. 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, '4119035') ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '28913393', "{'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430}", None, None, None, None, '4119035'), ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035')] time used for this insertion : 0.017194509506225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9540820121765137 time spend to save output : 0.017611265182495117 total time spend for step 1 : 1.9716932773590088 step2:final Wed Nov 26 08:30:58 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 (28913393) 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 28913393 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396220723,1396220718,1396220716,1396220715,1396220714,1396220793,1396220764,1396220760,1396220757,1396220755,1396220990,1396221216,1396221213,1396221211,1396221209,1396221536,1396221513,1396221481,1396221448,1396221417,1396221651,1396221648,1396221643,1396221608,1396221740,1396221736,1396221735,1396221783,1396221780,1396221778,1396221776,1396221815,1396221813,1396221809,1396221807,1396221806,1396221805,1396221854,1396221849,1396221846,1396221843,1396221840,1396221870,1396221868,1396221867,1396221903,1396221965,1396221888,1396221898,1396221963,1396221893,1396221954,1396221951,1396221948,1396221945,1396221941,1396221939); 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([28913393]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} new output for save of step final : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] map_info['map_portfolio_photo'] : {28913393: [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893, 1396221888, 1396221870, 1396221868, 1396221867, 1396221854, 1396221849, 1396221846, 1396221843, 1396221840, 1396221815, 1396221813, 1396221809, 1396221807, 1396221806, 1396221805, 1396221783, 1396221780, 1396221778, 1396221776, 1396221740, 1396221736, 1396221735, 1396221651, 1396221648, 1396221643, 1396221608, 1396221536, 1396221513, 1396221481, 1396221448, 1396221417, 1396221216, 1396221213, 1396221211, 1396221209, 1396220990, 1396220793, 1396220764, 1396220760, 1396220757, 1396220755, 1396220723, 1396220718, 1396220716, 1396220715, 1396220714]} final : False mtd_id 4302 list_pids : [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] Looping around the photos to save general results len do output : 11 /1396221965.Didn't retrieve data . /1396221963.Didn't retrieve data . /1396221954.Didn't retrieve data . /1396221951.Didn't retrieve data . /1396221948.Didn't retrieve data . /1396221945.Didn't retrieve data . /1396221941.Didn't retrieve data . /1396221939.Didn't retrieve data . /1396221903.Didn't retrieve data . /1396221898.Didn't retrieve data . /1396221893.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, '4119035') ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '28913393', '1396221965', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221963', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221954', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221951', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221948', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221945', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221941', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221939', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221903', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221898', '0.04348048912975615', None, None, None, None, '4119035'), ('4302', '28913393', '1396221893', '0.04348048912975615', None, None, None, None, '4119035')] time used for this insertion : 0.017082929611206055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0818479061126709 time spend to save output : 0.017395496368408203 total time spend for step 2 : 0.0992434024810791 step3:velours_tree Wed Nov 26 08:30:58 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 : {28913393: [{'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430}]} input_args_next_step : {28913393: ()} output_args : {28913393: [{'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430}]} args : 28913393 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 : ({'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28913393) 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([28913393]) 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.3285982608795166 time spend to save output : 0.00011491775512695312 total time spend for step 3 : 0.32871317863464355 step4:send_mail_cod Wed Nov 26 08:30:58 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 : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} input_args_next_step : {1396221965: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221965 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221963 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221954 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221951 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221948 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221945 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221941 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221939 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221903 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221898 depend.output_id : 0 input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ()} output_args : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',)} args : 1396221893 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 : {28913393: [{'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430}]} input_args_next_step : {1396221965: ('0.04348048912975615',), 1396221963: ('0.04348048912975615',), 1396221954: ('0.04348048912975615',), 1396221951: ('0.04348048912975615',), 1396221948: ('0.04348048912975615',), 1396221945: ('0.04348048912975615',), 1396221941: ('0.04348048912975615',), 1396221939: ('0.04348048912975615',), 1396221903: ('0.04348048912975615',), 1396221898: ('0.04348048912975615',), 1396221893: ('0.04348048912975615',), 28913393: ()} output_args : {28913393: [{'cartonnette': 28913419, 'plastique': 28913420, 'Carton_gris': 28913421, 'Carton_brun': 28913422, 'metal': 28913423, 'flou': 28913424, 'kraft': 28913425, 'mal_croppe': 28913426, 'papier': 28913427, 'autre_refus': 28913428, 'environnement': 28913429, 'Teint_Dans_La_Masse': 28913430}]} args : 28913393 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 :12, first value : ('0.04348048912975615',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28913393) 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_view ph WHERE photo_id IN (1396221965,1396221963,1396221954,1396221951,1396221948,1396221945,1396221941,1396221939,1396221903,1396221898,1396221893) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396221893 begin to download photo : 1396221939 begin to download photo : 1396221948 begin to download photo : 1396221963 download finish for photo 1396221939 begin to download photo : 1396221941 download finish for photo 1396221893 begin to download photo : 1396221898 download finish for photo 1396221948 begin to download photo : 1396221951 download finish for photo 1396221963 begin to download photo : 1396221965 download finish for photo 1396221941 begin to download photo : 1396221945 download finish for photo 1396221951 begin to download photo : 1396221954 download finish for photo 1396221898 begin to download photo : 1396221903 download finish for photo 1396221965 download finish for photo 1396221945 download finish for photo 1396221954 download finish for photo 1396221903 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28913393_26-11-2025_08_30_59.pdf 28913419 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913419 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221627: '1764141687_4165140_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943409_0.png', 1396221769: '1764141785_4168606_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943409_0.png', 1396221801: '1764141867_4171750_1396221608_de0465bf6362ffbcf46e0aad617b875e_rle_crop_4045943925_0.png', 1396221835: '1764141906_4172724_1396221481_a44e51c088006d2b86c21fb01759fbe2_rle_crop_4045944221_0.png', 1396221930: '1764142105_4183524_1396221813_e6fa69afe779cdc9f87c62acc13dcfe5_rle_crop_4045944637_0.png', 1396221931: '1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944654_0.png', 1396221932: '1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944655_0.png', 1396221969: '1764142166_4186917_1396221736_593af0aaf5e935e6d80608cdb86d0ee5_rle_crop_4045944753_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9a3b29516146621e25f5c3df00f75b36_45967562.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/9a3b29516146621e25f5c3df00f75b36_67811892.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e49d526a30cf2bd780498d67bad9b3a6_35457306.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/6e4e63c501631576d46ceec0342d7c22_10571903.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/46d8270ab5818f0c808c8981b0176206_68887959.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/364f1d98a4a469f39eeeff48e84d284f_89415781.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/254d46080cbc2498ea8df309c49b1bdc_44214574.png change filename to text .imagette289134191764142259/ imagette289134191764142259/1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944655_0.png.png imagette289134191764142259/1764142105_4183524_1396221813_e6fa69afe779cdc9f87c62acc13dcfe5_rle_crop_4045944637_0.png.png imagette289134191764142259/1764141785_4168606_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943409_0.png.png imagette289134191764142259/1764141687_4165140_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943409_0.png.png imagette289134191764142259/1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944654_0.png.png imagette289134191764142259/1764141867_4171750_1396221608_de0465bf6362ffbcf46e0aad617b875e_rle_crop_4045943925_0.png.png imagette289134191764142259/1764142166_4186917_1396221736_593af0aaf5e935e6d80608cdb86d0ee5_rle_crop_4045944753_0.png.png imagette289134191764142259/1764141906_4172724_1396221481_a44e51c088006d2b86c21fb01759fbe2_rle_crop_4045944221_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/fef57a5f00a5f32fc6b83ed3540f7fb2_56507906.png imagette289134191764142259 28913420 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221837: '1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944187_0.png', 1396221838: '1764141906_4172724_1396221513_c24f505ed35fb0e9cf1286759d5cc4ad_rle_crop_4045944213_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/69154141f1bdc46a3aa47813fc3cf728_77238428.png change filename to text .imagette289134201764142259/ imagette289134201764142259/1764141906_4172724_1396221513_c24f505ed35fb0e9cf1286759d5cc4ad_rle_crop_4045944213_0.png.png imagette289134201764142259/1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944187_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/fe59b035f5ef3dd94d9d93b846097f15_73339916.png imagette289134201764142259 28913423 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221970: '1764142166_4186917_1396221783_1e8a6f44958a90e2244db9ed89a66f9b_rle_crop_4045944743_0.png'} change filename to text .imagette289134231764142259/ imagette289134231764142259/1764142166_4186917_1396221783_1e8a6f44958a90e2244db9ed89a66f9b_rle_crop_4045944743_0.png.png imagette289134241764142260/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/87e6e926cdb28416dad4836e742378b4_75751691.png imagette289134231764142259 28913424 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913424 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289134241764142260 28913425 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221645: '1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943384_0.png', 1396221647: '1764141687_4165140_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943407_0.png', 1396221771: '1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943384_0.png', 1396221772: '1764141785_4168606_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/46f7054b898d48c13db60aa1b6d6e0e6_62804488.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f736b71acaba6e6b75f6ef3943f489a8_71331474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/46f7054b898d48c13db60aa1b6d6e0e6_70500765.png change filename to text .imagette289134251764142260/ imagette289134251764142260/1764141785_4168606_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943407_0.png.png imagette289134251764142260/1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943384_0.png.png imagette289134251764142260/1764141687_4165140_1396220714_e21e7ce6ccff6efaf46fc3591d5e49ab_rle_crop_4045943407_0.png.png imagette289134251764142260/1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943384_0.png.png imagette289134261764142260/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f736b71acaba6e6b75f6ef3943f489a8_16966561.png imagette289134251764142260 28913426 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913426 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289134261764142260 28913428 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221833: '1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944182_0.png', 1396221834: '1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944184_0.png', 1396221921: '1764142105_4183524_1396221813_e6fa69afe779cdc9f87c62acc13dcfe5_rle_crop_4045944639_0.png', 1396221922: '1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944657_0.png', 1396221923: '1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944674_0.png', 1396221924: '1764142105_4183524_1396221806_16a177c2d4e009fc19e98e05577797e6_rle_crop_4045944685_0.png', 1396221925: '1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/8f2b3fd0ff4e96df15bd011bd22b9ec3_47985546.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/39823e1d2f96aaa9e58e3c5a6c6e02e8_92162891.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e5b4e0cd53e0d6d6274651f9746d90a3_10124196.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ad7169f2c2c14d2969d9daa9cdfd8800_88559047.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f7a535bda2ecf23b2c87737f3175e6c1_75635492.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3217f8ecc5e81163cb891532d9a18b83_70077898.png change filename to text .imagette289134281764142260/ imagette289134281764142260/1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944674_0.png.png imagette289134281764142260/1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944182_0.png.png imagette289134281764142260/1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944657_0.png.png imagette289134281764142260/1764141906_4172724_1396221651_84361d89fa0a02b0d066db69266148ae_rle_crop_4045944184_0.png.png imagette289134281764142260/1764142105_4183524_1396221813_e6fa69afe779cdc9f87c62acc13dcfe5_rle_crop_4045944639_0.png.png imagette289134281764142260/1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944698_0.png.png imagette289134281764142260/1764142105_4183524_1396221806_16a177c2d4e009fc19e98e05577797e6_rle_crop_4045944685_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/8a90a5c13fc97e4becdd5fab9809afd9_43442082.png imagette289134281764142260 28913421 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221618: '1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943393_0.png', 1396221767: '1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943393_0.png', 1396221926: '1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944652_0.png', 1396221927: '1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944671_0.png', 1396221928: '1764142105_4183524_1396221806_16a177c2d4e009fc19e98e05577797e6_rle_crop_4045944689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f7474d9e90a6d92cb216c1d8feb4ad00_8296672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/f7474d9e90a6d92cb216c1d8feb4ad00_77203052.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/b2a5cd9b857098e6f4ecb4599656a034_20104158.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0c08fbcd534932518071c1e057ed3468_73475577.png change filename to text .imagette289134211764142260/ imagette289134211764142260/1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943393_0.png.png imagette289134211764142260/1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944671_0.png.png imagette289134211764142260/1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944652_0.png.png imagette289134211764142260/1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943393_0.png.png imagette289134211764142260/1764142105_4183524_1396221806_16a177c2d4e009fc19e98e05577797e6_rle_crop_4045944689_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/beb4c5e7a63a7b26d65421878fe73764_83541637.png imagette289134211764142260 28913422 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221635: '1764141687_4165140_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943352_0.png', 1396221770: '1764141785_4168606_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943352_0.png', 1396221933: '1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944660_0.png', 1396221934: '1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944677_0.png', 1396221935: '1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944699_0.png', 1396221936: '1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/82d8bbbd4c270772b7e6a9ee43fc5df2_92364356.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/82d8bbbd4c270772b7e6a9ee43fc5df2_61058536.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/903dbec755150597513857fa52b44062_61277659.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e4d2254f3084e9d32a116a296891f853_75722053.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/504e9b970c58a70c564d0b9719793a91_25725538.png change filename to text .imagette289134221764142261/ imagette289134221764142261/1764141687_4165140_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943352_0.png.png imagette289134221764142261/1764142105_4183524_1396221807_8793c29dbd0a081cea9e4d830eda297c_rle_crop_4045944677_0.png.png imagette289134221764142261/1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944702_0.png.png imagette289134221764142261/1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944699_0.png.png imagette289134221764142261/1764142105_4183524_1396221809_3012bd89694211e597080d7354c2444a_rle_crop_4045944660_0.png.png imagette289134221764142261/1764141785_4168606_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943352_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/0d0eff4a99b433992498e8d654add7c6_79570473.png imagette289134221764142261 28913430 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396221758: '1764141785_4168606_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943350_0.png', 1396221968: '1764142166_4186917_1396221783_1e8a6f44958a90e2244db9ed89a66f9b_rle_crop_4045944748_0.png', 1396221919: '1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944703_0.png', 1396221765: '1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943395_0.png', 1396221764: '1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943400_0.png', 1396221763: '1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943387_0.png', 1396221762: '1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943386_0.png', 1396221761: '1764141785_4168606_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943374_0.png', 1396221760: '1764141785_4168606_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943372_0.png', 1396221759: '1764141785_4168606_1396220723_8e2ff605e8fb186eb750f9e093c826c1_rle_crop_4045943361_0.png', 1396221594: '1764141687_4165140_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943350_0.png', 1396221738: '1764141746_4166240_1396221209_6cfc9a02074f4cd8f32db2fe764fa2b8_rle_crop_4045943482_0.png', 1396221737: '1764141746_4166240_1396221211_61d92b71d3dc39848ac631745bacb1e2_rle_crop_4045943473_0.png', 1396221609: '1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943395_0.png', 1396221606: '1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943400_0.png', 1396221604: '1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943387_0.png', 1396221602: '1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943386_0.png', 1396221600: '1764141687_4165140_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943374_0.png', 1396221598: '1764141687_4165140_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943372_0.png', 1396221596: '1764141687_4165140_1396220723_8e2ff605e8fb186eb750f9e093c826c1_rle_crop_4045943361_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ecdd82f70f7d7c8a1c023a1a66896819_84480390.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/3b13da1cb73bbf36385191ea1bb201db_99752764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/5099a526d6077df370c0ad28c8c218d3_45958280.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c7c0286fc15ec5d9804009f5bd356164_85041707.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d7cf7a6317e5f0c015921c7aecc2812c_96122593.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/111868d571b91345761485d9ae7b721b_35907513.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/020103c15083c63585163da795526770_38528834.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/02d36bbb0d6684a57aad02112267fa70_7707225.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/dd28b4177c06cabbf9924782cc4ffd3e_27123160.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1a7d00fb211c274317da078a56c0c8a6_69244931.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/ecdd82f70f7d7c8a1c023a1a66896819_91245058.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d2cc06c7e7e0f6105539469660e7a483_74320932.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/84a6c9915af6198cea87449a42418415_13008790.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/c7c0286fc15ec5d9804009f5bd356164_8160577.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/d7cf7a6317e5f0c015921c7aecc2812c_42453693.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/111868d571b91345761485d9ae7b721b_91652720.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/020103c15083c63585163da795526770_6429374.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/02d36bbb0d6684a57aad02112267fa70_65238233.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/dd28b4177c06cabbf9924782cc4ffd3e_28272663.png change filename to text .imagette289134301764142261/ imagette289134301764142261/1764141785_4168606_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943372_0.png.png imagette289134301764142261/1764141687_4165140_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943374_0.png.png imagette289134301764142261/1764141687_4165140_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943372_0.png.png imagette289134301764142261/1764141687_4165140_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943350_0.png.png imagette289134301764142261/1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943386_0.png.png imagette289134301764142261/1764141746_4166240_1396221211_61d92b71d3dc39848ac631745bacb1e2_rle_crop_4045943473_0.png.png imagette289134301764142261/1764141746_4166240_1396221209_6cfc9a02074f4cd8f32db2fe764fa2b8_rle_crop_4045943482_0.png.png imagette289134301764142261/1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943400_0.png.png imagette289134301764142261/1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943387_0.png.png imagette289134301764142261/1764142105_4183524_1396221805_242908b3277eba0efd52f1177650c4af_rle_crop_4045944703_0.png.png imagette289134301764142261/1764141687_4165140_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943395_0.png.png imagette289134301764142261/1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943400_0.png.png imagette289134301764142261/1764141785_4168606_1396220718_071e60a2c49144d02c423d55e6e47739_rle_crop_4045943374_0.png.png imagette289134301764142261/1764141785_4168606_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943386_0.png.png imagette289134301764142261/1764142166_4186917_1396221783_1e8a6f44958a90e2244db9ed89a66f9b_rle_crop_4045944748_0.png.png imagette289134301764142261/1764141785_4168606_1396220715_65c2b0456529e441e196b1c7dc644ec4_rle_crop_4045943395_0.png.png imagette289134301764142261/1764141785_4168606_1396220793_e27bbfbdc3954d7b251d4bf82bc13676_rle_crop_4045943350_0.png.png imagette289134301764142261/1764141687_4165140_1396220723_8e2ff605e8fb186eb750f9e093c826c1_rle_crop_4045943361_0.png.png imagette289134301764142261/1764141687_4165140_1396220716_e078a1608d5cb926300c616a92476e58_rle_crop_4045943387_0.png.png imagette289134301764142261/1764141785_4168606_1396220723_8e2ff605e8fb186eb750f9e093c826c1_rle_crop_4045943361_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/1a7d00fb211c274317da078a56c0c8a6_51551317.png imagette289134301764142261 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28913393 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28913432,28913433,28913434,28913435,28913436,28913437,28913438,28913439,28913440,28913441,28913443,28913445?tags=cartonnette,plastique,Carton_gris,Carton_brun,metal,flou,kraft,mal_croppe,papier,autre_refus,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1396221965] : ('0.04348048912975615',) no score found for photo 1396221965 We are sending mail with results at report@fotonower.com args[1396221963] : ('0.04348048912975615',) no score found for photo 1396221963 We are sending mail with results at report@fotonower.com args[1396221954] : ('0.04348048912975615',) no score found for photo 1396221954 We are sending mail with results at report@fotonower.com args[1396221951] : ('0.04348048912975615',) no score found for photo 1396221951 We are sending mail with results at report@fotonower.com args[1396221948] : ('0.04348048912975615',) no score found for photo 1396221948 We are sending mail with results at report@fotonower.com args[1396221945] : ('0.04348048912975615',) no score found for photo 1396221945 We are sending mail with results at report@fotonower.com args[1396221941] : ('0.04348048912975615',) no score found for photo 1396221941 We are sending mail with results at report@fotonower.com args[1396221939] : ('0.04348048912975615',) no score found for photo 1396221939 We are sending mail with results at report@fotonower.com args[1396221903] : ('0.04348048912975615',) no score found for photo 1396221903 We are sending mail with results at report@fotonower.com args[1396221898] : ('0.04348048912975615',) no score found for photo 1396221898 We are sending mail with results at report@fotonower.com args[1396221893] : ('0.04348048912975615',) no score found for photo 1396221893 We are sending mail with results at report@fotonower.com refus_total : 0.04348048912975615 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913393 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_P28913393_26-11-2025_08_30_59.pdf results_Auto_P28913393_26-11-2025_08_30_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28913393_26-11-2025_08_30_59.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','28913393','results_Auto_P28913393_26-11-2025_08_30_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28913393_26-11-2025_08_30_59.pdf','pdf','','0.21','0.04348048912975615') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28913393]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] map_info['map_portfolio_photo'] : {28913393: [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893, 1396221888, 1396221870, 1396221868, 1396221867, 1396221854, 1396221849, 1396221846, 1396221843, 1396221840, 1396221815, 1396221813, 1396221809, 1396221807, 1396221806, 1396221805, 1396221783, 1396221780, 1396221778, 1396221776, 1396221740, 1396221736, 1396221735, 1396221651, 1396221648, 1396221643, 1396221608, 1396221536, 1396221513, 1396221481, 1396221448, 1396221417, 1396221216, 1396221213, 1396221211, 1396221209, 1396220990, 1396220793, 1396220764, 1396220760, 1396220757, 1396220755, 1396220723, 1396220718, 1396220716, 1396220715, 1396220714]} final : False mtd_id 4302 list_pids : [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] 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, '4119035') ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '28913393', '1396221965', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035')] time used for this insertion : 0.016536951065063477 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.314819097518921 time spend to save output : 0.016776084899902344 total time spend for step 4 : 6.331595182418823 step5:split_time_score Wed Nov 26 08:31:04 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 : ['28913393'] 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 : [('28913393',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28913393) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396221963: {'path': 'temp/1764142258_3774836_1396221963_c1e5a8c80f38eb6cf0f3de628a854b31.jpg', 'extension': 'jpg'}, 1396221965: {'path': 'temp/1764142258_3774836_1396221965_b895f1bb4fe18b5ab34174b00336160d.jpg', 'extension': 'jpg'}, 1396221939: {'path': 'temp/1764142258_3774836_1396221939_8e452ef72a562378da1bbe4ab5774315.jpg', 'extension': 'jpg'}, 1396221941: {'path': 'temp/1764142258_3774836_1396221941_34a02159f2af15c42f32d277b798fd4b.jpg', 'extension': 'jpg'}, 1396221945: {'path': 'temp/1764142258_3774836_1396221945_dfb5b24949a782782305c3088e83296d.jpg', 'extension': 'jpg'}, 1396221948: {'path': 'temp/1764142258_3774836_1396221948_5a3643ee864ed718c14a4bc5467a2dd0.jpg', 'extension': 'jpg'}, 1396221951: {'path': 'temp/1764142258_3774836_1396221951_3edd4cb8b789fc391c5cf54664b0b5ca.jpg', 'extension': 'jpg'}, 1396221954: {'path': 'temp/1764142258_3774836_1396221954_0a64d11dcc44fa58cdb31292fc9d6378.jpg', 'extension': 'jpg'}, 1396221893: {'path': 'temp/1764142258_3774836_1396221893_e181326cdabb82bca197a06f74a8dd4f.jpg', 'extension': 'jpg'}, 1396221898: {'path': 'temp/1764142258_3774836_1396221898_451b1f8e315b0a57d13e5a9c7a1988f3.jpg', 'extension': 'jpg'}, 1396221903: {'path': 'temp/1764142258_3774836_1396221903_a83190f64038069f0664629cc4ce4471.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 = 28913393; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28913393 group by h (('08', 57),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28913393 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 (28913393) 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 (28913393) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26112025 28913393 Nombre de photos uploadées : 57 / 23040 (0%) 26112025 28913393 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 26112025 28913393 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1396220723, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/8e2ff605e8fb186eb750f9e093c826c1.jpg', 'username': None, 'uploaded_at': 1764141367, 'text': 'image_26112025_08_15_05_010151m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396220718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/071e60a2c49144d02c423d55e6e47739.jpg', 'username': None, 'uploaded_at': 1764141367, 'text': 'image_26112025_08_15_14_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396220716, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/e078a1608d5cb926300c616a92476e58.jpg', 'username': None, 'uploaded_at': 1764141367, 'text': 'image_26112025_08_15_24_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1396220715, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/26/65c2b0456529e441e196b1c7dc644ec4.jpg', 'username': None, 'uploaded_at': 1764141367, 'text': 'image_26112025_08_15_34_010142m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024514198303222656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28913393, '2025-11-26' ) 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-11-26' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2645256,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.28099775314331055 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= 2645256 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28898557, 'dashboard_result_id': 17738994, '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_P28898557_26-11-2025_06_22_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28899108, 'dashboard_result_id': 17738995, '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_P28899108_26-11-2025_06_22_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28899477, 'dashboard_result_id': 17738996, '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_P28899477_26-11-2025_06_23_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28900036, 'dashboard_result_id': 17738997, '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_P28900036_26-11-2025_06_24_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28901576, 'dashboard_result_id': 17738998, '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_P28901576_26-11-2025_06_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28902220, 'dashboard_result_id': 17738999, '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_P28902220_26-11-2025_06_25_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28902821, 'dashboard_result_id': 17739000, '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_P28902821_26-11-2025_06_26_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28903442, 'dashboard_result_id': 17739001, '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_P28903442_26-11-2025_06_26_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28903872, 'dashboard_result_id': 17739002, '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_P28903872_26-11-2025_06_26_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28903884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903895, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28904559, 'dashboard_result_id': 17739003, '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_P28904559_26-11-2025_06_27_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904579, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28904971, 'dashboard_result_id': 17739004, '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_P28904971_26-11-2025_06_27_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904989, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28905396, 'dashboard_result_id': 17739005, '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_P28905396_26-11-2025_06_28_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905416, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28905985, 'dashboard_result_id': 17739006, '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_P28905985_26-11-2025_06_29_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905997, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28906213, 'dashboard_result_id': 17739007, '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_P28906213_26-11-2025_06_30_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906233, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28906581, 'dashboard_result_id': 17739008, '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_P28906581_26-11-2025_06_30_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906601, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28907660, 'dashboard_result_id': 17739009, '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_P28907660_26-11-2025_06_31_13.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28907662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907673, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28907924, 'dashboard_result_id': 17739010, '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_P28907924_26-11-2025_06_31_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28907938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907941, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28908296, 'dashboard_result_id': 17739011, '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_P28908296_26-11-2025_05_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28908300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28908301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908311, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28908732, 'dashboard_result_id': 17739012, '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_P28908732_26-11-2025_06_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28908736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28908747, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28909080, 'dashboard_result_id': 17739013, '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_P28909080_26-11-2025_06_17_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28909089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909100, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28909644, 'dashboard_result_id': 17739014, '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_P28909644_26-11-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28909655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909660, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28910115, 'dashboard_result_id': 17739015, '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_P28910115_26-11-2025_06_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910152, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28910559, 'dashboard_result_id': 17739016, '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_P28910559_26-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910579, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28910922, 'dashboard_result_id': 17739017, '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_P28910922_26-11-2025_07_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28910956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910959, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28911433, 'dashboard_result_id': 17739018, '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_P28911433_26-11-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28911438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28911439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28911440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28911441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28911442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28911443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28911444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28911445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28911446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28911447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28911448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28911449, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28912015, 'dashboard_result_id': 17739019, '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_P28912015_26-11-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912030, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28912359, 'dashboard_result_id': 17739020, '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_P28912359_26-11-2025_08_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912371, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28912788, 'dashboard_result_id': 17739021, '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_P28912788_26-11-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912847, 'pht': 3726}}"}, {'dashboat_entry_day': 2645256, 'dashboard_run_id': 2654450, 'mtr_portfolio_id': 28913393, 'dashboard_result_id': 17739022, '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_P28913393_26-11-2025_08_28_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28913419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28913420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28913421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28913422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28913423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28913424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28913425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28913426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28913427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28913428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28913429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28913430, '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 = 28898557 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': 4118118, 'mtr_portfolio_id': 28898557, 'created_at': datetime.datetime(2025, 11, 26, 6, 22, 1), 'result': '0.05394449971661269', 'result_long': None, 'result_double': None}] Qualite : 0.05394449971661269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28898557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28898557_26-11-2025_06_22_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28898557 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_P28898557_26-11-2025_06_22_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, 'pht': 3726}}" where mtr_portfolio_id = 28898557 and dashboard_run_id = 2654450 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`=28898557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738994, 0.05394449971661269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28898557_26-11-2025_06_22_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28898574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28898575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28898576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28898577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28898578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28898579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28898580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28898581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28898582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28898583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28898584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28898585, '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 = 28899108 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': 4118119, 'mtr_portfolio_id': 28899108, 'created_at': datetime.datetime(2025, 11, 26, 6, 22, 27), 'result': '0.05516349513922095', 'result_long': None, 'result_double': None}] Qualite : 0.05516349513922095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28899108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899108_26-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28899108 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_P28899108_26-11-2025_06_22_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, 'pht': 3726}}" where mtr_portfolio_id = 28899108 and dashboard_run_id = 2654450 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`=28899108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738995, 0.05516349513922095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899108_26-11-2025_06_22_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899123, '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 = 28899477 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': 4118120, 'mtr_portfolio_id': 28899477, 'created_at': datetime.datetime(2025, 11, 26, 6, 23, 31), 'result': '0.03827495912559477', 'result_long': None, 'result_double': None}] Qualite : 0.03827495912559477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28899477 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899477_26-11-2025_06_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28899477 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_P28899477_26-11-2025_06_23_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, 'pht': 3726}}" where mtr_portfolio_id = 28899477 and dashboard_run_id = 2654450 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`=28899477 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738996, 0.03827495912559477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28899477_26-11-2025_06_23_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28899498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28899499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28899500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28899501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28899502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28899503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28899504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28899505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28899506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28899507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28899508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28899509, '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 = 28900036 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': 4118121, 'mtr_portfolio_id': 28900036, 'created_at': datetime.datetime(2025, 11, 26, 6, 24, 2), 'result': '0.05857703546022243', 'result_long': None, 'result_double': None}] Qualite : 0.05857703546022243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28900036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_06_24_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28900036 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_P28900036_26-11-2025_06_24_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, 'pht': 3726}}" where mtr_portfolio_id = 28900036 and dashboard_run_id = 2654450 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`=28900036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738997, 0.05857703546022243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28900036_26-11-2025_06_24_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28900057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28900058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28900059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28900060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28900061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28900062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28900063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28900064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28900065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28900066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28900067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28900068, '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 = 28901576 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': 4118122, 'mtr_portfolio_id': 28901576, 'created_at': datetime.datetime(2025, 11, 26, 6, 24, 28), 'result': '0.05656861102239344', 'result_long': None, 'result_double': None}] Qualite : 0.05656861102239344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28901576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28901576_26-11-2025_06_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28901576 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_P28901576_26-11-2025_06_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, 'pht': 3726}}" where mtr_portfolio_id = 28901576 and dashboard_run_id = 2654450 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`=28901576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738998, 0.05656861102239344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28901576_26-11-2025_06_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28901580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28901581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28901582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28901583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28901584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28901585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28901586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28901587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28901588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28901589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28901590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28901591, '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 = 28902220 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': 4118123, 'mtr_portfolio_id': 28902220, 'created_at': datetime.datetime(2025, 11, 26, 6, 25, 27), 'result': '0.05980008246336479', 'result_long': None, 'result_double': None}] Qualite : 0.05980008246336479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28902220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902220_26-11-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28902220 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_P28902220_26-11-2025_06_25_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, 'pht': 3726}}" where mtr_portfolio_id = 28902220 and dashboard_run_id = 2654450 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`=28902220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17738999, 0.05980008246336479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902220_26-11-2025_06_25_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902276, '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 = 28902821 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': 4118124, 'mtr_portfolio_id': 28902821, 'created_at': datetime.datetime(2025, 11, 26, 6, 25, 57), 'result': '0.04737130629351674', 'result_long': None, 'result_double': None}] Qualite : 0.04737130629351674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28902821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902821_26-11-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28902821 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_P28902821_26-11-2025_06_26_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, 'pht': 3726}}" where mtr_portfolio_id = 28902821 and dashboard_run_id = 2654450 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`=28902821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739000, 0.04737130629351674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28902821_26-11-2025_06_26_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28902835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28902836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28902837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28902838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28902839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28902840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28902841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28902842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28902843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28902844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28902845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28902846, '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 = 28903442 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': 4118125, 'mtr_portfolio_id': 28903442, 'created_at': datetime.datetime(2025, 11, 26, 6, 26, 9), 'result': '0.059492580833250534', 'result_long': None, 'result_double': None}] Qualite : 0.059492580833250534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28903442 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_06_26_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28903442 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_P28903442_26-11-2025_06_26_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, 'pht': 3726}}" where mtr_portfolio_id = 28903442 and dashboard_run_id = 2654450 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`=28903442 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739001, 0.059492580833250534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903442_26-11-2025_06_26_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28903479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903482, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903486, '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 = 28903872 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': 4118126, 'mtr_portfolio_id': 28903872, 'created_at': datetime.datetime(2025, 11, 26, 6, 26, 28), 'result': '0.05108653326940363', 'result_long': None, 'result_double': None}] Qualite : 0.05108653326940363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28903872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903872_26-11-2025_06_26_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28903872 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_P28903872_26-11-2025_06_26_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28903884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903895, 'pht': 3726}}" where mtr_portfolio_id = 28903872 and dashboard_run_id = 2654450 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`=28903872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739002, 0.05108653326940363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28903872_26-11-2025_06_26_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28903884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28903885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28903886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28903887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28903888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28903889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28903890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28903891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28903892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28903893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28903894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28903895, '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 = 28904559 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': 4118127, 'mtr_portfolio_id': 28904559, 'created_at': datetime.datetime(2025, 11, 26, 6, 27, 27), 'result': '0.054703058455693204', 'result_long': None, 'result_double': None}] Qualite : 0.054703058455693204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28904559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28904559_26-11-2025_06_27_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28904559 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_P28904559_26-11-2025_06_27_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904579, 'pht': 3726}}" where mtr_portfolio_id = 28904559 and dashboard_run_id = 2654450 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`=28904559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739003, 0.054703058455693204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28904559_26-11-2025_06_27_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904579, '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 = 28904971 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': 4118128, 'mtr_portfolio_id': 28904971, 'created_at': datetime.datetime(2025, 11, 26, 6, 27, 57), 'result': '0.04195863364783513', 'result_long': None, 'result_double': None}] Qualite : 0.04195863364783513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28904971 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28904971_26-11-2025_06_27_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28904971 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_P28904971_26-11-2025_06_27_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904989, 'pht': 3726}}" where mtr_portfolio_id = 28904971 and dashboard_run_id = 2654450 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`=28904971 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739004, 0.04195863364783513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28904971_26-11-2025_06_27_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28904977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28904978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28904979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28904980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28904981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28904982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28904983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28904984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28904985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28904986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28904988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28904989, '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 = 28905396 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': 4118129, 'mtr_portfolio_id': 28905396, 'created_at': datetime.datetime(2025, 11, 26, 6, 28, 31), 'result': '0.04617138363196753', 'result_long': None, 'result_double': None}] Qualite : 0.04617138363196753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28905396 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28905396_26-11-2025_06_28_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28905396 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_P28905396_26-11-2025_06_28_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905416, 'pht': 3726}}" where mtr_portfolio_id = 28905396 and dashboard_run_id = 2654450 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`=28905396 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739005, 0.04617138363196753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28905396_26-11-2025_06_28_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905416, '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 = 28905985 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': 4118130, 'mtr_portfolio_id': 28905985, 'created_at': datetime.datetime(2025, 11, 26, 6, 29, 32), 'result': '0.07757966975541304', 'result_long': None, 'result_double': None}] Qualite : 0.07757966975541304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28905985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28905985_26-11-2025_06_29_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28905985 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_P28905985_26-11-2025_06_29_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905997, 'pht': 3726}}" where mtr_portfolio_id = 28905985 and dashboard_run_id = 2654450 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`=28905985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739006, 0.07757966975541304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28905985_26-11-2025_06_29_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28905986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28905987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28905988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28905989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28905990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28905991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28905992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28905993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28905994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28905995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28905996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28905997, '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 = 28906213 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': 4118131, 'mtr_portfolio_id': 28906213, 'created_at': datetime.datetime(2025, 11, 26, 6, 29, 59), 'result': '0.05796291100549329', 'result_long': None, 'result_double': None}] Qualite : 0.05796291100549329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28906213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28906213_26-11-2025_06_30_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28906213 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_P28906213_26-11-2025_06_30_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906233, 'pht': 3726}}" where mtr_portfolio_id = 28906213 and dashboard_run_id = 2654450 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`=28906213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739007, 0.05796291100549329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28906213_26-11-2025_06_30_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906233, '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 = 28906581 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': 4118132, 'mtr_portfolio_id': 28906581, 'created_at': datetime.datetime(2025, 11, 26, 6, 30, 32), 'result': '0.04931454709123725', 'result_long': None, 'result_double': None}] Qualite : 0.04931454709123725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28906581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28906581_26-11-2025_06_30_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28906581 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_P28906581_26-11-2025_06_30_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906601, 'pht': 3726}}" where mtr_portfolio_id = 28906581 and dashboard_run_id = 2654450 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`=28906581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739008, 0.04931454709123725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28906581_26-11-2025_06_30_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28906590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28906591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28906592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28906593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28906594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28906595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28906596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28906597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28906598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28906599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28906600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28906601, '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 = 28907660 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': 4118135, 'mtr_portfolio_id': 28907660, 'created_at': datetime.datetime(2025, 11, 26, 6, 31, 11), 'result': '0.04015341783128137', 'result_long': None, 'result_double': None}] Qualite : 0.04015341783128137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28907660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28907660_26-11-2025_06_31_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28907660 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_P28907660_26-11-2025_06_31_13.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28907662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907673, 'pht': 3726}}" where mtr_portfolio_id = 28907660 and dashboard_run_id = 2654450 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`=28907660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739009, 0.04015341783128137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28907660_26-11-2025_06_31_13.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28907662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907671, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907673, '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 = 28907924 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': 4118136, 'mtr_portfolio_id': 28907924, 'created_at': datetime.datetime(2025, 11, 26, 6, 31, 27), 'result': '0.06632072854826689', 'result_long': None, 'result_double': None}] Qualite : 0.06632072854826689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28907924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28907924_26-11-2025_06_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28907924 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_P28907924_26-11-2025_06_31_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28907938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907941, 'pht': 3726}}" where mtr_portfolio_id = 28907924 and dashboard_run_id = 2654450 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`=28907924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739010, 0.06632072854826689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28907924_26-11-2025_06_31_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28907930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28907931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28907932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28907933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28907934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28907935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28907936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28907937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28907938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28907939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28907940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28907941, '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 = 28908296 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': 4118029, 'mtr_portfolio_id': 28908296, 'created_at': datetime.datetime(2025, 11, 26, 5, 49, 27), 'result': '0.046483854193548356', 'result_long': None, 'result_double': None}] Qualite : 0.046483854193548356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28908296 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28908296_26-11-2025_05_49_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28908296 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_P28908296_26-11-2025_05_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28908300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28908301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908311, 'pht': 3726}}" where mtr_portfolio_id = 28908296 and dashboard_run_id = 2654450 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`=28908296 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739011, 0.046483854193548356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28908296_26-11-2025_05_49_27.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28908300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28908301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908311, '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 = 28908732 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': 4118214, 'mtr_portfolio_id': 28908732, 'created_at': datetime.datetime(2025, 11, 26, 6, 3, 31), 'result': '0.03421870833246952', 'result_long': None, 'result_double': None}] Qualite : 0.03421870833246952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28908732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28908732_26-11-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28908732 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_P28908732_26-11-2025_06_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28908736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28908747, 'pht': 3726}}" where mtr_portfolio_id = 28908732 and dashboard_run_id = 2654450 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`=28908732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739012, 0.03421870833246952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28908732_26-11-2025_06_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28908736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28908737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28908738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28908739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28908740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28908741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28908742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28908743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28908744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28908745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28908746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28908747, '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 = 28909080 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': 4118284, 'mtr_portfolio_id': 28909080, 'created_at': datetime.datetime(2025, 11, 26, 6, 17, 26), 'result': '0.06171097971784186', 'result_long': None, 'result_double': None}] Qualite : 0.06171097971784186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28909080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28909080_26-11-2025_06_17_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28909080 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_P28909080_26-11-2025_06_17_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28909089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909100, 'pht': 3726}}" where mtr_portfolio_id = 28909080 and dashboard_run_id = 2654450 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`=28909080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739013, 0.06171097971784186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28909080_26-11-2025_06_17_27.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28909089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909097, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909100, '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 = 28909644 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': 4118381, 'mtr_portfolio_id': 28909644, 'created_at': datetime.datetime(2025, 11, 26, 6, 32, 59), 'result': '0.07204331776476235', 'result_long': None, 'result_double': None}] Qualite : 0.07204331776476235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28909644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28909644_26-11-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28909644 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_P28909644_26-11-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28909655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909660, 'pht': 3726}}" where mtr_portfolio_id = 28909644 and dashboard_run_id = 2654450 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`=28909644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739014, 0.07204331776476235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28909644_26-11-2025_06_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28909648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28909649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28909650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28909651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28909652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28909653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28909654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28909655, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28909656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28909657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28909658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28909660, '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 = 28910115 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': 4118505, 'mtr_portfolio_id': 28910115, 'created_at': datetime.datetime(2025, 11, 26, 6, 48, 58), 'result': '0.06133215641081191', 'result_long': None, 'result_double': None}] Qualite : 0.06133215641081191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28910115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910115_26-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28910115 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_P28910115_26-11-2025_06_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910152, 'pht': 3726}}" where mtr_portfolio_id = 28910115 and dashboard_run_id = 2654450 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`=28910115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739015, 0.06133215641081191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910115_26-11-2025_06_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910152, '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 = 28910559 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': 4118580, 'mtr_portfolio_id': 28910559, 'created_at': datetime.datetime(2025, 11, 26, 7, 3), 'result': '0.03739385967652008', 'result_long': None, 'result_double': None}] Qualite : 0.03739385967652008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28910559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910559_26-11-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28910559 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_P28910559_26-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910579, 'pht': 3726}}" where mtr_portfolio_id = 28910559 and dashboard_run_id = 2654450 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`=28910559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739016, 0.03739385967652008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910559_26-11-2025_07_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28910568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910579, '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 = 28910922 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': 4118655, 'mtr_portfolio_id': 28910922, 'created_at': datetime.datetime(2025, 11, 26, 7, 17, 32), 'result': '0.07512129216606471', 'result_long': None, 'result_double': None}] Qualite : 0.07512129216606471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28910922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910922_26-11-2025_07_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28910922 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_P28910922_26-11-2025_07_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28910956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910959, 'pht': 3726}}" where mtr_portfolio_id = 28910922 and dashboard_run_id = 2654450 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`=28910922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739017, 0.07512129216606471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28910922_26-11-2025_07_17_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28910948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28910949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28910950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28910951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28910952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28910953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28910954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28910955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28910956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28910957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28910958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28910959, '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 = 28911433 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': 4118736, 'mtr_portfolio_id': 28911433, 'created_at': datetime.datetime(2025, 11, 26, 7, 32, 59), 'result': '0.0624754921946344', 'result_long': None, 'result_double': None}] Qualite : 0.0624754921946344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28911433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28911433_26-11-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28911433 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_P28911433_26-11-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28911438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28911439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28911440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28911441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28911442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28911443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28911444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28911445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28911446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28911447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28911448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28911449, 'pht': 3726}}" where mtr_portfolio_id = 28911433 and dashboard_run_id = 2654450 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`=28911433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739018, 0.0624754921946344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28911433_26-11-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28911438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28911439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28911440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28911441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28911442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28911443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28911444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28911445, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28911446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28911447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28911448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28911449, '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 = 28912015 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': 4118839, 'mtr_portfolio_id': 28912015, 'created_at': datetime.datetime(2025, 11, 26, 7, 47, 1), 'result': '0.029732390834767454', 'result_long': None, 'result_double': None}] Qualite : 0.029732390834767454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28912015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912015_26-11-2025_07_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28912015 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_P28912015_26-11-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912030, 'pht': 3726}}" where mtr_portfolio_id = 28912015 and dashboard_run_id = 2654452 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`=28912015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739019, 0.029732390834767454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912015_26-11-2025_07_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912021, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912030, '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 = 28912359 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': 4118893, 'mtr_portfolio_id': 28912359, 'created_at': datetime.datetime(2025, 11, 26, 8, 3, 28), 'result': '0.05325569423834308', 'result_long': None, 'result_double': None}] Qualite : 0.05325569423834308 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28912359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912359_26-11-2025_08_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28912359 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_P28912359_26-11-2025_08_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912371, 'pht': 3726}}" where mtr_portfolio_id = 28912359 and dashboard_run_id = 2654452 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`=28912359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739020, 0.05325569423834308, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912359_26-11-2025_08_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912363, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912370, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912371, '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 = 28912788 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': 4118956, 'mtr_portfolio_id': 28912788, 'created_at': datetime.datetime(2025, 11, 26, 8, 19), 'result': '0.05003478223149351', 'result_long': None, 'result_double': None}] Qualite : 0.05003478223149351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28912788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912788_26-11-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28912788 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_P28912788_26-11-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912847, 'pht': 3726}}" where mtr_portfolio_id = 28912788 and dashboard_run_id = 2654452 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`=28912788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739021, 0.05003478223149351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28912788_26-11-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28912832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28912834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28912835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28912836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28912838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28912839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28912840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28912842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28912843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28912845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28912846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28912847, '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 = 28913393 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': 4119035, 'mtr_portfolio_id': 28913393, 'created_at': datetime.datetime(2025, 11, 26, 8, 30, 58), 'result': '0.04348048912975615', 'result_long': None, 'result_double': None}] Qualite : 0.04348048912975615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28913393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28913393_26-11-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28913393 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_P28913393_26-11-2025_08_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28913419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28913420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28913421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28913422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28913423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28913424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28913425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28913426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28913427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28913428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28913429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28913430, 'pht': 3726}}" where mtr_portfolio_id = 28913393 and dashboard_run_id = 2654452 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`=28913393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17739022, 0.04348048912975615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28913393_26-11-2025_08_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28913419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28913420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28913421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28913422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28913423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28913424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28913425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28913426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28913427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28913428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28913429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28913430, '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 (28898557,28899108,28899477,28900036,28901576,28902220,28902821,28903442,28903872,28904559,28904971,28905396,28905985,28906213,28906581,28907660,28907924,28908296,28908732,28909080,28909644,28910115,28910559,28910922,28911433,28912015,28912359,28912788,28913393) result : ((1396152438,), (1396152781,), (1396153460,), (1396153658,), (1396153696,), (1396153728,), (1396153760,), (1396153794,), (1396154005,), (1396154007,), (1396154039,), (1396154074,), (1396154110,), (1396154143,), (1396154247,), (1396154249,), (1396154250,), (1396154252,), (1396154266,), (1396154267,), (1396154269,), (1396154272,), (1396154275,), (1396154278,), (1396154308,), (1396154310,), (1396154312,), (1396154315,), (1396154318,), (1396154319,), (1396154326,), (1396154327,), (1396154329,), (1396154331,), (1396154335,), (1396154337,), (1396154340,), (1396154457,), (1396154489,), (1396154528,), (1396154563,), (1396154603,), (1396154645,), (1396154899,), (1396154903,), (1396154907,), (1396154939,), (1396154947,), (1396154967,), (1396154972,), (1396154974,), (1396154976,), (1396154978,), (1396154979,), (1396154994,), (1396154995,), (1396154998,), (1396154999,), (1396155001,), (1396155004,), (1396155137,), (1396155172,), (1396155205,), (1396155238,), (1396155273,), (1396155472,), (1396155463,), (1396155464,), (1396155465,), (1396155466,), (1396155469,), (1396155486,), (1396155487,), (1396155489,), (1396155490,), (1396155517,), (1396155519,), (1396155521,), (1396155524,), (1396155527,), (1396155623,), (1396155655,), (1396156056,), (1396156091,), (1396156117,), (1396156119,), (1396156174,), (1396156204,), (1396156523,), (1396156536,), (1396156541,), (1396156543,), (1396156558,), (1396156559,), (1396156561,), (1396156565,), (1396156568,), (1396156571,), (1396156584,), (1396156585,), (1396156587,), (1396156588,), (1396156590,), (1396156605,), (1396156607,), (1396156609,), (1396156639,), (1396157054,), (1396157083,), (1396157115,), (1396157157,), (1396157202,), (1396157235,), (1396157382,), (1396157412,), (1396157500,), (1396157501,), (1396157502,), (1396157503,), (1396157506,), (1396157507,), (1396157715,), (1396157746,), (1396157779,), (1396157812,), (1396158214,), (1396158247,), (1396158278,), (1396158310,), (1396158329,), (1396158336,), (1396158525,), (1396158527,), (1396158528,), (1396158530,), (1396158532,), (1396158535,), (1396158538,), (1396158588,), (1396158615,), (1396158626,), (1396158628,), (1396158630,), (1396158632,), (1396158493,), (1396158517,), (1396158520,), (1396158522,), (1396158524,), (1396158575,), (1396158582,), (1396158584,), (1396158586,), (1396158587,), (1396158594,), (1396158597,), (1396158600,), (1396158603,), (1396158604,), (1396158701,), (1396158734,), (1396158765,), (1396158801,), (1396158834,), (1396159025,), (1396159060,), (1396159088,), (1396159119,), (1396159151,), (1396159371,), (1396159373,), (1396159375,), (1396159377,), (1396159380,), (1396159382,), (1396159624,), (1396159653,), (1396159704,), (1396159754,), (1396160199,), (1396160231,), (1396160264,), (1396160303,), (1396160524,), (1396160550,), (1396160551,), (1396160569,), (1396160628,), (1396160630,), (1396160632,), (1396160634,), (1396160648,), (1396160652,), (1396160655,), (1396160659,), (1396160662,), (1396160664,), (1396160898,), (1396160921,), (1396160946,), (1396161330,), (1396161358,), (1396161389,), (1396161423,), (1396161516,), (1396161547,), (1396161656,), (1396161688,), (1396161815,), (1396161816,), (1396161819,), (1396161823,), (1396161827,), (1396161847,), (1396161856,), (1396161889,), (1396161924,), (1396162430,), (1396162195,), (1396162245,), (1396162303,), (1396162337,), (1396162375,), (1396162803,), (1396162845,), (1396162879,), (1396162911,), (1396163040,), (1396163041,), (1396163043,), (1396163325,), (1396163327,), (1396163346,), (1396163368,), (1396163385,), (1396163388,), (1396163411,), (1396163420,), (1396163437,), (1396163473,), (1396163511,), (1396163545,), (1396163806,), (1396163854,), (1396163898,), (1396163937,), (1396164394,), (1396164427,), (1396164459,), (1396164490,), (1396164524,), (1396164893,), (1396164895,), (1396164897,), (1396164899,), (1396165074,), (1396165111,), (1396165136,), (1396165137,), (1396165251,), (1396165253,), (1396165254,), (1396165257,), (1396165260,), (1396165263,), (1396165267,), (1396165268,), (1396165269,), (1396165270,), (1396165280,), (1396165282,), (1396165286,), (1396165293,), (1396165298,), (1396165317,), (1396165318,), (1396165638,), (1396165670,), (1396165702,), (1396165736,), (1396165772,), (1396165805,), (1396166284,), (1396166322,), (1396166358,), (1396166366,), (1396166369,), (1396166372,), (1396166551,), (1396177862,), (1396177865,), (1396177868,), (1396177879,), (1396177880,), (1396177882,), (1396177884,), (1396177886,), (1396177897,), (1396177898,), (1396177900,), (1396178050,), (1396178133,), (1396178214,), (1396178799,), (1396178870,), (1396178886,), (1396178914,), (1396178920,), (1396178935,), (1396178944,), (1396178946,), (1396178949,), (1396178952,), (1396178970,), (1396178972,), (1396179004,), (1396179005,), (1396179006,), (1396179041,), (1396179042,), (1396179044,), (1396179046,), (1396179145,), (1396179263,), (1396179370,), (1396179497,), (1396179622,), (1396180400,), (1396180487,), (1396180615,), (1396180658,), (1396180693,), (1396180759,), (1396180910,), (1396180942,), (1396180974,), (1396181007,), (1396181244,), (1396181278,), (1396181306,), (1396181311,), (1396181315,), (1396181318,), (1396181326,), (1396181328,), (1396181330,), (1396181337,), (1396181343,), (1396181623,), (1396181871,), (1396181922,), (1396181991,), (1396182586,), (1396182367,), (1396182400,), (1396182453,), (1396182515,), (1396182827,), (1396182828,), (1396182829,), (1396182830,), (1396182833,), (1396183040,), (1396183073,), (1396183102,), (1396183110,), (1396183157,), (1396183158,), (1396183183,), (1396183188,), (1396183192,), (1396183195,), (1396183207,), (1396183208,), (1396183209,), (1396183211,), (1396183214,), (1396183254,), (1396183286,), (1396183318,), (1396183675,), (1396183714,), (1396183803,), (1396183837,), (1396183874,), (1396183896,), (1396184052,), (1396184081,), (1396184083,), (1396184085,), (1396184120,), (1396184191,), (1396184193,), (1396184195,), (1396184197,), (1396184211,), (1396184212,), (1396184237,), (1396184239,), (1396184279,), (1396184312,), (1396184345,), (1396184400,), (1396184676,), (1396185840,), (1396185866,), (1396186024,), (1396186061,), (1396186095,), (1396186124,), (1396186303,), (1396186297,), (1396186299,), (1396186301,), (1396186457,), (1396186458,), (1396186476,), (1396186477,), (1396186479,), (1396186481,), (1396186522,), (1396186561,), (1396186595,), (1396186626,), (1396186659,), (1396187013,), (1396187042,), (1396187073,), (1396187103,), (1396187260,), (1396187292,), (1396187863,), (1396187879,), (1396187881,), (1396187885,), (1396188023,), (1396188025,), (1396188027,), (1396188029,), (1396188032,), (1396188049,), (1396188050,), (1396188051,), (1396188054,), (1396188057,), (1396188059,), (1396188071,), (1396188072,), (1396188073,), (1396188079,), (1396188081,), (1396188084,), (1396188098,), (1396188100,), (1396188102,), (1396188104,), (1396188129,), (1396188130,), (1396188131,), (1396188184,), (1396188185,), (1396188187,), (1396188189,), (1396188192,), (1396188208,), (1396188209,), (1396188210,), (1396188224,), (1396188227,), (1396188229,), (1396188231,), (1396188234,), (1396188236,), (1396188266,), (1396188260,), (1396188261,), (1396188262,), (1396188263,), (1396188292,), (1396188297,), (1396188298,), (1396188317,), (1396188318,), (1396188319,), (1396188320,), (1396188322,), (1396188323,), (1396188341,), (1396188343,), (1396188345,), (1396188347,), (1396188349,), (1396188363,), (1396188394,), (1396188401,), (1396188402,), (1396188404,), (1396188424,), (1396188440,), (1396188442,), (1396188444,), (1396188446,), (1396188449,), (1396188452,), (1396188463,), (1396188464,), (1396188465,), (1396188466,), (1396188496,), (1396188503,), (1396188505,), (1396188507,), (1396188519,), (1396188521,), (1396188524,), (1396188527,), (1396188536,), (1396188541,), (1396188573,), (1396188575,), (1396188577,), (1396188579,), (1396188581,), (1396188584,), (1396188596,), (1396188597,), (1396188598,), (1396188626,), (1396188632,), (1396188634,), (1396188636,), (1396188639,), (1396188642,), (1396188653,), (1396188655,), (1396188657,), (1396188661,), (1396188665,), (1396188700,), (1396188702,), (1396188704,), (1396188708,), (1396188710,), (1396188712,), (1396188718,), (1396188720,), (1396188739,), (1396188723,), (1396188724,), (1396188731,), (1396188737,), (1396188751,), (1396188753,), (1396188755,), (1396188770,), (1396188771,), (1396188772,), (1396188773,), (1396188776,), (1396188801,), (1396188804,), (1396188806,), (1396188808,), (1396188822,), (1396188824,), (1396188828,), (1396188834,), (1396188838,), (1396188854,), (1396188862,), (1396188870,), (1396188873,), (1396188876,), (1396188915,), (1396188916,), (1396188918,), (1396188921,), (1396188924,), (1396188927,), (1396188954,), (1396188955,), (1396188956,), (1396188969,), (1396188971,), (1396188974,), (1396188981,), (1396189019,), (1396189021,), (1396189023,), (1396189026,), (1396189029,), (1396189038,), (1396189039,), (1396189041,), (1396189043,), (1396189063,), (1396189066,), (1396189117,), (1396189125,), (1396189133,), (1396189431,), (1396189464,), (1396189494,), (1396189528,), (1396189917,), (1396189951,), (1396189955,), (1396189956,), (1396190162,), (1396190136,), (1396190155,), (1396190157,), (1396190159,), (1396190172,), (1396190174,), (1396190180,), (1396190183,), (1396190201,), (1396190202,), (1396190203,), (1396190204,), (1396190217,), (1396190222,), (1396190224,), (1396190226,), (1396190229,), (1396190242,), (1396190243,), (1396190246,), (1396190249,), (1396190252,), (1396190255,), (1396190258,), (1396190259,), (1396190261,), (1396190271,), (1396190274,), (1396190276,), (1396190279,), (1396190289,), (1396190290,), (1396190291,), (1396190292,), (1396190293,), (1396190325,), (1396190326,), (1396190371,), (1396190400,), (1396190402,), (1396190404,), (1396190406,), (1396190409,), (1396190412,), (1396190443,), (1396190463,), (1396190479,), (1396190481,), (1396190483,), (1396190499,), (1396190519,), (1396190521,), (1396190523,), (1396190534,), (1396190536,), (1396190730,), (1396190763,), (1396190795,), (1396191086,), (1396191090,), (1396191119,), (1396191152,), (1396191184,), (1396191218,), (1396191253,), (1396191281,), (1396191282,), (1396191325,), (1396191326,), (1396191354,), (1396191356,), (1396191358,), (1396191360,), (1396191372,), (1396191374,), (1396191376,), (1396191379,), (1396191382,), (1396191390,), (1396191392,), (1396191394,), (1396191396,), (1396191399,), (1396191401,), (1396191415,), (1396191417,), (1396191418,), (1396191431,), (1396191432,), (1396191434,), (1396191436,), (1396191439,), (1396191463,), (1396191465,), (1396191467,), (1396191469,), (1396191471,), (1396191490,), (1396191491,), (1396191492,), (1396191500,), (1396191566,), (1396191568,), (1396191570,), (1396191572,), (1396191575,), (1396191578,), (1396191589,), (1396191590,), (1396191592,), (1396191593,), (1396191595,), (1396191596,), (1396191630,), (1396191624,), (1396191626,), (1396191628,), (1396191639,), (1396191641,), (1396191643,), (1396191645,), (1396191714,), (1396191716,), (1396191718,), (1396191720,), (1396191723,), (1396191741,), (1396191743,), (1396191745,), (1396191747,), (1396191750,), (1396191752,), (1396191767,), (1396191768,), (1396191769,), (1396191770,), (1396191773,), (1396191776,), (1396191794,), (1396191795,), (1396191810,), (1396191811,), (1396191813,), (1396191815,), (1396191826,), (1396191828,), (1396191857,), (1396191860,), (1396191863,), (1396191867,), (1396191871,), (1396191882,), (1396191884,), (1396191906,), (1396191907,), (1396191908,), (1396191927,), (1396191957,), (1396191991,), (1396192025,), (1396192453,), (1396192485,), (1396192520,), (1396192550,), (1396192584,), (1396192994,), (1396193028,), (1396193061,), (1396193097,), (1396193133,), (1396193150,), (1396193156,), (1396193157,), (1396193496,), (1396193510,), (1396193512,), (1396193543,), (1396193544,), (1396193545,), (1396193546,), (1396193549,), (1396193561,), (1396193563,), (1396193575,), (1396193582,), (1396193605,), (1396193606,), (1396193607,), (1396193614,), (1396193620,), (1396193668,), (1396193670,), (1396193672,), (1396193674,), (1396193676,), (1396193691,), (1396193692,), (1396193703,), (1396193704,), (1396193741,), (1396193743,), (1396193759,), (1396193760,), (1396193761,), (1396193762,), (1396193785,), (1396193787,), (1396193804,), (1396193807,), (1396193815,), (1396193819,), (1396193834,), (1396193837,), (1396193840,), (1396193844,), (1396193848,), (1396193859,), (1396193862,), (1396193866,), (1396193871,), (1396193877,), (1396193896,), (1396193887,), (1396193889,), (1396193891,), (1396193893,), (1396193909,), (1396193910,), (1396193911,), (1396193912,), (1396193914,), (1396193916,), (1396193930,), (1396193932,), (1396193933,), (1396193935,), (1396193938,), (1396193951,), (1396193952,), (1396193953,), (1396193956,), (1396193959,), (1396193961,), (1396194031,), (1396195905,), (1396196584,), (1396196631,), (1396196662,), (1396196693,), (1396197089,), (1396197111,), (1396197116,), (1396197119,), (1396197122,), (1396197124,), (1396197130,), (1396197140,), (1396197141,), (1396197164,), (1396197179,), (1396197181,), (1396197183,), (1396197186,), (1396197206,), (1396197207,), (1396197208,), (1396197209,), (1396197379,), (1396197409,), (1396197441,), (1396197472,), (1396197505,), (1396197687,), (1396197689,), (1396197691,), (1396197693,), (1396197719,), (1396197720,), (1396197721,), (1396197722,), (1396197725,), (1396199251,), (1396202471,), (1396203340,), (1396203345,), (1396203347,), (1396203349,), (1396203364,), (1396203365,), (1396203543,), (1396203574,), (1396203628,), (1396203629,), (1396203630,), (1396203631,), (1396203647,), (1396203649,), (1396203652,), (1396203656,), (1396203660,), (1396203908,), (1396203942,), (1396203975,), (1396204011,), (1396204380,), (1396204412,), (1396204866,), (1396204905,), (1396204929,), (1396204931,), (1396205181,), (1396204957,), (1396205079,), (1396205112,), (1396205147,), (1396205214,), (1396205216,), (1396205217,), (1396205249,), (1396205250,), (1396205251,), (1396205252,), (1396205253,), (1396205256,), (1396205270,), (1396205272,), (1396205275,), (1396205279,), (1396205282,), (1396205297,), (1396205299,), (1396205305,), (1396205315,), (1396205330,), (1396205333,), (1396205336,), (1396205340,), (1396205392,), (1396205396,), (1396205400,), (1396205402,), (1396205471,), (1396205475,), (1396205478,), (1396205495,), (1396205496,), (1396205497,), (1396205498,), (1396205501,), (1396205518,), (1396205520,), (1396205522,), (1396205524,), (1396205527,), (1396205540,), (1396205546,), (1396205553,), (1396205570,), (1396205581,), (1396205601,), (1396205602,), (1396205604,), (1396205620,), (1396205621,), (1396205622,), (1396205623,), (1396205625,), (1396205627,), (1396205646,), (1396205648,), (1396205650,), (1396205705,), (1396205693,), (1396205699,), (1396205700,), (1396205702,), (1396205733,), (1396205740,), (1396205741,), (1396205742,), (1396205744,), (1396205757,), (1396205758,), (1396205759,), (1396205799,), (1396205824,), (1396205826,), (1396205828,), (1396205832,), (1396205836,), (1396205840,), (1396205882,), (1396205916,), (1396205948,), (1396205979,), (1396206124,), (1396206156,), (1396206540,), (1396206572,), (1396206603,), (1396207030,), (1396207032,), (1396207202,), (1396207355,), (1396207362,), (1396207363,), (1396207365,), (1396207368,), (1396207377,), (1396207380,), (1396207382,), (1396207384,), (1396207387,), (1396207404,), (1396207405,), (1396207408,), (1396207409,), (1396207446,), (1396207451,), (1396207453,), (1396207471,), (1396207472,), (1396207473,), (1396207502,), (1396207505,), (1396207507,), (1396207511,), (1396207549,), (1396207544,), (1396207545,), (1396207546,), (1396207547,), (1396207563,), (1396207565,), (1396207567,), (1396207591,), (1396207593,), (1396207611,), (1396207613,), (1396207615,), (1396207638,), (1396207639,), (1396207640,), (1396207653,), (1396207655,), (1396207658,), (1396207662,), (1396207666,), (1396207703,), (1396207704,), (1396207705,), (1396207706,), (1396207709,), (1396207723,), (1396207724,), (1396207726,), (1396207749,), (1396207751,), (1396207769,), (1396207770,), (1396207771,), (1396207792,), (1396207794,), (1396207812,), (1396207813,), (1396207814,), (1396207815,), (1396207818,), (1396207834,), (1396207836,), (1396208130,), (1396208170,), (1396208203,), (1396208238,), (1396208377,), (1396208412,), (1396208491,), (1396208558,), (1396208624,), (1396209216,), (1396208897,), (1396208971,), (1396209038,), (1396209145,), (1396209411,), (1396209444,), (1396209477,), (1396209849,), (1396209883,), (1396209896,), (1396209900,), (1396209903,), (1396209916,), (1396209918,), (1396209920,), (1396209922,), (1396209925,), (1396209927,), (1396209943,), (1396209949,), (1396209951,), (1396209975,), (1396209976,), (1396209977,), (1396209978,), (1396209980,), (1396209982,), (1396210007,), (1396210008,), (1396210097,), (1396210101,), (1396210103,), (1396210119,), (1396210120,), (1396210122,), (1396210124,), (1396210127,), (1396210162,), (1396210163,), (1396210164,), (1396210165,), (1396210181,), (1396210229,), (1396210230,), (1396210231,), (1396210246,), (1396210250,), (1396210252,), (1396210254,), (1396210257,), (1396210259,), (1396210269,), (1396210273,), (1396210277,), (1396210281,), (1396210315,), (1396210311,), (1396210313,), (1396210330,), (1396210335,), (1396210336,), (1396210337,), (1396210351,), (1396210353,), (1396210355,), (1396210357,), (1396210359,), (1396210385,), (1396210386,), (1396210388,), (1396210390,), (1396210405,), (1396210406,), (1396210407,), (1396210431,), (1396210432,), (1396210433,), (1396210434,), (1396210459,), (1396210460,), (1396210461,), (1396210462,), (1396210482,), (1396210483,), (1396210485,), (1396210487,), (1396210507,), (1396210509,), (1396210511,), (1396210514,), (1396210516,), (1396210519,), (1396210532,), (1396210533,), (1396210534,), (1396210535,), (1396210537,), (1396210550,), (1396210551,), (1396210553,), (1396210555,), (1396210591,), (1396210593,), (1396210596,), (1396210601,), (1396210604,), (1396210626,), (1396210632,), (1396210634,), (1396210636,), (1396210638,), (1396210654,), (1396210655,), (1396210656,), (1396210657,), (1396210659,), (1396210689,), (1396210690,), (1396210692,), (1396210725,), (1396210708,), (1396210709,), (1396210710,), (1396210716,), (1396210722,), (1396210736,), (1396210738,), (1396210740,), (1396210742,), (1396210768,), (1396210770,), (1396210771,), (1396210794,), (1396210902,), (1396210953,), (1396210954,), (1396210979,), (1396210981,), (1396210984,), (1396210989,), (1396210994,), (1396211014,), (1396211015,), (1396211017,), (1396211079,), (1396211081,), (1396211108,), (1396211148,), (1396211150,), (1396211153,), (1396211156,), (1396211160,), (1396211200,), (1396211184,), (1396211186,), (1396211188,), (1396211191,), (1396211221,), (1396211223,), (1396211225,), (1396211229,), (1396211247,), (1396211252,), (1396211277,), (1396211278,), (1396211279,), (1396211281,), (1396211283,), (1396211287,), (1396211310,), (1396211312,), (1396211314,), (1396211317,), (1396211320,), (1396211333,), (1396211335,), (1396211337,), (1396211340,), (1396211344,), (1396211348,), (1396211378,), (1396211380,), (1396211381,), (1396211383,), (1396211386,), (1396211406,), (1396211410,), (1396211413,), (1396211433,), (1396211436,), (1396211440,), (1396211456,), (1396211457,), (1396211458,), (1396211460,), (1396211478,), (1396211479,), (1396211486,), (1396211491,), (1396211494,), (1396211511,), (1396211512,), (1396211544,), (1396211546,), (1396211549,), (1396211553,), (1396211557,), (1396211560,), (1396211579,), (1396211583,), (1396211587,), (1396211590,), (1396211594,), (1396211604,), (1396211606,), (1396211610,), (1396211619,), (1396211650,), (1396211652,), (1396211654,), (1396211687,), (1396211692,), (1396211694,), (1396211720,), (1396211722,), (1396211724,), (1396211989,), (1396212020,), (1396212055,), (1396212486,), (1396212517,), (1396212544,), (1396212725,), (1396212733,), (1396212735,), (1396212738,), (1396212741,), (1396212765,), (1396212766,), (1396212767,), (1396212769,), (1396212799,), (1396212801,), (1396212803,), (1396212827,), (1396212828,), (1396212829,), (1396212850,), (1396212851,), (1396212853,), (1396212890,), (1396212892,), (1396212894,), (1396212917,), (1396212918,), (1396212919,), (1396212950,), (1396212951,), (1396212953,), (1396212974,), (1396212976,), (1396212978,), (1396212981,), (1396213008,), (1396213004,), (1396213005,), (1396213006,), (1396213028,), (1396213061,), (1396213064,), (1396213067,), (1396213095,), (1396213096,), (1396213097,), (1396213098,), (1396213131,), (1396213133,), (1396213135,), (1396213138,), (1396213144,), (1396213468,), (1396213493,), (1396213521,), (1396213552,), (1396213582,), (1396213751,), (1396213777,), (1396213805,), (1396214053,), (1396214054,), (1396214055,), (1396214057,), (1396214061,), (1396214308,), (1396214310,), (1396214314,), (1396214321,), (1396214340,), (1396214468,), (1396214469,), (1396214470,), (1396214750,), (1396214751,), (1396214753,), (1396214774,), (1396214775,), (1396214778,), (1396214821,), (1396214823,), (1396214825,), (1396214828,), (1396214832,), (1396214847,), (1396214848,), (1396214849,), (1396214876,), (1396214878,), (1396214932,), (1396214957,), (1396214960,), (1396215002,), (1396215004,), (1396215006,), (1396215009,), (1396215032,), (1396215034,), (1396215035,), (1396215038,), (1396215058,), (1396215059,), (1396215060,), (1396215065,), (1396215070,), (1396215073,), (1396215105,), (1396215107,), (1396215109,), (1396215112,), (1396215116,), (1396215141,), (1396215143,), (1396215145,), (1396215148,), (1396215152,), (1396215156,), (1396215173,), (1396215175,), (1396215179,), (1396215370,), (1396215372,), (1396215399,), (1396215402,), (1396215404,), (1396215407,), (1396215410,), (1396215433,), (1396215453,), (1396215455,), (1396215462,), (1396215527,), (1396215529,), (1396215531,), (1396215551,), (1396215554,), (1396215557,), (1396215567,), (1396215594,), (1396215595,), (1396215596,), (1396215598,), (1396215617,), (1396215627,), (1396215633,), (1396215638,), (1396215642,), (1396215646,), (1396215668,), (1396215669,), (1396215670,), (1396215702,), (1396215706,), (1396215708,), (1396215711,), (1396215715,), (1396215719,), (1396215743,), (1396215745,), (1396215746,), (1396215767,), (1396215768,), (1396215769,), (1396215771,), (1396215775,), (1396215779,), (1396215801,), (1396215803,), (1396215805,), (1396215832,), (1396215833,), (1396215834,), (1396215836,), (1396215863,), (1396215865,), (1396215868,), (1396215872,), (1396216469,), (1396216501,), (1396216525,), (1396216530,), (1396216533,), (1396216618,), (1396216608,), (1396216611,), (1396216614,), (1396216638,), (1396216641,), (1396216644,), (1396216647,), (1396216651,), (1396216680,), (1396216683,), (1396216685,), (1396216687,), (1396216708,), (1396216711,), (1396216715,), (1396216719,), (1396216721,), (1396216729,), (1396217099,), (1396217145,), (1396217178,), (1396217218,), (1396217257,), (1396217293,), (1396217440,), (1396217442,), (1396217465,), (1396217499,), (1396217538,), (1396217709,), (1396217739,), (1396218195,), (1396218226,), (1396218257,), (1396218288,), (1396218501,), (1396218514,), (1396218528,), (1396218549,), (1396218555,), (1396218684,), (1396218685,), (1396218686,), (1396218925,), (1396218958,), (1396218990,), (1396219025,), (1396219067,), (1396219108,), (1396219445,), (1396219475,), (1396219516,), (1396219583,), (1396219647,), (1396219951,), (1396220011,), (1396220091,), (1396220155,), (1396220219,), (1396220603,), (1396220604,), (1396220634,), (1396220681,), (1396220682,), (1396220685,), (1396220688,), (1396220727,), (1396220714,), (1396220715,), (1396220716,), (1396220718,), (1396220723,), (1396220755,), (1396220757,), (1396220760,), (1396220764,), (1396220793,), (1396220990,), (1396221209,), (1396221211,), (1396221213,), (1396221216,), (1396221417,), (1396221448,), (1396221481,), (1396221513,), (1396221536,), (1396221608,), (1396221643,), (1396221648,), (1396221651,), (1396221735,), (1396221736,), (1396221740,), (1396221776,), (1396221778,), (1396221780,), (1396221783,), (1396221805,), (1396221806,), (1396221807,), (1396221809,), (1396221813,), (1396221815,), (1396221840,), (1396221843,), (1396221846,), (1396221849,), (1396221854,), (1396221867,), (1396221868,), (1396221870,), (1396221888,), (1396221893,), (1396221898,), (1396221903,), (1396221939,), (1396221941,), (1396221945,), (1396221948,), (1396221951,), (1396221954,), (1396221963,), (1396221965,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26112025': {'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([28913393]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] map_info['map_portfolio_photo'] : {28913393: [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893, 1396221888, 1396221870, 1396221868, 1396221867, 1396221854, 1396221849, 1396221846, 1396221843, 1396221840, 1396221815, 1396221813, 1396221809, 1396221807, 1396221806, 1396221805, 1396221783, 1396221780, 1396221778, 1396221776, 1396221740, 1396221736, 1396221735, 1396221651, 1396221648, 1396221643, 1396221608, 1396221536, 1396221513, 1396221481, 1396221448, 1396221417, 1396221216, 1396221213, 1396221211, 1396221209, 1396220990, 1396220793, 1396220764, 1396220760, 1396220757, 1396220755, 1396220723, 1396220718, 1396220716, 1396220715, 1396220714]} final : True mtd_id 4302 list_pids : [1396221965, 1396221963, 1396221954, 1396221951, 1396221948, 1396221945, 1396221941, 1396221939, 1396221903, 1396221898, 1396221893] Looping around the photos to save general results len do output : 1 /28913393Didn'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, '4119035') ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035') ('4302', None, None, None, None, None, None, None, '4119035') ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '28913393', 'None', None, None, None, None, '4119035'), ('4302', '28913393', '1396221965', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221963', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221954', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221951', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221948', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221945', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221941', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221939', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221903', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221898', None, None, None, None, None, '4119035'), ('4302', '28913393', '1396221893', None, None, None, None, None, '4119035')] time used for this insertion : 0.017029762268066406 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6425509452819824 time spend to save output : 0.01733541488647461 total time spend for step 5 : 2.659886360168457 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 (4119035) 2.21user 2.47system 0:13.36elapsed 35%CPU (0avgtext+0avgdata 160504maxresident)k 128inputs+14760outputs (6major+89580minor)pagefaults 0swaps