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 : 3227130 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 (4003511) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4003511) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210637 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4003511'] with mtr_portfolio_ids : ['28210637'] and first list_photo_ids : [] new path : /proc/3227130/ Name: python3 Umask: 0002 State: R (running) Tgid: 3227130 Ngid: 0 Pid: 3227130 PPid: 3227125 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3227130 NSpid: 3227130 NSpgid: 3226341 NSsid: 3226341 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98084 kB VmRSS: 98084 kB RssAnon: 59912 kB RssFile: 38172 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 33 nonvoluntary_ctxt_switches: 169 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3227130', 'Ngid': '0', 'Pid': '3227130', 'PPid': '3227125', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3227130', 'NSpid': '3227130', 'NSpgid': '3226341', 'NSsid': '3226341', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98084 kB', 'VmRSS': '98084 kB', 'RssAnon': '59912 kB', 'RssFile': '38172 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '33', 'nonvoluntary_ctxt_switches': '169'} ('datou_batch_current', '3227130', '1106908', '0', '1106884', '865636', '98084', b'', 'marlene', '4003511') 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 (28210637) 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 (4003511 ) ) 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 (28210637) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392755663, 'portfolio_id': 28210637}, {'photo_id': 1392755661, 'portfolio_id': 28210637}, {'photo_id': 1392755649, 'portfolio_id': 28210637}, {'photo_id': 1392755614, 'portfolio_id': 28210637}, {'photo_id': 1392755067, 'portfolio_id': 28210637}, {'photo_id': 1392754999, 'portfolio_id': 28210637}, {'photo_id': 1392754964, 'portfolio_id': 28210637}, {'photo_id': 1392754931, 'portfolio_id': 28210637}, {'photo_id': 1392754899, 'portfolio_id': 28210637}, {'photo_id': 1392754867, 'portfolio_id': 28210637}, {'photo_id': 1392754533, 'portfolio_id': 28210637}, {'photo_id': 1392754497, 'portfolio_id': 28210637}, {'photo_id': 1392754461, 'portfolio_id': 28210637}, {'photo_id': 1392754424, 'portfolio_id': 28210637}, {'photo_id': 1392754390, 'portfolio_id': 28210637}, {'photo_id': 1392753963, 'portfolio_id': 28210637}, {'photo_id': 1392753928, 'portfolio_id': 28210637}, {'photo_id': 1392753893, 'portfolio_id': 28210637}, {'photo_id': 1392753856, 'portfolio_id': 28210637}, {'photo_id': 1392753485, 'portfolio_id': 28210637}, {'photo_id': 1392753457, 'portfolio_id': 28210637}, {'photo_id': 1392753454, 'portfolio_id': 28210637}, {'photo_id': 1392753440, 'portfolio_id': 28210637}, {'photo_id': 1392753406, 'portfolio_id': 28210637}, {'photo_id': 1392753088, 'portfolio_id': 28210637}, {'photo_id': 1392753084, 'portfolio_id': 28210637}, {'photo_id': 1392753081, 'portfolio_id': 28210637}, {'photo_id': 1392753079, 'portfolio_id': 28210637}, {'photo_id': 1392753077, 'portfolio_id': 28210637}, {'photo_id': 1392752851, 'portfolio_id': 28210637}, {'photo_id': 1392752818, 'portfolio_id': 28210637}, {'photo_id': 1392752786, 'portfolio_id': 28210637}, {'photo_id': 1392752753, 'portfolio_id': 28210637}, {'photo_id': 1392752331, 'portfolio_id': 28210637}, {'photo_id': 1392752299, 'portfolio_id': 28210637}, {'photo_id': 1392752261, 'portfolio_id': 28210637}, {'photo_id': 1392752229, 'portfolio_id': 28210637}, {'photo_id': 1392752194, 'portfolio_id': 28210637}, {'photo_id': 1392752010, 'portfolio_id': 28210637}, {'photo_id': 1392751977, 'portfolio_id': 28210637}, {'photo_id': 1392751944, 'portfolio_id': 28210637}, {'photo_id': 1392751911, 'portfolio_id': 28210637}] map_portfolio_id_photo_id: {28210637: [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867, 1392754533, 1392754497, 1392754461, 1392754424, 1392754390, 1392753963, 1392753928, 1392753893, 1392753856, 1392753485, 1392753457, 1392753454, 1392753440, 1392753406, 1392753088, 1392753084, 1392753081, 1392753079, 1392753077, 1392752851, 1392752818, 1392752786, 1392752753, 1392752331, 1392752299, 1392752261, 1392752229, 1392752194, 1392752010, 1392751977, 1392751944, 1392751911]} ##### 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.015330076217651367 #### 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 5 14:10:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28210637) 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 : 28210637 get user id for portfolio 28210637 get sub ptf for main ptf 28210637, type 3726 and hashtags ['cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'mal_croppe', 'autre_refus', 'papier', 'plastique', 'metal', 'flou', 'kraft', 'Carton_gris'] 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`=28210637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','autre_refus','papier','plastique','metal','flou','kraft','Carton_gris')) 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`=28210637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','autre_refus','papier','plastique','metal','flou','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28210637, 'sub_port_id': 28210668, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082646, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'papier': {'main_port_id': 28210637, 'sub_port_id': 28210669, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082647, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'plastique': {'main_port_id': 28210637, 'sub_port_id': 28210670, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082648, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'autre_refus': {'main_port_id': 28210637, 'sub_port_id': 28210671, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082649, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'mal_croppe': {'main_port_id': 28210637, 'sub_port_id': 28210672, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082650, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28210637, 'sub_port_id': 28210673, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082651, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'Carton_brun': {'main_port_id': 28210637, 'sub_port_id': 28210674, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082652, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'cartonnette': {'main_port_id': 28210637, 'sub_port_id': 28210675, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082653, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'metal': {'main_port_id': 28210637, 'sub_port_id': 28210676, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082654, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'environnement': {'main_port_id': 28210637, 'sub_port_id': 28210677, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082655, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'kraft': {'main_port_id': 28210637, 'sub_port_id': 28210678, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082656, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}, 'flou': {'main_port_id': 28210637, 'sub_port_id': 28210679, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082657, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28210668 , 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=28210637 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 (28210668) result : ((1392754805,), (1392754807,), (1392754810,), (1392754812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210669 , 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=28210637 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 (28210669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210670 , 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=28210637 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 (28210670) result : ((1392753071,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210671 , 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=28210637 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 (28210671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210672 , 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=28210637 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 (28210672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210673 , 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=28210637 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 (28210673) result : ((1392753063,), (1392755717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210674 , 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=28210637 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 (28210674) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210675 , 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=28210637 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 (28210675) result : ((1392753070,), (1392754823,), (1392754825,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210676 , 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=28210637 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 (28210676) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210677 , 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=28210637 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 (28210677) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210678 , 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=28210637 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 (28210678) result : ((1392753072,), (1392754836,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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 28210679 , 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=28210637 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 (28210679) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28210637) result : ((1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) 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`=28210637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','autre_refus','papier','plastique','metal','flou','kraft','Carton_gris')) 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`=28210637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','autre_refus','papier','plastique','metal','flou','kraft','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 28210637, 'sub_port_id': 28210680, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082658, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'papier': {'main_port_id': 28210637, 'sub_port_id': 28210681, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082659, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'plastique': {'main_port_id': 28210637, 'sub_port_id': 28210682, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082660, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'autre_refus': {'main_port_id': 28210637, 'sub_port_id': 28210683, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082661, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'mal_croppe': {'main_port_id': 28210637, 'sub_port_id': 28210684, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082662, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 28210637, 'sub_port_id': 28210685, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082663, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'Carton_brun': {'main_port_id': 28210637, 'sub_port_id': 28210686, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082664, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'cartonnette': {'main_port_id': 28210637, 'sub_port_id': 28210687, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082665, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'metal': {'main_port_id': 28210637, 'sub_port_id': 28210688, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082666, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'environnement': {'main_port_id': 28210637, 'sub_port_id': 28210689, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082667, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'kraft': {'main_port_id': 28210637, 'sub_port_id': 28210690, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082668, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}, 'flou': {'main_port_id': 28210637, 'sub_port_id': 28210691, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19082669, 'last_updated_at': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 14, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 14, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210677 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28210691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28210679 lien utilise dans velours : https://marlene.fotonower.com/velours/28210680,28210681,28210682,28210683,28210684,28210685,28210686,28210687,28210688,28210689,28210690,28210691?tags=Carton_gris,papier,plastique,autre_refus,mal_croppe,Teint_Dans_La_Masse,Carton_brun,cartonnette,metal,environnement,kraft,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28210637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] map_info['map_portfolio_photo'] : {28210637: [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867, 1392754533, 1392754497, 1392754461, 1392754424, 1392754390, 1392753963, 1392753928, 1392753893, 1392753856, 1392753485, 1392753457, 1392753454, 1392753440, 1392753406, 1392753088, 1392753084, 1392753081, 1392753079, 1392753077, 1392752851, 1392752818, 1392752786, 1392752753, 1392752331, 1392752299, 1392752261, 1392752229, 1392752194, 1392752010, 1392751977, 1392751944, 1392751911]} final : False mtd_id 4302 list_pids : [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] Looping around the photos to save general results len do output : 1 /28210637. 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, '4003511') ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511') 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', None, '28210637', "{'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679}", None, None, None, None, '4003511'), ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511')] time used for this insertion : 0.013862848281860352 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.652268886566162 time spend to save output : 0.014195680618286133 total time spend for step 1 : 1.6664645671844482 step2:final Wed Nov 5 14:10:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28210637) 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 28210637 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392752010,1392751977,1392751944,1392751911,1392752331,1392752299,1392752261,1392752229,1392752194,1392752851,1392752818,1392752786,1392752753,1392753088,1392753084,1392753081,1392753079,1392753077,1392753485,1392753457,1392753454,1392753440,1392753406,1392753963,1392753928,1392753893,1392753856,1392754533,1392754497,1392754461,1392754424,1392754390,1392755067,1392754999,1392754964,1392754931,1392754899,1392754867,1392755663,1392755661,1392755649,1392755614); 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([28210637]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} new output for save of step final : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] map_info['map_portfolio_photo'] : {28210637: [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867, 1392754533, 1392754497, 1392754461, 1392754424, 1392754390, 1392753963, 1392753928, 1392753893, 1392753856, 1392753485, 1392753457, 1392753454, 1392753440, 1392753406, 1392753088, 1392753084, 1392753081, 1392753079, 1392753077, 1392752851, 1392752818, 1392752786, 1392752753, 1392752331, 1392752299, 1392752261, 1392752229, 1392752194, 1392752010, 1392751977, 1392751944, 1392751911]} final : False mtd_id 4302 list_pids : [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] Looping around the photos to save general results len do output : 10 /1392755663.Didn't retrieve data . /1392755661.Didn't retrieve data . /1392755649.Didn't retrieve data . /1392755614.Didn't retrieve data . /1392755067.Didn't retrieve data . /1392754999.Didn't retrieve data . /1392754964.Didn't retrieve data . /1392754931.Didn't retrieve data . /1392754899.Didn't retrieve data . /1392754867.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, '4003511') ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '28210637', '1392755663', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392755661', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392755649', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392755614', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392755067', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392754999', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392754964', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392754931', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392754899', '0.05804173383304044', None, None, None, None, '4003511'), ('4302', '28210637', '1392754867', '0.05804173383304044', None, None, None, None, '4003511')] time used for this insertion : 0.01616501808166504 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07053637504577637 time spend to save output : 0.01673269271850586 total time spend for step 2 : 0.08726906776428223 step3:velours_tree Wed Nov 5 14:10:32 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 : {28210637: [{'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679}]} input_args_next_step : {28210637: ()} output_args : {28210637: [{'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679}]} args : 28210637 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28210637) 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([28210637]) 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.3208138942718506 time spend to save output : 5.91278076171875e-05 total time spend for step 3 : 0.3208730220794678 step4:send_mail_cod Wed Nov 5 14:10:32 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 : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} input_args_next_step : {1392755663: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392755663 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392755661 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392755649 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392755614 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392755067 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392754999 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392754964 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392754931 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392754899 depend.output_id : 0 input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ()} output_args : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',)} args : 1392754867 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 : {28210637: [{'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679}]} input_args_next_step : {1392755663: ('0.05804173383304044',), 1392755661: ('0.05804173383304044',), 1392755649: ('0.05804173383304044',), 1392755614: ('0.05804173383304044',), 1392755067: ('0.05804173383304044',), 1392754999: ('0.05804173383304044',), 1392754964: ('0.05804173383304044',), 1392754931: ('0.05804173383304044',), 1392754899: ('0.05804173383304044',), 1392754867: ('0.05804173383304044',), 28210637: ()} output_args : {28210637: [{'Carton_gris': 28210668, 'papier': 28210669, 'plastique': 28210670, 'autre_refus': 28210671, 'mal_croppe': 28210672, 'Teint_Dans_La_Masse': 28210673, 'Carton_brun': 28210674, 'cartonnette': 28210675, 'metal': 28210676, 'environnement': 28210677, 'kraft': 28210678, 'flou': 28210679}]} args : 28210637 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 :11, first value : ('0.05804173383304044',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28210637) 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 (1392755663,1392755661,1392755649,1392755614,1392755067,1392754999,1392754964,1392754931,1392754899,1392754867) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392754867 begin to download photo : 1392754964 begin to download photo : 1392755614 begin to download photo : 1392755663 download finish for photo 1392754867 begin to download photo : 1392754899 download finish for photo 1392755663 download finish for photo 1392754964 begin to download photo : 1392754999 download finish for photo 1392755614 begin to download photo : 1392755649 download finish for photo 1392754899 begin to download photo : 1392754931 download finish for photo 1392755649 begin to download photo : 1392755661 download finish for photo 1392754999 begin to download photo : 1392755067 download finish for photo 1392754931 download finish for photo 1392755067 download finish for photo 1392755661 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P28210637_05-11-2025_14_10_32.pdf 28210670 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=28210670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392753071: '1762347806_2297752_1392752299_f71a9953086edfceef4ad72aa901fda6_rle_crop_4021932065_0.png'} change filename to text .imagette282106701762348232/ imagette282106701762348232/1762347806_2297752_1392752299_f71a9953086edfceef4ad72aa901fda6_rle_crop_4021932065_0.png.png imagette282106711762348232/ imagette282106721762348232/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d27b57fb9c997bc197d6c5b3db1d2bed_67857539.png imagette282106701762348232 28210671 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=28210671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282106711762348232 28210672 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=28210672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282106721762348232 28210675 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=28210675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392753070: '1762347806_2297752_1392752299_f71a9953086edfceef4ad72aa901fda6_rle_crop_4021932066_0.png', 1392754823: '1762348047_2309805_1392751944_f75aa9c3c730d879bd35d1ed1943f59c_rle_crop_4021941629_0.png', 1392754825: '1762348047_2309805_1392751911_7a19084bd77674be86dd48cb4c71c5ba_rle_crop_4021941644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4af59c79b17c127a8b37ce62c779a4df_44443461.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/cf07756f90036a9945e2907a0d0fb95d_19142708.png change filename to text .imagette282106751762348232/ imagette282106751762348232/1762348047_2309805_1392751944_f75aa9c3c730d879bd35d1ed1943f59c_rle_crop_4021941629_0.png.png imagette282106751762348232/1762347806_2297752_1392752299_f71a9953086edfceef4ad72aa901fda6_rle_crop_4021932066_0.png.png imagette282106751762348232/1762348047_2309805_1392751911_7a19084bd77674be86dd48cb4c71c5ba_rle_crop_4021941644_0.png.png imagette282106761762348233/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/00c9f125a69c340285a4ee9ddf82d891_29160957.png imagette282106751762348232 28210676 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=28210676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282106761762348233 28210678 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=28210678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392753072: '1762347806_2297752_1392752261_8105c08bbf232298ffdb0cface8f2b93_rle_crop_4021932091_0.png', 1392754836: '1762348047_2309805_1392752010_a9fba819e85c9bf404fa1e0907aa11f5_rle_crop_4021941600_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/92aaf2f2e6cd1affe9aa28a5b6e10faa_89840204.png change filename to text .imagette282106781762348233/ imagette282106781762348233/1762347806_2297752_1392752261_8105c08bbf232298ffdb0cface8f2b93_rle_crop_4021932091_0.png.png imagette282106781762348233/1762348047_2309805_1392752010_a9fba819e85c9bf404fa1e0907aa11f5_rle_crop_4021941600_0.png.png imagette282106791762348233/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f533c0c5d320583fa44b86b112cb19b0_88037994.png imagette282106781762348233 28210679 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=28210679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282106791762348233 28210668 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=28210668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392754805: '1762348047_2309805_1392752010_a9fba819e85c9bf404fa1e0907aa11f5_rle_crop_4021941603_0.png', 1392754807: '1762348047_2309805_1392751977_a68be3748360b6cb7af72a5e0921c394_rle_crop_4021941612_0.png', 1392754810: '1762348047_2309805_1392751944_f75aa9c3c730d879bd35d1ed1943f59c_rle_crop_4021941633_0.png', 1392754812: '1762348047_2309805_1392751911_7a19084bd77674be86dd48cb4c71c5ba_rle_crop_4021941639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6cba4fbfabf8d391f504ee043397387d_4895703.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/303c555f543fbd464769a792e1d3ce28_2873996.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/10b385f935c82316030306195f67bbc3_14820956.png change filename to text .imagette282106681762348233/ imagette282106681762348233/1762348047_2309805_1392752010_a9fba819e85c9bf404fa1e0907aa11f5_rle_crop_4021941603_0.png.png imagette282106681762348233/1762348047_2309805_1392751944_f75aa9c3c730d879bd35d1ed1943f59c_rle_crop_4021941633_0.png.png imagette282106681762348233/1762348047_2309805_1392751911_7a19084bd77674be86dd48cb4c71c5ba_rle_crop_4021941639_0.png.png imagette282106681762348233/1762348047_2309805_1392751977_a68be3748360b6cb7af72a5e0921c394_rle_crop_4021941612_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6c0a7e53550abc52ed138bcd453e593d_99395835.png imagette282106681762348233 28210673 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=28210673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392753063: '1762347806_2297752_1392752229_ccd2f4d3acf2bf31badef8d7a2599639_rle_crop_4021932102_0.png', 1392755717: '1762348146_2314628_1392753856_f4f43c389a9fc68ef4470b145d53e84a_rle_crop_4021941702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/c5a58a9e70a2ab0583d41afa9233c06e_70054135.png change filename to text .imagette282106731762348233/ imagette282106731762348233/1762347806_2297752_1392752229_ccd2f4d3acf2bf31badef8d7a2599639_rle_crop_4021932102_0.png.png imagette282106731762348233/1762348146_2314628_1392753856_f4f43c389a9fc68ef4470b145d53e84a_rle_crop_4021941702_0.png.png imagette282106741762348233/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2673b8e594c8a8218a47cfeffdb48da4_75132088.png imagette282106731762348233 28210674 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=28210674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282106741762348233 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28210637 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28210680,28210681,28210682,28210683,28210684,28210685,28210686,28210687,28210688,28210689,28210690,28210691?tags=Carton_gris,papier,plastique,autre_refus,mal_croppe,Teint_Dans_La_Masse,Carton_brun,cartonnette,metal,environnement,kraft,flou your option no_mail is active, we will not send the real mail to your client args[1392755663] : ('0.05804173383304044',) no score found for photo 1392755663 We are sending mail with results at report@fotonower.com args[1392755661] : ('0.05804173383304044',) no score found for photo 1392755661 We are sending mail with results at report@fotonower.com args[1392755649] : ('0.05804173383304044',) no score found for photo 1392755649 We are sending mail with results at report@fotonower.com args[1392755614] : ('0.05804173383304044',) no score found for photo 1392755614 We are sending mail with results at report@fotonower.com args[1392755067] : ('0.05804173383304044',) no score found for photo 1392755067 We are sending mail with results at report@fotonower.com args[1392754999] : ('0.05804173383304044',) no score found for photo 1392754999 We are sending mail with results at report@fotonower.com args[1392754964] : ('0.05804173383304044',) no score found for photo 1392754964 We are sending mail with results at report@fotonower.com args[1392754931] : ('0.05804173383304044',) no score found for photo 1392754931 We are sending mail with results at report@fotonower.com args[1392754899] : ('0.05804173383304044',) no score found for photo 1392754899 We are sending mail with results at report@fotonower.com args[1392754867] : ('0.05804173383304044',) no score found for photo 1392754867 We are sending mail with results at report@fotonower.com refus_total : 0.05804173383304044 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=28210637 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_P28210637_05-11-2025_14_10_32.pdf results_Auto_P28210637_05-11-2025_14_10_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_10_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28210637','results_Auto_P28210637_05-11-2025_14_10_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_10_32.pdf','pdf','','0.13','0.05804173383304044') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28210637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] map_info['map_portfolio_photo'] : {28210637: [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867, 1392754533, 1392754497, 1392754461, 1392754424, 1392754390, 1392753963, 1392753928, 1392753893, 1392753856, 1392753485, 1392753457, 1392753454, 1392753440, 1392753406, 1392753088, 1392753084, 1392753081, 1392753079, 1392753077, 1392752851, 1392752818, 1392752786, 1392752753, 1392752331, 1392752299, 1392752261, 1392752229, 1392752194, 1392752010, 1392751977, 1392751944, 1392751911]} final : False mtd_id 4302 list_pids : [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] 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, '4003511') ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '28210637', '1392755663', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511')] time used for this insertion : 0.01918482780456543 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.03421688079834 time spend to save output : 0.01948690414428711 total time spend for step 4 : 3.053703784942627 step5:split_time_score Wed Nov 5 14:10:35 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 : ['28210637'] 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 : [('28210637',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28210637) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392755663: {'path': 'temp/1762348232_3227130_1392755663_9cee136b72610e99f544d0a6cc45a3de.jpg', 'extension': 'jpg'}, 1392754867: {'path': 'temp/1762348232_3227130_1392754867_8b4ae3df8be18e987597c230dc39bed0.jpg', 'extension': 'jpg'}, 1392754899: {'path': 'temp/1762348232_3227130_1392754899_b5c66c81ee91dc6e4eda3a49303f3559.jpg', 'extension': 'jpg'}, 1392754931: {'path': 'temp/1762348232_3227130_1392754931_8cf15fe9a046464b95faefe69c0189f6.jpg', 'extension': 'jpg'}, 1392754964: {'path': 'temp/1762348232_3227130_1392754964_7c7f37993d878460484b5d2dede3981e.jpg', 'extension': 'jpg'}, 1392754999: {'path': 'temp/1762348232_3227130_1392754999_6e4f7814bf7aa5651627bbc71ac4fb57.jpg', 'extension': 'jpg'}, 1392755067: {'path': 'temp/1762348232_3227130_1392755067_e491bd0ffa5ea1dce68e513e998d9ef8.jpg', 'extension': 'jpg'}, 1392755614: {'path': 'temp/1762348232_3227130_1392755614_64d60496b8338c09d2cb2cab2078c908.jpg', 'extension': 'jpg'}, 1392755649: {'path': 'temp/1762348232_3227130_1392755649_ad6ccb92f6f7acc6527977b6e01e1b26.jpg', 'extension': 'jpg'}, 1392755661: {'path': 'temp/1762348232_3227130_1392755661_cce23ddbc8b7853d11d6cb548758c891.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 = 28210637; (('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 = 28210637 group by h (('14', 42),) 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=28210637 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 (28210637) 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 (28210637) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05112025 28210637 Nombre de photos uploadées : 42 / 23040 (0%) 05112025 28210637 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 05112025 28210637 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1392752010, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a9fba819e85c9bf404fa1e0907aa11f5.jpg', 'username': None, 'uploaded_at': 1762347667, 'text': 'image_05112025_14_00_13_010210m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392751977, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a68be3748360b6cb7af72a5e0921c394.jpg', 'username': None, 'uploaded_at': 1762347667, 'text': 'image_05112025_14_00_23_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392751944, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f75aa9c3c730d879bd35d1ed1943f59c.jpg', 'username': None, 'uploaded_at': 1762347667, 'text': 'image_05112025_14_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392751911, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/7a19084bd77674be86dd48cb4c71c5ba.jpg', 'username': None, 'uploaded_at': 1762347667, 'text': 'image_05112025_14_00_44_010136m0.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.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002027273178100586 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28210637, '2025-11-05' ) 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-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2512508,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21620678901672363 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= 2512508 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28186038, 'dashboard_result_id': 16842490, '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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28186394, 'dashboard_result_id': 16842491, '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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28187294, 'dashboard_result_id': 16842492, '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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28188183, 'dashboard_result_id': 16842493, '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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28189317, 'dashboard_result_id': 16842494, '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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28189664, 'dashboard_result_id': 16842495, '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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28189717, 'dashboard_result_id': 16842496, '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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28190150, 'dashboard_result_id': 16842497, '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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28190820, 'dashboard_result_id': 16842498, '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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28191207, 'dashboard_result_id': 16842499, '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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28191692, 'dashboard_result_id': 16842500, '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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28192332, 'dashboard_result_id': 16842501, '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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28193155, 'dashboard_result_id': 16842502, '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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28193965, 'dashboard_result_id': 16842503, '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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28194584, 'dashboard_result_id': 16842505, '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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28195092, 'dashboard_result_id': 16842507, '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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28195794, 'dashboard_result_id': 16842509, '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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28196359, 'dashboard_result_id': 16842510, '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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28197077, 'dashboard_result_id': 16842511, '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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28199380, 'dashboard_result_id': 16842512, '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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28200141, 'dashboard_result_id': 16842513, '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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28200911, 'dashboard_result_id': 16842514, '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_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28201755, 'dashboard_result_id': 16842515, '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_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28202496, 'dashboard_result_id': 16842516, '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_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28203318, 'dashboard_result_id': 16842517, '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_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28204048, 'dashboard_result_id': 16842518, '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_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28204978, 'dashboard_result_id': 16842519, '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_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28205788, 'dashboard_result_id': 16842520, '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_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28206586, 'dashboard_result_id': 16842521, '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_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28207204, 'dashboard_result_id': 16842522, '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_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28209787, 'dashboard_result_id': 16842523, '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_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28210210, 'dashboard_result_id': 16842524, '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_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2524855, 'mtr_portfolio_id': 28210637, 'dashboard_result_id': 16842525, '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_P28210637_05-11-2025_14_09_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, '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 = 28186038 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': 4000969, 'mtr_portfolio_id': 28186038, 'created_at': datetime.datetime(2025, 11, 5, 6, 14, 30), 'result': '0.10490548635916874', 'result_long': None, 'result_double': None}] Qualite : 0.10490548635916874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186038 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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}" where mtr_portfolio_id = 28186038 and dashboard_run_id = 2524855 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`=28186038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842490, 0.10490548635916874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, '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 = 28186394 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': 4000970, 'mtr_portfolio_id': 28186394, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 29), 'result': '0.05826149300923193', 'result_long': None, 'result_double': None}] Qualite : 0.05826149300923193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186394 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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}" where mtr_portfolio_id = 28186394 and dashboard_run_id = 2524855 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`=28186394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842491, 0.05826149300923193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, '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 = 28187294 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': 4000971, 'mtr_portfolio_id': 28187294, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 59), 'result': '0.0931771878060378', 'result_long': None, 'result_double': None}] Qualite : 0.0931771878060378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28187294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28187294 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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}" where mtr_portfolio_id = 28187294 and dashboard_run_id = 2524855 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`=28187294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842492, 0.0931771878060378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, '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 = 28188183 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': 4000972, 'mtr_portfolio_id': 28188183, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 11), 'result': '0.05647843102246723', 'result_long': None, 'result_double': None}] Qualite : 0.05647843102246723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28188183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28188183 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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}" where mtr_portfolio_id = 28188183 and dashboard_run_id = 2524855 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`=28188183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842493, 0.05647843102246723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, '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 = 28189317 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': 4000974, 'mtr_portfolio_id': 28189317, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 28), 'result': '0.05720052889085852', 'result_long': None, 'result_double': None}] Qualite : 0.05720052889085852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189317 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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}" where mtr_portfolio_id = 28189317 and dashboard_run_id = 2524855 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`=28189317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842494, 0.05720052889085852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, '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 = 28189664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28189664 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189664 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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}" where mtr_portfolio_id = 28189664 and dashboard_run_id = 2524855 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189717 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': 4001040, 'mtr_portfolio_id': 28189717, 'created_at': datetime.datetime(2025, 11, 5, 6, 3, 29), 'result': '0.054422044536203015', 'result_long': None, 'result_double': None}] Qualite : 0.054422044536203015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189717 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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}" where mtr_portfolio_id = 28189717 and dashboard_run_id = 2524855 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`=28189717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842496, 0.054422044536203015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, '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 = 28190150 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': 4001101, 'mtr_portfolio_id': 28190150, 'created_at': datetime.datetime(2025, 11, 5, 6, 18, 59), 'result': '0.04157195791823398', 'result_long': None, 'result_double': None}] Qualite : 0.04157195791823398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190150 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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}" where mtr_portfolio_id = 28190150 and dashboard_run_id = 2524855 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`=28190150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842497, 0.04157195791823398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, '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 = 28190820 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': 4001155, 'mtr_portfolio_id': 28190820, 'created_at': datetime.datetime(2025, 11, 5, 6, 33, 32), 'result': '0.04567810037376079', 'result_long': None, 'result_double': None}] Qualite : 0.04567810037376079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190820 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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}" where mtr_portfolio_id = 28190820 and dashboard_run_id = 2524855 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`=28190820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842498, 0.04567810037376079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, '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 = 28191207 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': 4001208, 'mtr_portfolio_id': 28191207, 'created_at': datetime.datetime(2025, 11, 5, 6, 46, 58), 'result': '0.042140180101018006', 'result_long': None, 'result_double': None}] Qualite : 0.042140180101018006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191207 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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}" where mtr_portfolio_id = 28191207 and dashboard_run_id = 2524855 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`=28191207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842499, 0.042140180101018006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, '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 = 28191692 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': 4001271, 'mtr_portfolio_id': 28191692, 'created_at': datetime.datetime(2025, 11, 5, 7, 3, 28), 'result': '0.040699860032621174', 'result_long': None, 'result_double': None}] Qualite : 0.040699860032621174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191692 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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}" where mtr_portfolio_id = 28191692 and dashboard_run_id = 2524855 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`=28191692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842500, 0.040699860032621174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, '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 = 28192332 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': 4001368, 'mtr_portfolio_id': 28192332, 'created_at': datetime.datetime(2025, 11, 5, 7, 18, 33), 'result': '0.04510552243820985', 'result_long': None, 'result_double': None}] Qualite : 0.04510552243820985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28192332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28192332 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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}" where mtr_portfolio_id = 28192332 and dashboard_run_id = 2524855 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`=28192332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842501, 0.04510552243820985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, '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 = 28193155 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': 4001469, 'mtr_portfolio_id': 28193155, 'created_at': datetime.datetime(2025, 11, 5, 7, 35, 30), 'result': '0.035344376976183166', 'result_long': None, 'result_double': None}] Qualite : 0.035344376976183166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193155 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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}" where mtr_portfolio_id = 28193155 and dashboard_run_id = 2524855 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`=28193155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842502, 0.035344376976183166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, '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 = 28193965 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': 4001542, 'mtr_portfolio_id': 28193965, 'created_at': datetime.datetime(2025, 11, 5, 7, 51, 28), 'result': '0.03492442550408627', 'result_long': None, 'result_double': None}] Qualite : 0.03492442550408627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193965 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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}" where mtr_portfolio_id = 28193965 and dashboard_run_id = 2524855 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`=28193965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842503, 0.03492442550408627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, '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 = 28194584 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': 4001615, 'mtr_portfolio_id': 28194584, 'created_at': datetime.datetime(2025, 11, 5, 8, 4, 31), 'result': '0.06689196525731245', 'result_long': None, 'result_double': None}] Qualite : 0.06689196525731245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28194584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28194584 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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}" where mtr_portfolio_id = 28194584 and dashboard_run_id = 2524855 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`=28194584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842505, 0.06689196525731245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, '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 = 28195092 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': 4001698, 'mtr_portfolio_id': 28195092, 'created_at': datetime.datetime(2025, 11, 5, 8, 19, 59), 'result': '0.060181082762552726', 'result_long': None, 'result_double': None}] Qualite : 0.060181082762552726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195092 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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}" where mtr_portfolio_id = 28195092 and dashboard_run_id = 2524855 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`=28195092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842507, 0.060181082762552726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, '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 = 28195794 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': 4001779, 'mtr_portfolio_id': 28195794, 'created_at': datetime.datetime(2025, 11, 5, 8, 32, 57), 'result': '0.06818243271873463', 'result_long': None, 'result_double': None}] Qualite : 0.06818243271873463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195794 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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}" where mtr_portfolio_id = 28195794 and dashboard_run_id = 2524855 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`=28195794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842509, 0.06818243271873463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, '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 = 28196359 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': 4001848, 'mtr_portfolio_id': 28196359, 'created_at': datetime.datetime(2025, 11, 5, 8, 47), 'result': '0.04766140661514155', 'result_long': None, 'result_double': None}] Qualite : 0.04766140661514155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28196359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28196359 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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}" where mtr_portfolio_id = 28196359 and dashboard_run_id = 2524855 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`=28196359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842510, 0.04766140661514155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, '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 = 28197077 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': 4001928, 'mtr_portfolio_id': 28197077, 'created_at': datetime.datetime(2025, 11, 5, 9, 33), 'result': '0.04900076404033409', 'result_long': None, 'result_double': None}] Qualite : 0.04900076404033409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28197077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28197077 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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}" where mtr_portfolio_id = 28197077 and dashboard_run_id = 2524855 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`=28197077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842511, 0.04900076404033409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, '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 = 28199380 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': 4002230, 'mtr_portfolio_id': 28199380, 'created_at': datetime.datetime(2025, 11, 5, 9, 46, 58), 'result': '0.06389193113328451', 'result_long': None, 'result_double': None}] Qualite : 0.06389193113328451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28199380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28199380 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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}" where mtr_portfolio_id = 28199380 and dashboard_run_id = 2524855 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`=28199380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842512, 0.06389193113328451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, '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 = 28200141 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': 4002290, 'mtr_portfolio_id': 28200141, 'created_at': datetime.datetime(2025, 11, 5, 10, 2, 59), 'result': '0.047759217419174355', 'result_long': None, 'result_double': None}] Qualite : 0.047759217419174355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200141 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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}" where mtr_portfolio_id = 28200141 and dashboard_run_id = 2524855 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`=28200141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842513, 0.047759217419174355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, '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 = 28200911 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': 4002365, 'mtr_portfolio_id': 28200911, 'created_at': datetime.datetime(2025, 11, 5, 10, 17, 31), 'result': '0.07736636406923199', 'result_long': None, 'result_double': None}] Qualite : 0.07736636406923199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200911 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_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}" where mtr_portfolio_id = 28200911 and dashboard_run_id = 2524855 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`=28200911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842514, 0.07736636406923199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, '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 = 28201755 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': 4002455, 'mtr_portfolio_id': 28201755, 'created_at': datetime.datetime(2025, 11, 5, 10, 34, 59), 'result': '0.06977429419581858', 'result_long': None, 'result_double': None}] Qualite : 0.06977429419581858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28201755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28201755 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_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}" where mtr_portfolio_id = 28201755 and dashboard_run_id = 2524855 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`=28201755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842515, 0.06977429419581858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, '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 = 28202496 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': 4002545, 'mtr_portfolio_id': 28202496, 'created_at': datetime.datetime(2025, 11, 5, 10, 46, 57), 'result': '0.06273645055601144', 'result_long': None, 'result_double': None}] Qualite : 0.06273645055601144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28202496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28202496 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_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}" where mtr_portfolio_id = 28202496 and dashboard_run_id = 2524855 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`=28202496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842516, 0.06273645055601144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, '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 = 28203318 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': 4002649, 'mtr_portfolio_id': 28203318, 'created_at': datetime.datetime(2025, 11, 5, 11, 2, 57), 'result': '0.06200466522443431', 'result_long': None, 'result_double': None}] Qualite : 0.06200466522443431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28203318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28203318 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_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}" where mtr_portfolio_id = 28203318 and dashboard_run_id = 2524855 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`=28203318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842517, 0.06200466522443431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, '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 = 28204048 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': 4002744, 'mtr_portfolio_id': 28204048, 'created_at': datetime.datetime(2025, 11, 5, 11, 18, 58), 'result': '0.055167291575319986', 'result_long': None, 'result_double': None}] Qualite : 0.055167291575319986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204048 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_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}" where mtr_portfolio_id = 28204048 and dashboard_run_id = 2524855 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`=28204048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842518, 0.055167291575319986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, '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 = 28204978 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': 4002860, 'mtr_portfolio_id': 28204978, 'created_at': datetime.datetime(2025, 11, 5, 11, 33, 31), 'result': '0.05608669758419398', 'result_long': None, 'result_double': None}] Qualite : 0.05608669758419398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204978 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_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}" where mtr_portfolio_id = 28204978 and dashboard_run_id = 2524855 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`=28204978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842519, 0.05608669758419398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, '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 = 28205788 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': 4002950, 'mtr_portfolio_id': 28205788, 'created_at': datetime.datetime(2025, 11, 5, 11, 46, 59), 'result': '0.05978757272622658', 'result_long': None, 'result_double': None}] Qualite : 0.05978757272622658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28205788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28205788 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_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}" where mtr_portfolio_id = 28205788 and dashboard_run_id = 2524855 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`=28205788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842520, 0.05978757272622658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, '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 = 28206586 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': 4003046, 'mtr_portfolio_id': 28206586, 'created_at': datetime.datetime(2025, 11, 5, 12, 2, 57), 'result': '0.06556309268297209', 'result_long': None, 'result_double': None}] Qualite : 0.06556309268297209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28206586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28206586 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_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}" where mtr_portfolio_id = 28206586 and dashboard_run_id = 2524855 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`=28206586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842521, 0.06556309268297209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, '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 = 28207204 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': 4003140, 'mtr_portfolio_id': 28207204, 'created_at': datetime.datetime(2025, 11, 5, 14, 1, 7), 'result': '0.05999779201294223', 'result_long': None, 'result_double': None}] Qualite : 0.05999779201294223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28207204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28207204 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_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}" where mtr_portfolio_id = 28207204 and dashboard_run_id = 2524855 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`=28207204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842522, 0.05999779201294223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, '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 = 28209787 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': 4003408, 'mtr_portfolio_id': 28209787, 'created_at': datetime.datetime(2025, 11, 5, 13, 48, 57), 'result': '0.04388339640451604', 'result_long': None, 'result_double': None}] Qualite : 0.04388339640451604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28209787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28209787 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_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}" where mtr_portfolio_id = 28209787 and dashboard_run_id = 2524855 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`=28209787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842523, 0.04388339640451604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, '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 = 28210210 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': 4003444, 'mtr_portfolio_id': 28210210, 'created_at': datetime.datetime(2025, 11, 5, 14, 2, 57), 'result': '0.039891574117670414', 'result_long': None, 'result_double': None}] Qualite : 0.039891574117670414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210210 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_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}" where mtr_portfolio_id = 28210210 and dashboard_run_id = 2524855 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`=28210210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842524, 0.039891574117670414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, '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 = 28210637 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': 4003511, 'mtr_portfolio_id': 28210637, 'created_at': datetime.datetime(2025, 11, 5, 14, 10, 31), 'result': '0.05804173383304044', 'result_long': None, 'result_double': None}] Qualite : 0.05804173383304044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210637 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_P28210637_05-11-2025_14_10_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}" where mtr_portfolio_id = 28210637 and dashboard_run_id = 2524855 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`=28210637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16842525, 0.05804173383304044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_10_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, '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 (28186038,28186394,28187294,28188183,28189317,28189664,28189717,28190150,28190820,28191207,28191692,28192332,28193155,28193965,28194584,28195092,28195794,28196359,28197077,28199380,28200141,28200911,28201755,28202496,28203318,28204048,28204978,28205788,28206586,28207204,28209787,28210210,28210637) result : ((1392617853,), (1392617859,), (1392617861,), (1392618834,), (1392619427,), (1392619646,), (1392619652,), (1392619664,), (1392619771,), (1392619776,), (1392619794,), (1392622575,), (1392624099,), (1392624159,), (1392624315,), (1392624846,), (1392625280,), (1392625705,), (1392625734,), (1392626088,), (1392626189,), (1392626193,), (1392626304,), (1392633920,), (1392636440,), (1392637712,), (1392637787,), (1392638973,), (1392639353,), (1392639501,), (1392639504,), (1392639569,), (1392639809,), (1392646293,), (1392646343,), (1392646492,), (1392646587,), (1392646612,), (1392646668,), (1392646671,), (1392646674,), (1392646746,), (1392656752,), (1392656757,), (1392656803,), (1392656829,), (1392656831,), (1392656855,), (1392656858,), (1392656860,), (1392656957,), (1392656964,), (1392656970,), (1392656978,), (1392657044,), (1392657051,), (1392657054,), (1392657057,), (1392657073,), (1392657076,), (1392657079,), (1392657114,), (1392657116,), (1392657118,), (1392657121,), (1392657140,), (1392657143,), (1392657144,), (1392657145,), (1392657249,), (1392657251,), (1392657252,), (1392657255,), (1392657258,), (1392657262,), (1392657280,), (1392657284,), (1392657286,), (1392657288,), (1392657339,), (1392657343,), (1392657919,), (1392657614,), (1392657918,), (1392657958,), (1392657959,), (1392657963,), (1392657965,), (1392657967,), (1392657970,), (1392657999,), (1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,), (1392658456,), (1392658458,), (1392658460,), (1392658462,), (1392658466,), (1392658470,), (1392658483,), (1392658485,), (1392658486,), (1392658488,), (1392658624,), (1392658627,), (1392658630,), (1392658632,), (1392658634,), (1392658665,), (1392658671,), (1392659587,), (1392659409,), (1392659453,), (1392659501,), (1392659543,), (1392660113,), (1392660121,), (1392660123,), (1392660125,), (1392660128,), (1392660191,), (1392660226,), (1392660262,), (1392660294,), (1392660681,), (1392660718,), (1392660768,), (1392660799,), (1392660832,), (1392661208,), (1392661210,), (1392661213,), (1392661218,), (1392661224,), (1392661231,), (1392661441,), (1392661458,), (1392661503,), (1392661505,), (1392661656,), (1392661658,), (1392661659,), (1392661660,), (1392661662,), (1392661663,), (1392661701,), (1392661702,), (1392661703,), (1392661705,), (1392661721,), (1392661723,), (1392661725,), (1392661766,), (1392661772,), (1392661779,), (1392661789,), (1392661792,), (1392661795,), (1392661848,), (1392661851,), (1392661854,), (1392661855,), (1392661858,), (1392661922,), (1392661925,), (1392661926,), (1392661929,), (1392661933,), (1392661936,), (1392661949,), (1392661952,), (1392661954,), (1392661958,), (1392661962,), (1392662015,), (1392662002,), (1392662006,), (1392662010,), (1392662033,), (1392662035,), (1392662037,), (1392662139,), (1392662144,), (1392662176,), (1392662178,), (1392662255,), (1392662257,), (1392662258,), (1392662308,), (1392662313,), (1392662392,), (1392662403,), (1392662405,), (1392662408,), (1392662414,), (1392662416,), (1392662433,), (1392662437,), (1392662441,), (1392662445,), (1392662449,), (1392662451,), (1392662456,), (1392662457,), (1392662459,), (1392662468,), (1392662470,), (1392662472,), (1392662475,), (1392662482,), (1392662485,), (1392662510,), (1392662512,), (1392662513,), (1392662514,), (1392662515,), (1392662518,), (1392662537,), (1392662539,), (1392662541,), (1392662615,), (1392662618,), (1392662622,), (1392662627,), (1392662631,), (1392662633,), (1392662646,), (1392662648,), (1392662649,), (1392662650,), (1392662687,), (1392662689,), (1392662692,), (1392662694,), (1392662753,), (1392662756,), (1392662759,), (1392662771,), (1392662774,), (1392662749,), (1392662750,), (1392662751,), (1392662795,), (1392662798,), (1392662800,), (1392662802,), (1392662806,), (1392662878,), (1392662887,), (1392662889,), (1392662892,), (1392662895,), (1392662899,), (1392662908,), (1392662909,), (1392662910,), (1392662916,), (1392662919,), (1392662921,), (1392662943,), (1392662944,), (1392662945,), (1392662947,), (1392662980,), (1392662982,), (1392662984,), (1392662986,), (1392663012,), (1392663014,), (1392663016,), (1392663020,), (1392663032,), (1392663043,), (1392663097,), (1392663104,), (1392663112,), (1392663126,), (1392663131,), (1392663162,), (1392663165,), (1392663180,), (1392663186,), (1392663189,), (1392663222,), (1392663224,), (1392663225,), (1392663227,), (1392663229,), (1392663252,), (1392663254,), (1392663280,), (1392663282,), (1392663284,), (1392663287,), (1392663291,), (1392663360,), (1392663363,), (1392663366,), (1392663390,), (1392663395,), (1392663400,), (1392663444,), (1392663447,), (1392663450,), (1392663507,), (1392663498,), (1392663500,), (1392663502,), (1392663505,), (1392663539,), (1392663543,), (1392663545,), (1392663549,), (1392663618,), (1392663620,), (1392663622,), (1392663650,), (1392663653,), (1392663658,), (1392663664,), (1392663688,), (1392663691,), (1392663719,), (1392663721,), (1392663723,), (1392663725,), (1392663759,), (1392664014,), (1392664017,), (1392664134,), (1392664137,), (1392664228,), (1392664263,), (1392664297,), (1392664603,), (1392664567,), (1392665032,), (1392665063,), (1392665098,), (1392665129,), (1392665168,), (1392665462,), (1392665469,), (1392665475,), (1392665487,), (1392665522,), (1392665553,), (1392665690,), (1392665692,), (1392665714,), (1392665716,), (1392665719,), (1392665723,), (1392665761,), (1392665774,), (1392665776,), (1392665778,), (1392665780,), (1392666020,), (1392666052,), (1392666597,), (1392666636,), (1392666669,), (1392666701,), (1392667065,), (1392667078,), (1392667081,), (1392667084,), (1392667111,), (1392667113,), (1392667124,), (1392667154,), (1392667187,), (1392667234,), (1392667564,), (1392667586,), (1392667605,), (1392667607,), (1392667618,), (1392667655,), (1392667794,), (1392667796,), (1392667805,), (1392667946,), (1392667950,), (1392667954,), (1392667957,), (1392667961,), (1392668003,), (1392668026,), (1392668057,), (1392668067,), (1392668070,), (1392668228,), (1392668245,), (1392668249,), (1392668252,), (1392668287,), (1392668284,), (1392668285,), (1392668286,), (1392668338,), (1392668342,), (1392668345,), (1392668350,), (1392668815,), (1392668951,), (1392669167,), (1392669168,), (1392669245,), (1392669248,), (1392669250,), (1392669253,), (1392669291,), (1392669294,), (1392669331,), (1392669335,), (1392669337,), (1392669347,), (1392669364,), (1392669626,), (1392669660,), (1392669661,), (1392669694,), (1392669704,), (1392669715,), (1392669719,), (1392669723,), (1392669925,), (1392669928,), (1392669930,), (1392669933,), (1392669946,), (1392669952,), (1392669851,), (1392669904,), (1392670012,), (1392670183,), (1392670186,), (1392670277,), (1392670423,), (1392670556,), (1392670560,), (1392670677,), (1392670680,), (1392670796,), (1392670797,), (1392670800,), (1392670831,), (1392670834,), (1392670843,), (1392671004,), (1392671035,), (1392671039,), (1392671041,), (1392671066,), (1392671068,), (1392671070,), (1392671080,), (1392671600,), (1392671602,), (1392671667,), (1392671748,), (1392671751,), (1392671978,), (1392671992,), (1392672165,), (1392672166,), (1392672168,), (1392672170,), (1392672196,), (1392672199,), (1392672202,), (1392672205,), (1392672210,), (1392672214,), (1392672236,), (1392672238,), (1392672241,), (1392672278,), (1392672280,), (1392672284,), (1392672287,), (1392672291,), (1392672334,), (1392672337,), (1392672372,), (1392672406,), (1392672443,), (1392672623,), (1392672681,), (1392672695,), (1392672704,), (1392672741,), (1392672743,), (1392672746,), (1392672777,), (1392672779,), (1392672781,), (1392672784,), (1392672814,), (1392672818,), (1392672822,), (1392673003,), (1392673008,), (1392673012,), (1392673167,), (1392673171,), (1392673302,), (1392673321,), (1392673323,), (1392673326,), (1392673329,), (1392673284,), (1392673292,), (1392673299,), (1392673348,), (1392673351,), (1392673353,), (1392673360,), (1392673367,), (1392673369,), (1392673482,), (1392673496,), (1392673500,), (1392673503,), (1392673538,), (1392673541,), (1392673544,), (1392673547,), (1392673552,), (1392673557,), (1392673581,), (1392673584,), (1392673586,), (1392673588,), (1392673591,), (1392673890,), (1392673922,), (1392673961,), (1392673999,), (1392674422,), (1392674455,), (1392674473,), (1392674478,), (1392674481,), (1392674490,), (1392674857,), (1392674893,), (1392674962,), (1392675034,), (1392675113,), (1392675180,), (1392675506,), (1392675510,), (1392675533,), (1392676427,), (1392676431,), (1392676446,), (1392676458,), (1392676593,), (1392676596,), (1392676605,), (1392676611,), (1392676692,), (1392676697,), (1392676702,), (1392676708,), (1392676762,), (1392676750,), (1392676757,), (1392676759,), (1392676896,), (1392676902,), (1392676909,), (1392676918,), (1392676924,), (1392676927,), (1392676955,), (1392676956,), (1392676957,), (1392676958,), (1392676961,), (1392676964,), (1392677009,), (1392677014,), (1392677036,), (1392677139,), (1392677180,), (1392677222,), (1392677255,), (1392677290,), (1392677420,), (1392677428,), (1392677429,), (1392677433,), (1392677706,), (1392677709,), (1392677712,), (1392677716,), (1392677721,), (1392677726,), (1392677763,), (1392677767,), (1392677770,), (1392677773,), (1392677778,), (1392677784,), (1392677801,), (1392677804,), (1392677806,), (1392678162,), (1392678163,), (1392678164,), (1392678167,), (1392678213,), (1392678219,), (1392678221,), (1392678223,), (1392678227,), (1392678299,), (1392678301,), (1392678302,), (1392678304,), (1392678335,), (1392678336,), (1392678337,), (1392678344,), (1392678488,), (1392678491,), (1392678494,), (1392678496,), (1392678498,), (1392678501,), (1392678555,), (1392678557,), (1392678571,), (1392678573,), (1392678576,), (1392678584,), (1392678588,), (1392678547,), (1392678549,), (1392678550,), (1392678552,), (1392678609,), (1392678624,), (1392678636,), (1392678640,), (1392678642,), (1392678652,), (1392678683,), (1392678685,), (1392678687,), (1392678690,), (1392678729,), (1392678732,), (1392678735,), (1392678736,), (1392678738,), (1392678776,), (1392678779,), (1392678781,), (1392678783,), (1392678786,), (1392678788,), (1392678812,), (1392678824,), (1392678839,), (1392678850,), (1392678858,), (1392678973,), (1392678977,), (1392679001,), (1392679013,), (1392679015,), (1392679106,), (1392679125,), (1392679176,), (1392679213,), (1392679271,), (1392679308,), (1392679527,), (1392679530,), (1392679533,), (1392679611,), (1392679614,), (1392679618,), (1392679621,), (1392679625,), (1392679629,), (1392679727,), (1392679744,), (1392679755,), (1392679769,), (1392679797,), (1392679806,), (1392679811,), (1392679814,), (1392679899,), (1392679903,), (1392679920,), (1392679931,), (1392679954,), (1392680114,), (1392680146,), (1392680202,), (1392680252,), (1392680256,), (1392680363,), (1392680402,), (1392680422,), (1392680559,), (1392680546,), (1392680552,), (1392680556,), (1392680623,), (1392680627,), (1392680628,), (1392680630,), (1392680633,), (1392680817,), (1392680856,), (1392680891,), (1392681042,), (1392681044,), (1392681047,), (1392681049,), (1392681054,), (1392681058,), (1392681174,), (1392681196,), (1392681198,), (1392681201,), (1392681204,), (1392681236,), (1392681237,), (1392681239,), (1392681241,), (1392681247,), (1392681251,), (1392681307,), (1392681328,), (1392681332,), (1392681504,), (1392681543,), (1392681591,), (1392681621,), (1392681655,), (1392681691,), (1392681814,), (1392681828,), (1392681836,), (1392681843,), (1392681861,), (1392682003,), (1392682010,), (1392682012,), (1392682016,), (1392682052,), (1392682056,), (1392682059,), (1392682061,), (1392682065,), (1392682086,), (1392682187,), (1392682190,), (1392682192,), (1392682374,), (1392682408,), (1392682437,), (1392682458,), (1392682491,), (1392682525,), (1392682827,), (1392682884,), (1392682934,), (1392682980,), (1392683014,), (1392683047,), (1392683234,), (1392683337,), (1392683407,), (1392683462,), (1392683962,), (1392683994,), (1392684020,), (1392684055,), (1392693860,), (1392694241,), (1392694269,), (1392694419,), (1392694421,), (1392694423,), (1392694433,), (1392694438,), (1392694774,), (1392694795,), (1392694837,), (1392695017,), (1392695043,), (1392695066,), (1392695980,), (1392696059,), (1392696121,), (1392696170,), (1392696205,), (1392696397,), (1392696398,), (1392696399,), (1392696403,), (1392696405,), (1392696408,), (1392696552,), (1392696594,), (1392696645,), (1392696704,), (1392696928,), (1392696934,), (1392696970,), (1392697009,), (1392697066,), (1392697223,), (1392697226,), (1392697229,), (1392697238,), (1392697788,), (1392697790,), (1392697791,), (1392697793,), (1392697796,), (1392697902,), (1392697904,), (1392697933,), (1392697943,), (1392697947,), (1392698005,), (1392698008,), (1392698019,), (1392698075,), (1392698077,), (1392698079,), (1392698081,), (1392698100,), (1392698108,), (1392698126,), (1392698128,), (1392698129,), (1392698137,), (1392698142,), (1392698161,), (1392698386,), (1392698389,), (1392698391,), (1392698807,), (1392698768,), (1392698789,), (1392698932,), (1392698934,), (1392698937,), (1392698998,), (1392699146,), (1392699188,), (1392699680,), (1392699681,), (1392699683,), (1392699911,), (1392699942,), (1392699982,), (1392700015,), (1392700048,), (1392700087,), (1392700719,), (1392700753,), (1392701025,), (1392701087,), (1392701125,), (1392701158,), (1392701387,), (1392701422,), (1392701441,), (1392701872,), (1392701886,), (1392701983,), (1392701986,), (1392701988,), (1392701991,), (1392701994,), (1392701997,), (1392702073,), (1392702078,), (1392702081,), (1392702243,), (1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,), (1392707412,), (1392707433,), (1392707436,), (1392707448,), (1392707594,), (1392707588,), (1392707590,), (1392707592,), (1392707982,), (1392708024,), (1392708027,), (1392708234,), (1392708237,), (1392708238,), (1392708242,), (1392708248,), (1392708253,), (1392708336,), (1392708358,), (1392708397,), (1392708403,), (1392708428,), (1392708429,), (1392708432,), (1392708438,), (1392708464,), (1392708505,), (1392708507,), (1392708518,), (1392708524,), (1392708567,), (1392708571,), (1392708575,), (1392708579,), (1392708789,), (1392708836,), (1392708906,), (1392708969,), (1392709194,), (1392709196,), (1392709198,), (1392709201,), (1392709230,), (1392709234,), (1392709238,), (1392709242,), (1392709246,), (1392709328,), (1392709371,), (1392709386,), (1392709390,), (1392709394,), (1392709630,), (1392709651,), (1392710100,), (1392710103,), (1392710149,), (1392710188,), (1392710303,), (1392710308,), (1392710312,), (1392710314,), (1392710316,), (1392710417,), (1392710598,), (1392710639,), (1392710642,), (1392710644,), (1392710648,), (1392710866,), (1392710871,), (1392710874,), (1392710902,), (1392710911,), (1392710943,), (1392710830,), (1392710857,), (1392710861,), (1392710891,), (1392710894,), (1392710895,), (1392710900,), (1392710971,), (1392710974,), (1392710976,), (1392711000,), (1392711035,), (1392711068,), (1392711360,), (1392711365,), (1392711367,), (1392711370,), (1392711579,), (1392711582,), (1392711605,), (1392711647,), (1392711832,), (1392711868,), (1392712144,), (1392712187,), (1392712206,), (1392712212,), (1392712389,), (1392712392,), (1392712397,), (1392712417,), (1392712447,), (1392712481,), (1392712626,), (1392712628,), (1392712634,), (1392712697,), (1392712732,), (1392712767,), (1392712805,), (1392712843,), (1392712880,), (1392712987,), (1392712992,), (1392713002,), (1392713006,), (1392713012,), (1392713019,), (1392713024,), (1392713095,), (1392713107,), (1392713110,), (1392713124,), (1392713136,), (1392713139,), (1392713181,), (1392713189,), (1392713216,), (1392713255,), (1392713625,), (1392713652,), (1392713671,), (1392713687,), (1392713693,), (1392713749,), (1392713751,), (1392713762,), (1392714423,), (1392714327,), (1392714365,), (1392714993,), (1392715055,), (1392715462,), (1392715465,), (1392715469,), (1392715474,), (1392715646,), (1392715679,), (1392715710,), (1392715741,), (1392715776,), (1392717036,), (1392717101,), (1392717148,), (1392717178,), (1392717322,), (1392717356,), (1392717389,), (1392717425,), (1392717566,), (1392717568,), (1392717738,), (1392717781,), (1392717836,), (1392717843,), (1392717871,), (1392717991,), (1392717993,), (1392717994,), (1392718023,), (1392718025,), (1392718028,), (1392718114,), (1392718148,), (1392718163,), (1392718166,), (1392718196,), (1392718206,), (1392718321,), (1392718322,), (1392718443,), (1392718448,), (1392718453,), (1392718456,), (1392718461,), (1392718486,), (1392718490,), (1392718495,), (1392718500,), (1392718564,), (1392718557,), (1392718560,), (1392718616,), (1392718652,), (1392718685,), (1392718720,), (1392718757,), (1392719435,), (1392719498,), (1392719568,), (1392719635,), (1392719703,), (1392720327,), (1392720364,), (1392720419,), (1392720483,), (1392720519,), (1392721275,), (1392721359,), (1392721449,), (1392722359,), (1392722395,), (1392722431,), (1392722471,), (1392722965,), (1392723072,), (1392723086,), (1392723090,), (1392723092,), (1392723128,), (1392723141,), (1392723176,), (1392723441,), (1392723443,), (1392723446,), (1392723449,), (1392723481,), (1392723483,), (1392723485,), (1392723487,), (1392723490,), (1392723494,), (1392723596,), (1392723598,), (1392723599,), (1392723721,), (1392723730,), (1392723737,), (1392723739,), (1392723741,), (1392723743,), (1392723772,), (1392723774,), (1392723776,), (1392723778,), (1392723782,), (1392723785,), (1392723843,), (1392723888,), (1392723933,), (1392723975,), (1392724137,), (1392724140,), (1392724143,), (1392724145,), (1392724223,), (1392724207,), (1392724209,), (1392724212,), (1392724215,), (1392724219,), (1392724260,), (1392724262,), (1392724294,), (1392724329,), (1392724365,), (1392724630,), (1392724685,), (1392724947,), (1392725130,), (1392725132,), (1392725133,), (1392725134,), (1392725145,), (1392725188,), (1392725679,), (1392725688,), (1392725694,), (1392725716,), (1392725755,), (1392725781,), (1392725859,), (1392725862,), (1392725866,), (1392725871,), (1392726296,), (1392726339,), (1392726393,), (1392726418,), (1392726427,), (1392726705,), (1392726711,), (1392726764,), (1392726804,), (1392726820,), (1392726824,), (1392726958,), (1392726968,), (1392726971,), (1392726974,), (1392727056,), (1392727091,), (1392727124,), (1392727148,), (1392727181,), (1392727329,), (1392727332,), (1392727335,), (1392727339,), (1392727345,), (1392727422,), (1392727423,), (1392727613,), (1392727627,), (1392727631,), (1392727661,), (1392727665,), (1392727675,), (1392727815,), (1392727847,), (1392727878,), (1392728129,), (1392728126,), (1392728127,), (1392728128,), (1392728425,), (1392728462,), (1392728507,), (1392728536,), (1392728725,), (1392728741,), (1392728744,), (1392728746,), (1392728773,), (1392728775,), (1392728776,), (1392728779,), (1392728848,), (1392728887,), (1392728906,), (1392729063,), (1392729066,), (1392729068,), (1392729070,), (1392729104,), (1392729105,), (1392729106,), (1392729108,), (1392729111,), (1392729169,), (1392729172,), (1392729177,), (1392729180,), (1392729184,), (1392729186,), (1392729381,), (1392729383,), (1392729385,), (1392729391,), (1392729456,), (1392729457,), (1392729459,), (1392729478,), (1392729482,), (1392729484,), (1392729587,), (1392729602,), (1392729604,), (1392729606,), (1392729610,), (1392729614,), (1392729623,), (1392729625,), (1392729630,), (1392729636,), (1392729638,), (1392729641,), (1392729647,), (1392729652,), (1392729657,), (1392729734,), (1392729735,), (1392729736,), (1392729964,), (1392730013,), (1392730034,), (1392730037,), (1392730065,), (1392730080,), (1392730293,), (1392730312,), (1392730354,), (1392730429,), (1392730420,), (1392730423,), (1392730426,), (1392730492,), (1392730495,), (1392730497,), (1392730564,), (1392730567,), (1392730569,), (1392730576,), (1392730580,), (1392730583,), (1392730631,), (1392730633,), (1392730634,), (1392730637,), (1392730641,), (1392730677,), (1392730691,), (1392730693,), (1392730696,), (1392730700,), (1392730943,), (1392730979,), (1392730989,), (1392730991,), (1392731001,), (1392731004,), (1392731031,), (1392731032,), (1392731044,), (1392731056,), (1392731167,), (1392731206,), (1392731240,), (1392731274,), (1392731309,), (1392731341,), (1392731413,), (1392731427,), (1392731428,), (1392731430,), (1392731518,), (1392731521,), (1392731524,), (1392731526,), (1392731529,), (1392731550,), (1392731552,), (1392731555,), (1392731558,), (1392731566,), (1392731599,), (1392731602,), (1392731604,), (1392731605,), (1392731693,), (1392731706,), (1392731708,), (1392731711,), (1392731715,), (1392731718,), (1392731750,), (1392731756,), (1392731761,), (1392731766,), (1392732222,), (1392732125,), (1392732161,), (1392732192,), (1392732650,), (1392732687,), (1392732692,), (1392733279,), (1392733418,), (1392733545,), (1392733677,), (1392734702,), (1392734770,), (1392734833,), (1392734900,), (1392734960,), (1392735050,), (1392735530,), (1392735693,), (1392735761,), (1392735831,), (1392735901,), (1392735969,), (1392736324,), (1392736343,), (1392736387,), (1392736395,), (1392736447,), (1392736619,), (1392736638,), (1392736697,), (1392736699,), (1392736701,), (1392736703,), (1392736706,), (1392736873,), (1392736910,), (1392749273,), (1392749271,), (1392749286,), (1392749288,), (1392749332,), (1392749353,), (1392749451,), (1392749454,), (1392749517,), (1392749519,), (1392749521,), (1392749524,), (1392749543,), (1392749599,), (1392749600,), (1392749601,), (1392749619,), (1392749622,), (1392749625,), (1392749628,), (1392749674,), (1392749675,), (1392749727,), (1392749732,), (1392749766,), (1392749950,), (1392749955,), (1392749958,), (1392749962,), (1392749965,), (1392750108,), (1392750095,), (1392750098,), (1392750101,), (1392750103,), (1392750106,), (1392750127,), (1392750130,), (1392750132,), (1392750135,), (1392750139,), (1392750197,), (1392750202,), (1392750203,), (1392750205,), (1392750206,), (1392750220,), (1392750221,), (1392750222,), (1392750223,), (1392750225,), (1392750226,), (1392750242,), (1392750244,), (1392750246,), (1392750404,), (1392750420,), (1392750426,), (1392750593,), (1392750594,), (1392750595,), (1392750596,), (1392750613,), (1392750784,), (1392750786,), (1392750789,), (1392750845,), (1392750847,), (1392750849,), (1392750884,), (1392750888,), (1392750891,), (1392751045,), (1392751046,), (1392751047,), (1392751067,), (1392751623,), (1392751660,), (1392751695,), (1392751729,), (1392751762,), (1392751784,), (1392752042,), (1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05112025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28210637]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] map_info['map_portfolio_photo'] : {28210637: [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867, 1392754533, 1392754497, 1392754461, 1392754424, 1392754390, 1392753963, 1392753928, 1392753893, 1392753856, 1392753485, 1392753457, 1392753454, 1392753440, 1392753406, 1392753088, 1392753084, 1392753081, 1392753079, 1392753077, 1392752851, 1392752818, 1392752786, 1392752753, 1392752331, 1392752299, 1392752261, 1392752229, 1392752194, 1392752010, 1392751977, 1392751944, 1392751911]} final : True mtd_id 4302 list_pids : [1392755663, 1392755661, 1392755649, 1392755614, 1392755067, 1392754999, 1392754964, 1392754931, 1392754899, 1392754867] Looping around the photos to save general results len do output : 1 /28210637Didn'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, '4003511') ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511') ('4302', None, None, None, None, None, None, None, '4003511') ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511') 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', None, '28210637', 'None', None, None, None, None, '4003511'), ('4302', '28210637', '1392755663', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755661', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755649', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755614', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392755067', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754999', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754964', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754931', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754899', None, None, None, None, None, '4003511'), ('4302', '28210637', '1392754867', None, None, None, None, None, '4003511')] time used for this insertion : 0.013122081756591797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.202617645263672 time spend to save output : 0.013374090194702148 total time spend for step 5 : 2.215991735458374 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 (4003511) 2.56user 2.12system 0:12.24elapsed 38%CPU (0avgtext+0avgdata 159056maxresident)k 32inputs+8088outputs (0major+76886minor)pagefaults 0swaps