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 : 305394 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 (3818253) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3818253) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436023 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3818253'] with mtr_portfolio_ids : ['27436023'] and first list_photo_ids : [] new path : /proc/305394/ Name: python3 Umask: 0002 State: R (running) Tgid: 305394 Ngid: 0 Pid: 305394 PPid: 305393 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 305394 NSpid: 305394 NSpgid: 303359 NSsid: 303359 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98628 kB VmRSS: 98628 kB RssAnon: 59852 kB RssFile: 38776 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 57 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '305394', 'Ngid': '0', 'Pid': '305394', 'PPid': '305393', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '305394', 'NSpid': '305394', 'NSpgid': '303359', 'NSsid': '303359', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98628 kB', 'VmRSS': '98628 kB', 'RssAnon': '59852 kB', 'RssFile': '38776 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '57', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '305394', '1106856', '0', '1106856', '865608', '98628', b'', 'marlene', '3818253') 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 (27436023) 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 (3818253 ) ) 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 (27436023) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387334389, 'portfolio_id': 27436023}, {'photo_id': 1387334382, 'portfolio_id': 27436023}, {'photo_id': 1387334374, 'portfolio_id': 27436023}, {'photo_id': 1387334346, 'portfolio_id': 27436023}, {'photo_id': 1387334214, 'portfolio_id': 27436023}, {'photo_id': 1387334061, 'portfolio_id': 27436023}, {'photo_id': 1387334055, 'portfolio_id': 27436023}, {'photo_id': 1387334039, 'portfolio_id': 27436023}, {'photo_id': 1387334035, 'portfolio_id': 27436023}, {'photo_id': 1387333886, 'portfolio_id': 27436023}, {'photo_id': 1387333817, 'portfolio_id': 27436023}, {'photo_id': 1387333814, 'portfolio_id': 27436023}, {'photo_id': 1387333755, 'portfolio_id': 27436023}, {'photo_id': 1387333751, 'portfolio_id': 27436023}, {'photo_id': 1387333621, 'portfolio_id': 27436023}, {'photo_id': 1387333618, 'portfolio_id': 27436023}, {'photo_id': 1387333614, 'portfolio_id': 27436023}, {'photo_id': 1387333611, 'portfolio_id': 27436023}, {'photo_id': 1387333582, 'portfolio_id': 27436023}, {'photo_id': 1387333576, 'portfolio_id': 27436023}, {'photo_id': 1387333224, 'portfolio_id': 27436023}, {'photo_id': 1387333218, 'portfolio_id': 27436023}, {'photo_id': 1387333192, 'portfolio_id': 27436023}, {'photo_id': 1387333167, 'portfolio_id': 27436023}, {'photo_id': 1387333165, 'portfolio_id': 27436023}, {'photo_id': 1387333164, 'portfolio_id': 27436023}, {'photo_id': 1387333161, 'portfolio_id': 27436023}, {'photo_id': 1387333159, 'portfolio_id': 27436023}, {'photo_id': 1387333033, 'portfolio_id': 27436023}, {'photo_id': 1387333031, 'portfolio_id': 27436023}, {'photo_id': 1387332986, 'portfolio_id': 27436023}, {'photo_id': 1387332968, 'portfolio_id': 27436023}, {'photo_id': 1387332828, 'portfolio_id': 27436023}, {'photo_id': 1387332780, 'portfolio_id': 27436023}, {'photo_id': 1387332774, 'portfolio_id': 27436023}, {'photo_id': 1387332769, 'portfolio_id': 27436023}, {'photo_id': 1387332759, 'portfolio_id': 27436023}, {'photo_id': 1387332616, 'portfolio_id': 27436023}, {'photo_id': 1387332613, 'portfolio_id': 27436023}, {'photo_id': 1387332610, 'portfolio_id': 27436023}, {'photo_id': 1387332607, 'portfolio_id': 27436023}, {'photo_id': 1387332604, 'portfolio_id': 27436023}, {'photo_id': 1387332600, 'portfolio_id': 27436023}, {'photo_id': 1387332583, 'portfolio_id': 27436023}, {'photo_id': 1387332541, 'portfolio_id': 27436023}, {'photo_id': 1387332539, 'portfolio_id': 27436023}, {'photo_id': 1387332503, 'portfolio_id': 27436023}, {'photo_id': 1387332500, 'portfolio_id': 27436023}, {'photo_id': 1387332479, 'portfolio_id': 27436023}, {'photo_id': 1387332332, 'portfolio_id': 27436023}, {'photo_id': 1387332328, 'portfolio_id': 27436023}, {'photo_id': 1387332324, 'portfolio_id': 27436023}, {'photo_id': 1387332320, 'portfolio_id': 27436023}, {'photo_id': 1387332315, 'portfolio_id': 27436023}, {'photo_id': 1387332281, 'portfolio_id': 27436023}, {'photo_id': 1387332265, 'portfolio_id': 27436023}, {'photo_id': 1387332156, 'portfolio_id': 27436023}, {'photo_id': 1387332155, 'portfolio_id': 27436023}, {'photo_id': 1387332153, 'portfolio_id': 27436023}, {'photo_id': 1387332149, 'portfolio_id': 27436023}, {'photo_id': 1387332101, 'portfolio_id': 27436023}, {'photo_id': 1387332096, 'portfolio_id': 27436023}, {'photo_id': 1387332088, 'portfolio_id': 27436023}, {'photo_id': 1387332084, 'portfolio_id': 27436023}, {'photo_id': 1387332000, 'portfolio_id': 27436023}, {'photo_id': 1387331998, 'portfolio_id': 27436023}] map_portfolio_id_photo_id: {27436023: [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886, 1387333817, 1387333814, 1387333755, 1387333751, 1387333621, 1387333618, 1387333614, 1387333611, 1387333582, 1387333576, 1387333224, 1387333218, 1387333192, 1387333167, 1387333165, 1387333164, 1387333161, 1387333159, 1387333033, 1387333031, 1387332986, 1387332968, 1387332828, 1387332780, 1387332774, 1387332769, 1387332759, 1387332616, 1387332613, 1387332610, 1387332607, 1387332604, 1387332600, 1387332583, 1387332541, 1387332539, 1387332503, 1387332500, 1387332479, 1387332332, 1387332328, 1387332324, 1387332320, 1387332315, 1387332281, 1387332265, 1387332156, 1387332155, 1387332153, 1387332149, 1387332101, 1387332096, 1387332088, 1387332084, 1387332000, 1387331998]} ##### 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.05487561225891113 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Oct 2 07:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27436023) 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 : 27436023 get user id for portfolio 27436023 get sub ptf for main ptf 27436023, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'plastique', 'metal', 'cartonnette', 'papier', 'autre_refus', 'mal_croppe', 'flou', 'Carton_gris', 'kraft'] 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`=27436023 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','environnement','plastique','metal','cartonnette','papier','autre_refus','mal_croppe','flou','Carton_gris','kraft')) 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`=27436023 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','environnement','plastique','metal','cartonnette','papier','autre_refus','mal_croppe','flou','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27436023, 'sub_port_id': 27436089, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539094, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'autre_refus': {'main_port_id': 27436023, 'sub_port_id': 27436090, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539095, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 27436023, 'sub_port_id': 27436091, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539096, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'metal': {'main_port_id': 27436023, 'sub_port_id': 27436092, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539097, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'cartonnette': {'main_port_id': 27436023, 'sub_port_id': 27436093, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539098, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'flou': {'main_port_id': 27436023, 'sub_port_id': 27436094, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539099, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'mal_croppe': {'main_port_id': 27436023, 'sub_port_id': 27436095, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539100, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'kraft': {'main_port_id': 27436023, 'sub_port_id': 27436096, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539101, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'Carton_brun': {'main_port_id': 27436023, 'sub_port_id': 27436097, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539102, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'papier': {'main_port_id': 27436023, 'sub_port_id': 27436098, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539103, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'plastique': {'main_port_id': 27436023, 'sub_port_id': 27436099, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539104, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}, 'environnement': {'main_port_id': 27436023, 'sub_port_id': 27436100, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539105, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436089 , 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=27436023 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 (27436089) result : ((1387332736,), (1387332737,), (1387333231,), (1387333232,), (1387333824,), (1387333825,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436090 , 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=27436023 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 (27436090) result : ((1387333034,), (1387334387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436091 , 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=27436023 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 (27436091) result : ((1387332727,), (1387332728,), (1387332729,), (1387332730,), (1387333229,), (1387333821,), (1387333822,), (1387333823,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436092 , 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=27436023 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 (27436092) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436093 , 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=27436023 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 (27436093) result : ((1387333826,), (1387334388,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436094 , 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=27436023 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 (27436094) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436095 , 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=27436023 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 (27436095) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436096 , 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=27436023 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 (27436096) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436097 , 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=27436023 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 (27436097) result : ((1387332341,), (1387333235,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436098 , 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=27436023 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 (27436098) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436099 , 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=27436023 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 (27436099) result : ((1387333035,), (1387333237,), (1387333238,), (1387334390,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27436100 , 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=27436023 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 (27436100) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27436023) result : ((1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) 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 (1387332500,1387332600,1387332000) and cspi.crop_hashtag_id = chi.id; 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`=27436023 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','environnement','plastique','metal','cartonnette','papier','autre_refus','mal_croppe','flou','Carton_gris','kraft')) 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`=27436023 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','environnement','plastique','metal','cartonnette','papier','autre_refus','mal_croppe','flou','Carton_gris','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27436023, 'sub_port_id': 27436101, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539106, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'autre_refus': {'main_port_id': 27436023, 'sub_port_id': 27436102, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539107, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 27436023, 'sub_port_id': 27436103, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539108, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'metal': {'main_port_id': 27436023, 'sub_port_id': 27436104, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539109, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'cartonnette': {'main_port_id': 27436023, 'sub_port_id': 27436105, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539110, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'flou': {'main_port_id': 27436023, 'sub_port_id': 27436106, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539111, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'mal_croppe': {'main_port_id': 27436023, 'sub_port_id': 27436107, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539112, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'kraft': {'main_port_id': 27436023, 'sub_port_id': 27436108, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539113, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'Carton_brun': {'main_port_id': 27436023, 'sub_port_id': 27436109, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539114, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'papier': {'main_port_id': 27436023, 'sub_port_id': 27436110, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539115, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'plastique': {'main_port_id': 27436023, 'sub_port_id': 27436111, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539116, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 17, 32), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}, 'environnement': {'main_port_id': 27436023, 'sub_port_id': 27436112, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18539117, 'last_updated_at': datetime.datetime(2025, 10, 2, 7, 29, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 2, 7, 29, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 2, 7, 17, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436093 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436106,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436094 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436107,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436095 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436108,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436096 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436109,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436097 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436110,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436098 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436111,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436099 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27436112,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27436100 lien utilise dans velours : https://marlene.fotonower.com/velours/27436101,27436102,27436103,27436104,27436105,27436106,27436107,27436108,27436109,27436110,27436111,27436112?tags=Carton_gris,autre_refus,Teint_Dans_La_Masse,metal,cartonnette,flou,mal_croppe,kraft,Carton_brun,papier,plastique,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27436023]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] map_info['map_portfolio_photo'] : {27436023: [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886, 1387333817, 1387333814, 1387333755, 1387333751, 1387333621, 1387333618, 1387333614, 1387333611, 1387333582, 1387333576, 1387333224, 1387333218, 1387333192, 1387333167, 1387333165, 1387333164, 1387333161, 1387333159, 1387333033, 1387333031, 1387332986, 1387332968, 1387332828, 1387332780, 1387332774, 1387332769, 1387332759, 1387332616, 1387332613, 1387332610, 1387332607, 1387332604, 1387332600, 1387332583, 1387332541, 1387332539, 1387332503, 1387332500, 1387332479, 1387332332, 1387332328, 1387332324, 1387332320, 1387332315, 1387332281, 1387332265, 1387332156, 1387332155, 1387332153, 1387332149, 1387332101, 1387332096, 1387332088, 1387332084, 1387332000, 1387331998]} final : False mtd_id 4302 list_pids : [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] Looping around the photos to save general results len do output : 1 /27436023. 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, '3818253') ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253') 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, '27436023', "{'Carton_gris': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100}", None, None, None, None, '3818253'), ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253')] time used for this insertion : 0.03740572929382324 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7142705917358398 time spend to save output : 0.03770852088928223 total time spend for step 1 : 1.751979112625122 step2:final Thu Oct 2 07:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (27436023) 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 27436023 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387332000,1387331998,1387332101,1387332096,1387332088,1387332084,1387332281,1387332265,1387332156,1387332155,1387332153,1387332149,1387332332,1387332328,1387332324,1387332320,1387332315,1387332583,1387332541,1387332539,1387332503,1387332500,1387332479,1387332616,1387332613,1387332610,1387332607,1387332604,1387332600,1387332780,1387332774,1387332769,1387332759,1387333033,1387333031,1387332986,1387332968,1387332828,1387333167,1387333165,1387333164,1387333161,1387333159,1387333224,1387333218,1387333192,1387333621,1387333618,1387333614,1387333611,1387333582,1387333576,1387333817,1387333814,1387333755,1387333751,1387334061,1387334055,1387334039,1387334035,1387333886,1387334389,1387334382,1387334374,1387334346,1387334214); 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([27436023]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} new output for save of step final : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] map_info['map_portfolio_photo'] : {27436023: [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886, 1387333817, 1387333814, 1387333755, 1387333751, 1387333621, 1387333618, 1387333614, 1387333611, 1387333582, 1387333576, 1387333224, 1387333218, 1387333192, 1387333167, 1387333165, 1387333164, 1387333161, 1387333159, 1387333033, 1387333031, 1387332986, 1387332968, 1387332828, 1387332780, 1387332774, 1387332769, 1387332759, 1387332616, 1387332613, 1387332610, 1387332607, 1387332604, 1387332600, 1387332583, 1387332541, 1387332539, 1387332503, 1387332500, 1387332479, 1387332332, 1387332328, 1387332324, 1387332320, 1387332315, 1387332281, 1387332265, 1387332156, 1387332155, 1387332153, 1387332149, 1387332101, 1387332096, 1387332088, 1387332084, 1387332000, 1387331998]} final : False mtd_id 4302 list_pids : [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] Looping around the photos to save general results len do output : 10 /1387334389.Didn't retrieve data . /1387334382.Didn't retrieve data . /1387334374.Didn't retrieve data . /1387334346.Didn't retrieve data . /1387334214.Didn't retrieve data . /1387334061.Didn't retrieve data . /1387334055.Didn't retrieve data . /1387334039.Didn't retrieve data . /1387334035.Didn't retrieve data . /1387333886.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, '3818253') ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253') 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', '27436023', '1387334389', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334382', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334374', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334346', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334214', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334061', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334055', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334039', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387334035', '0.06535457667310497', None, None, None, None, '3818253'), ('4302', '27436023', '1387333886', '0.06535457667310497', None, None, None, None, '3818253')] time used for this insertion : 0.0375370979309082 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24536943435668945 time spend to save output : 0.038175106048583984 total time spend for step 2 : 0.28354454040527344 step3:velours_tree Thu Oct 2 07:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27436023: [{'Carton_gris': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100}]} input_args_next_step : {27436023: ()} output_args : {27436023: [{'Carton_gris': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100}]} args : 27436023 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': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27436023) 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([27436023]) 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.32911229133605957 time spend to save output : 6.151199340820312e-05 total time spend for step 3 : 0.3291738033294678 step4:send_mail_cod Thu Oct 2 07:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} input_args_next_step : {1387334389: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334389 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334382 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334374 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334346 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334214 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334061 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334055 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334039 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387334035 depend.output_id : 0 input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ()} output_args : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',)} args : 1387333886 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 : {27436023: [{'Carton_gris': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100}]} input_args_next_step : {1387334389: ('0.06535457667310497',), 1387334382: ('0.06535457667310497',), 1387334374: ('0.06535457667310497',), 1387334346: ('0.06535457667310497',), 1387334214: ('0.06535457667310497',), 1387334061: ('0.06535457667310497',), 1387334055: ('0.06535457667310497',), 1387334039: ('0.06535457667310497',), 1387334035: ('0.06535457667310497',), 1387333886: ('0.06535457667310497',), 27436023: ()} output_args : {27436023: [{'Carton_gris': 27436089, 'autre_refus': 27436090, 'Teint_Dans_La_Masse': 27436091, 'metal': 27436092, 'cartonnette': 27436093, 'flou': 27436094, 'mal_croppe': 27436095, 'kraft': 27436096, 'Carton_brun': 27436097, 'papier': 27436098, 'plastique': 27436099, 'environnement': 27436100}]} args : 27436023 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.06535457667310497',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27436023) 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 (1387334389,1387334382,1387334374,1387334346,1387334214,1387334061,1387334055,1387334039,1387334035,1387333886) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387333886 begin to download photo : 1387334055 begin to download photo : 1387334346 begin to download photo : 1387334389 download finish for photo 1387333886 begin to download photo : 1387334035 download finish for photo 1387334389 download finish for photo 1387334055 begin to download photo : 1387334061 download finish for photo 1387334346 begin to download photo : 1387334374 download finish for photo 1387334035 begin to download photo : 1387334039 download finish for photo 1387334061 begin to download photo : 1387334214 download finish for photo 1387334374 begin to download photo : 1387334382 download finish for photo 1387334039 download finish for photo 1387334214 download finish for photo 1387334382 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_P27436023_02-10-2025_07_31_01.pdf 27436090 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=27436090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387333034: '1759382586_180064_1387332315_e4eda661fd310f1edf1f25317e780a28_rle_crop_3983579866_0.png', 1387334387: '1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584668_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/8f6126c2e409537d90d20d2a105d4a7f_93878795.png change filename to text .imagette274360901759383061/ imagette274360901759383061/1759382586_180064_1387332315_e4eda661fd310f1edf1f25317e780a28_rle_crop_3983579866_0.png.png imagette274360901759383061/1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584668_0.png.png imagette274360921759383061/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/e1b3240e6d952d4ffc052c11a34862ab_7088124.png imagette274360901759383061 27436092 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=27436092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274360921759383061 27436093 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=27436093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387333826: '1759382824_188264_1387332968_89853051cbf8886b73590be59310c7a3_rle_crop_3983582948_0.png', 1387334388: '1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584670_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/9d1a932593118603b4e7f59a99c5738f_23637108.png change filename to text .imagette274360931759383061/ imagette274360931759383061/1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584670_0.png.png imagette274360931759383061/1759382824_188264_1387332968_89853051cbf8886b73590be59310c7a3_rle_crop_3983582948_0.png.png imagette274360941759383061/ imagette274360951759383061/ imagette274360961759383061/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/ea0e153d52c593484415a355ed1aa728_25629868.png imagette274360931759383061 27436094 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=27436094 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274360941759383061 27436095 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=27436095 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274360951759383061 27436096 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=27436096 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274360961759383061 27436099 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=27436099 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387333035: '1759382586_180064_1387332315_e4eda661fd310f1edf1f25317e780a28_rle_crop_3983579865_0.png', 1387333237: '1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580702_0.png', 1387333238: '1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580713_0.png', 1387334390: '1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584665_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/7812819e60566c0fb9b38c4d7b2a8f48_38183672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/593957cf3f85fa02404fc3ad8fb8715f_15245716.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/51892f5a7f590622678b648c1b346f04_81361157.png change filename to text .imagette274360991759383061/ imagette274360991759383061/1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580702_0.png.png imagette274360991759383061/1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580713_0.png.png imagette274360991759383061/1759382586_180064_1387332315_e4eda661fd310f1edf1f25317e780a28_rle_crop_3983579865_0.png.png imagette274360991759383061/1759382946_191969_1387333218_3941a987afe80f9d3e176d6d4a4d2bfe_rle_crop_3983584665_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/f3eb99e834e35931c9a1be2592ed7ccf_68091374.png imagette274360991759383061 27436089 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=27436089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387332736: '1759382466_174596_1387332096_b93398137f2d91e51c49e138945759be_rle_crop_3983576356_0.png', 1387332737: '1759382466_174596_1387332088_8c88cd86e7ba33cf208bc91dda39bd70_rle_crop_3983576372_0.png', 1387333231: '1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580704_0.png', 1387333232: '1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580703_0.png', 1387333824: '1759382824_188264_1387333031_06a7345330d1e13edebdf65a8d0066db_rle_crop_3983582914_0.png', 1387333825: '1759382824_188264_1387332968_89853051cbf8886b73590be59310c7a3_rle_crop_3983582947_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/1fadd63bb2eea825f0dbf3754702cbb8_83596449.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/c55047f3e858192498e6e301b6d6a688_34929672.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/eff749943cad0bb447bb8b8cdb5b7e3f_23339821.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/4e1dc0f5fc83142e99f96ee6ba94379c_8142049.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/57088cef31697f6bce0667094334c6fc_16506613.png change filename to text .imagette274360891759383062/ imagette274360891759383062/1759382824_188264_1387333031_06a7345330d1e13edebdf65a8d0066db_rle_crop_3983582914_0.png.png imagette274360891759383062/1759382824_188264_1387332968_89853051cbf8886b73590be59310c7a3_rle_crop_3983582947_0.png.png imagette274360891759383062/1759382466_174596_1387332096_b93398137f2d91e51c49e138945759be_rle_crop_3983576356_0.png.png imagette274360891759383062/1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580703_0.png.png imagette274360891759383062/1759382466_174596_1387332088_8c88cd86e7ba33cf208bc91dda39bd70_rle_crop_3983576372_0.png.png imagette274360891759383062/1759382704_183065_1387332769_5f49374dbff987476ce73b2cd55d7483_rle_crop_3983580704_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/2460f845aa55f43ea36862f19eef0da3_97243469.png imagette274360891759383062 27436091 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=27436091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387332727: '1759382466_174596_1387332096_b93398137f2d91e51c49e138945759be_rle_crop_3983576361_0.png', 1387332728: '1759382466_174596_1387332088_8c88cd86e7ba33cf208bc91dda39bd70_rle_crop_3983576370_0.png', 1387332729: '1759382466_174596_1387332084_15e7b0e8ed500bef7dcfb07905fae174_rle_crop_3983576383_0.png', 1387332730: '1759382466_174596_1387332084_15e7b0e8ed500bef7dcfb07905fae174_rle_crop_3983576382_0.png', 1387333229: '1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580714_0.png', 1387333821: '1759382824_188264_1387333031_06a7345330d1e13edebdf65a8d0066db_rle_crop_3983582913_0.png', 1387333822: '1759382824_188264_1387332828_e00efe9b50c2c1d468f9a6e92a69347e_rle_crop_3983582968_0.png', 1387333823: '1759382824_188264_1387332828_e00efe9b50c2c1d468f9a6e92a69347e_rle_crop_3983582969_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/bbf1fbd6bf323bb145552120a8b948f9_38018902.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/e95e6be8a8cbdd75e4ba631354a0ab1b_29236435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/ec7b8cd0864dfc922ca1a4c994b4ad7a_38019484.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/43103e119589c30ab8b9b4589d38df88_90802848.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/3a2c06461bff434c549cf1ecaa105d22_51673763.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/ec4e3f0c8f14061f1bade59dabadfc2d_89344644.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/c9d0e06a42304fdc32290b9ccb0c59de_62754309.png change filename to text .imagette274360911759383062/ imagette274360911759383062/1759382466_174596_1387332084_15e7b0e8ed500bef7dcfb07905fae174_rle_crop_3983576383_0.png.png imagette274360911759383062/1759382824_188264_1387332828_e00efe9b50c2c1d468f9a6e92a69347e_rle_crop_3983582968_0.png.png imagette274360911759383062/1759382466_174596_1387332084_15e7b0e8ed500bef7dcfb07905fae174_rle_crop_3983576382_0.png.png imagette274360911759383062/1759382466_174596_1387332096_b93398137f2d91e51c49e138945759be_rle_crop_3983576361_0.png.png imagette274360911759383062/1759382466_174596_1387332088_8c88cd86e7ba33cf208bc91dda39bd70_rle_crop_3983576370_0.png.png imagette274360911759383062/1759382824_188264_1387333031_06a7345330d1e13edebdf65a8d0066db_rle_crop_3983582913_0.png.png imagette274360911759383062/1759382824_188264_1387332828_e00efe9b50c2c1d468f9a6e92a69347e_rle_crop_3983582969_0.png.png imagette274360911759383062/1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580714_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/c05f9d012112a3d98e1ead51f8413801_86014528.png imagette274360911759383062 27436097 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=27436097 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387332341: '1759382346_171329_1387331998_cb6d29c76f5cac55249f208236cab26b_rle_crop_3983574588_0.png', 1387333235: '1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580715_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/aaf9b35bf86fdc4d9832546a2c159da7_17807643.png change filename to text .imagette274360971759383063/ imagette274360971759383063/1759382704_183065_1387332759_71ce94b5d887ecde95746c7fa4ed0f56_rle_crop_3983580715_0.png.png imagette274360971759383063/1759382346_171329_1387331998_cb6d29c76f5cac55249f208236cab26b_rle_crop_3983574588_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/3675bc0fe2d1a147d1781b2a349620f9_23982831.png imagette274360971759383063 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27436023 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27436101,27436102,27436103,27436104,27436105,27436106,27436107,27436108,27436109,27436110,27436111,27436112?tags=Carton_gris,autre_refus,Teint_Dans_La_Masse,metal,cartonnette,flou,mal_croppe,kraft,Carton_brun,papier,plastique,environnement your option no_mail is active, we will not send the real mail to your client args[1387334389] : ('0.06535457667310497',) no score found for photo 1387334389 We are sending mail with results at report@fotonower.com args[1387334382] : ('0.06535457667310497',) no score found for photo 1387334382 We are sending mail with results at report@fotonower.com args[1387334374] : ('0.06535457667310497',) no score found for photo 1387334374 We are sending mail with results at report@fotonower.com args[1387334346] : ('0.06535457667310497',) no score found for photo 1387334346 We are sending mail with results at report@fotonower.com args[1387334214] : ('0.06535457667310497',) no score found for photo 1387334214 We are sending mail with results at report@fotonower.com args[1387334061] : ('0.06535457667310497',) no score found for photo 1387334061 We are sending mail with results at report@fotonower.com args[1387334055] : ('0.06535457667310497',) no score found for photo 1387334055 We are sending mail with results at report@fotonower.com args[1387334039] : ('0.06535457667310497',) no score found for photo 1387334039 We are sending mail with results at report@fotonower.com args[1387334035] : ('0.06535457667310497',) no score found for photo 1387334035 We are sending mail with results at report@fotonower.com args[1387333886] : ('0.06535457667310497',) no score found for photo 1387333886 We are sending mail with results at report@fotonower.com refus_total : 0.06535457667310497 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=27436023 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_P27436023_02-10-2025_07_31_01.pdf results_Auto_P27436023_02-10-2025_07_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27436023_02-10-2025_07_31_01.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','27436023','results_Auto_P27436023_02-10-2025_07_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27436023_02-10-2025_07_31_01.pdf','pdf','','0.17','0.06535457667310497') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27436023]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] map_info['map_portfolio_photo'] : {27436023: [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886, 1387333817, 1387333814, 1387333755, 1387333751, 1387333621, 1387333618, 1387333614, 1387333611, 1387333582, 1387333576, 1387333224, 1387333218, 1387333192, 1387333167, 1387333165, 1387333164, 1387333161, 1387333159, 1387333033, 1387333031, 1387332986, 1387332968, 1387332828, 1387332780, 1387332774, 1387332769, 1387332759, 1387332616, 1387332613, 1387332610, 1387332607, 1387332604, 1387332600, 1387332583, 1387332541, 1387332539, 1387332503, 1387332500, 1387332479, 1387332332, 1387332328, 1387332324, 1387332320, 1387332315, 1387332281, 1387332265, 1387332156, 1387332155, 1387332153, 1387332149, 1387332101, 1387332096, 1387332088, 1387332084, 1387332000, 1387331998]} final : False mtd_id 4302 list_pids : [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] 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, '3818253') ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253') 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', '27436023', '1387334389', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253')] time used for this insertion : 0.03703713417053223 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.192286014556885 time spend to save output : 0.037293195724487305 total time spend for step 4 : 4.229579210281372 step5:split_time_score Thu Oct 2 07:31:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27436023'] 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 : [('27436023',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27436023) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387334389: {'path': 'temp/1759383060_305394_1387334389_a1ebed1fea265c247fa06924ae45acfd.jpg', 'extension': 'jpg'}, 1387333886: {'path': 'temp/1759383060_305394_1387333886_9415c326ef4fa7eeb9f9ffa4ad62a699.jpg', 'extension': 'jpg'}, 1387334035: {'path': 'temp/1759383060_305394_1387334035_e843e11fcdf2d750dafdde1a9c29d435.jpg', 'extension': 'jpg'}, 1387334039: {'path': 'temp/1759383060_305394_1387334039_9a0dd63170c7a6ea9f1acc35fbb5ec2d.jpg', 'extension': 'jpg'}, 1387334055: {'path': 'temp/1759383060_305394_1387334055_e4840bcd286cad24c341056a4041adb1.jpg', 'extension': 'jpg'}, 1387334061: {'path': 'temp/1759383060_305394_1387334061_51a203d6eeb0a4cbb5a587dae90ebb27.jpg', 'extension': 'jpg'}, 1387334214: {'path': 'temp/1759383060_305394_1387334214_52fdabcf4c8530e9a9ab3a5e82db1c19.jpg', 'extension': 'jpg'}, 1387334346: {'path': 'temp/1759383060_305394_1387334346_c6338c36a2dc61d6cfa1f3f84edee53a.jpg', 'extension': 'jpg'}, 1387334374: {'path': 'temp/1759383060_305394_1387334374_004a610ffbe92a20934a3e2bc28f5c3b.jpg', 'extension': 'jpg'}, 1387334382: {'path': 'temp/1759383060_305394_1387334382_5ed8068e092c89a1fb47364d2130cdf6.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 = 27436023; (('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 = 27436023 group by h (('07', 66),) 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=27436023 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 (27436023) 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 (27436023) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02102025 27436023 Nombre de photos uploadées : 66 / 23040 (0%) 02102025 27436023 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 02102025 27436023 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1387332000, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/29be3e82db7df83e6e569754557d746d.jpg', 'username': None, 'uploaded_at': 1759382167, 'text': 'image_02102025_07_15_04_10164.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387331998, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/cb6d29c76f5cac55249f208236cab26b.jpg', 'username': None, 'uploaded_at': 1759382167, 'text': 'image_02102025_07_15_44_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387332101, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/b6931fd43097fb626a1b1b198e101a54.jpg', 'username': None, 'uploaded_at': 1759382228, 'text': 'image_02102025_07_15_54_10134.jpg'}, {'photo_id': 1387332096, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/2/b93398137f2d91e51c49e138945759be.jpg', 'username': None, 'uploaded_at': 1759382228, 'text': 'image_02102025_07_16_04_10147.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003809690475463867 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27436023, '2025-10-02' ) 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-10-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2377787,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.682194709777832 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= 2377787 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27424686, 'dashboard_result_id': 15917548, '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_P27424686_02-10-2025_06_20_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27425124, 'dashboard_result_id': 15917549, '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_P27425124_02-10-2025_06_20_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27425471, 'dashboard_result_id': 15917550, '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_P27425471_02-10-2025_06_20_43.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27425856, 'dashboard_result_id': 15917551, '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_P27425856_02-10-2025_06_21_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27427278, 'dashboard_result_id': 15917552, '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_P27427278_02-10-2025_06_21_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27427585, 'dashboard_result_id': 15917553, '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_P27427585_02-10-2025_06_22_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27427882, 'dashboard_result_id': 15917554, '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_P27427882_02-10-2025_06_22_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27428370, 'dashboard_result_id': 15917555, '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_P27428370_02-10-2025_06_23_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27428628, 'dashboard_result_id': 15917556, '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_P27428628_02-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27429102, 'dashboard_result_id': 15917557, '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_P27429102_02-10-2025_06_24_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27429508, 'dashboard_result_id': 15917558, '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_P27429508_02-10-2025_06_25_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27430058, 'dashboard_result_id': 15917559, '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_P27430058_02-10-2025_06_25_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27430484, 'dashboard_result_id': 15917560, '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_P27430484_02-10-2025_06_26_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27430971, 'dashboard_result_id': 15917561, '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_P27430971_02-10-2025_06_26_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431029, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27431419, 'dashboard_result_id': 15917562, '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_P27431419_02-10-2025_06_26_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431456, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27432843, 'dashboard_result_id': 15917563, '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_P27432843_02-10-2025_06_27_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27432844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27432845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27432846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27432847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27432848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27432849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27432850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27432851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27432852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27432853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27432854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27432855, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27433044, 'dashboard_result_id': 15917564, '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_P27433044_02-10-2025_06_28_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433056, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27433373, 'dashboard_result_id': 15917565, '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_P27433373_02-10-2025_05_49_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433381, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433388, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27433513, 'dashboard_result_id': 15917566, '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_P27433513_02-10-2025_06_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433531, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27433795, 'dashboard_result_id': 15917567, '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_P27433795_02-10-2025_06_19_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433818, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27434083, 'dashboard_result_id': 15917568, '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_P27434083_02-10-2025_06_33_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434101, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27434369, 'dashboard_result_id': 15917569, '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_P27434369_02-10-2025_06_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434417, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27434760, 'dashboard_result_id': 15917570, '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_P27434760_02-10-2025_07_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27434804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434810, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27435271, 'dashboard_result_id': 15917571, '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_P27435271_02-10-2025_07_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27435303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27435304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27435305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27435306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27435307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27435308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27435309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27435310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27435311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27435312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27435313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27435315, 'pht': 3726}}"}, {'dashboat_entry_day': 2377787, 'dashboard_run_id': 2387341, 'mtr_portfolio_id': 27436023, 'dashboard_result_id': 15917572, '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_P27436023_02-10-2025_07_29_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27436089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27436090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27436091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27436092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27436093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27436094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27436095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27436096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27436097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27436098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27436099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27436100, '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 = 27424686 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': 3817116, 'mtr_portfolio_id': 27424686, 'created_at': datetime.datetime(2025, 10, 2, 6, 20, 5), 'result': '0.03805004351602606', 'result_long': None, 'result_double': None}] Qualite : 0.03805004351602606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27424686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27424686_02-10-2025_06_20_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27424686 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_P27424686_02-10-2025_06_20_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, 'pht': 3726}}" where mtr_portfolio_id = 27424686 and dashboard_run_id = 2387341 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`=27424686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917548, 0.03805004351602606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27424686_02-10-2025_06_20_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27424695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27424696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27424697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27424698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27424699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27424700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27424701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27424702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27424703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27424704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27424705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27424706, '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 = 27425124 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': 3817117, 'mtr_portfolio_id': 27425124, 'created_at': datetime.datetime(2025, 10, 2, 6, 20, 34), 'result': '0.05952098740432512', 'result_long': None, 'result_double': None}] Qualite : 0.05952098740432512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425124_02-10-2025_06_20_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425124 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_P27425124_02-10-2025_06_20_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, 'pht': 3726}}" where mtr_portfolio_id = 27425124 and dashboard_run_id = 2387341 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`=27425124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917549, 0.05952098740432512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425124_02-10-2025_06_20_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425172, '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 = 27425471 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': 3817118, 'mtr_portfolio_id': 27425471, 'created_at': datetime.datetime(2025, 10, 2, 6, 20, 41), 'result': '0.03893524702401776', 'result_long': None, 'result_double': None}] Qualite : 0.03893524702401776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425471_02-10-2025_06_20_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425471 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_P27425471_02-10-2025_06_20_43.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, 'pht': 3726}}" where mtr_portfolio_id = 27425471 and dashboard_run_id = 2387341 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`=27425471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917550, 0.03893524702401776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425471_02-10-2025_06_20_43.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425513, '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 = 27425856 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': 3817119, 'mtr_portfolio_id': 27425856, 'created_at': datetime.datetime(2025, 10, 2, 6, 21, 5), 'result': '0.054578197431255665', 'result_long': None, 'result_double': None}] Qualite : 0.054578197431255665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27425856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425856_02-10-2025_06_21_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27425856 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_P27425856_02-10-2025_06_21_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, 'pht': 3726}}" where mtr_portfolio_id = 27425856 and dashboard_run_id = 2387341 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`=27425856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917551, 0.054578197431255665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27425856_02-10-2025_06_21_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27425930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27425931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27425932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27425933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27425934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27425935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27425936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27425937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27425938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27425939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27425940, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27425941, '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 = 27427278 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': 3817120, 'mtr_portfolio_id': 27427278, 'created_at': datetime.datetime(2025, 10, 2, 6, 21, 31), 'result': '0.05401482429616102', 'result_long': None, 'result_double': None}] Qualite : 0.05401482429616102 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427278_02-10-2025_06_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427278 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_P27427278_02-10-2025_06_21_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, 'pht': 3726}}" where mtr_portfolio_id = 27427278 and dashboard_run_id = 2387341 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`=27427278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917552, 0.05401482429616102, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427278_02-10-2025_06_21_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427291, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427292, '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 = 27427585 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': 3817121, 'mtr_portfolio_id': 27427585, 'created_at': datetime.datetime(2025, 10, 2, 6, 22, 3), 'result': '0.017369504730147943', 'result_long': None, 'result_double': None}] Qualite : 0.017369504730147943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427585_02-10-2025_06_22_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427585 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_P27427585_02-10-2025_06_22_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, 'pht': 3726}}" where mtr_portfolio_id = 27427585 and dashboard_run_id = 2387341 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`=27427585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917553, 0.017369504730147943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427585_02-10-2025_06_22_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427599, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427602, '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 = 27427882 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': 3817122, 'mtr_portfolio_id': 27427882, 'created_at': datetime.datetime(2025, 10, 2, 6, 22, 34), 'result': '0.055472849667238075', 'result_long': None, 'result_double': None}] Qualite : 0.055472849667238075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27427882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427882_02-10-2025_06_22_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27427882 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_P27427882_02-10-2025_06_22_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, 'pht': 3726}}" where mtr_portfolio_id = 27427882 and dashboard_run_id = 2387341 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`=27427882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917554, 0.055472849667238075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27427882_02-10-2025_06_22_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27427897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27427898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27427899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27427900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27427901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27427902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27427903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27427904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27427905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27427906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27427907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27427908, '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 = 27428370 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': 3817123, 'mtr_portfolio_id': 27428370, 'created_at': datetime.datetime(2025, 10, 2, 6, 23, 32), 'result': '0.07088757582560466', 'result_long': None, 'result_double': None}] Qualite : 0.07088757582560466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27428370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428370_02-10-2025_06_23_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27428370 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_P27428370_02-10-2025_06_23_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, 'pht': 3726}}" where mtr_portfolio_id = 27428370 and dashboard_run_id = 2387341 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`=27428370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917555, 0.07088757582560466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428370_02-10-2025_06_23_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428377, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428381, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428387, '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 = 27428628 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': 3817124, 'mtr_portfolio_id': 27428628, 'created_at': datetime.datetime(2025, 10, 2, 6, 24, 3), 'result': '0.046588805298508854', 'result_long': None, 'result_double': None}] Qualite : 0.046588805298508854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27428628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428628_02-10-2025_06_24_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27428628 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_P27428628_02-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, 'pht': 3726}}" where mtr_portfolio_id = 27428628 and dashboard_run_id = 2387341 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`=27428628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917556, 0.046588805298508854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27428628_02-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27428640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27428641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27428642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27428643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27428644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27428645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27428646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27428647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27428648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27428649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27428650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27428651, '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 = 27429102 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': 3817125, 'mtr_portfolio_id': 27429102, 'created_at': datetime.datetime(2025, 10, 2, 6, 24, 34), 'result': '0.077104346897828', 'result_long': None, 'result_double': None}] Qualite : 0.077104346897828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27429102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429102_02-10-2025_06_24_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27429102 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_P27429102_02-10-2025_06_24_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, 'pht': 3726}}" where mtr_portfolio_id = 27429102 and dashboard_run_id = 2387341 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`=27429102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917557, 0.077104346897828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429102_02-10-2025_06_24_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429153, '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 = 27429508 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': 3817126, 'mtr_portfolio_id': 27429508, 'created_at': datetime.datetime(2025, 10, 2, 6, 25, 34), 'result': '0.05389259482735209', 'result_long': None, 'result_double': None}] Qualite : 0.05389259482735209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27429508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429508_02-10-2025_06_25_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27429508 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_P27429508_02-10-2025_06_25_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, 'pht': 3726}}" where mtr_portfolio_id = 27429508 and dashboard_run_id = 2387341 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`=27429508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917558, 0.05389259482735209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27429508_02-10-2025_06_25_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27429518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27429520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27429521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27429522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27429523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27429524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27429525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27429526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27429527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27429528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27429529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27429530, '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 = 27430058 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': 3817127, 'mtr_portfolio_id': 27430058, 'created_at': datetime.datetime(2025, 10, 2, 6, 25, 44), 'result': '0.0423529452624232', 'result_long': None, 'result_double': None}] Qualite : 0.0423529452624232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27430058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430058_02-10-2025_06_25_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27430058 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_P27430058_02-10-2025_06_25_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, 'pht': 3726}}" where mtr_portfolio_id = 27430058 and dashboard_run_id = 2387341 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`=27430058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917559, 0.0423529452624232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430058_02-10-2025_06_25_47.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430080, '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 = 27430484 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': 3817128, 'mtr_portfolio_id': 27430484, 'created_at': datetime.datetime(2025, 10, 2, 6, 26, 4), 'result': '0.0407452815962534', 'result_long': None, 'result_double': None}] Qualite : 0.0407452815962534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27430484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_06_26_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27430484 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_P27430484_02-10-2025_06_26_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, 'pht': 3726}}" where mtr_portfolio_id = 27430484 and dashboard_run_id = 2387341 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`=27430484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917560, 0.0407452815962534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430484_02-10-2025_06_26_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27430530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27430531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27430532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27430533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27430534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27430535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27430536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27430537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27430538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27430539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27430540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27430541, '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 = 27430971 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': 3817129, 'mtr_portfolio_id': 27430971, 'created_at': datetime.datetime(2025, 10, 2, 6, 26, 6), 'result': '0.05404940717611321', 'result_long': None, 'result_double': None}] Qualite : 0.05404940717611321 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27430971 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430971_02-10-2025_06_26_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27430971 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_P27430971_02-10-2025_06_26_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431029, 'pht': 3726}}" where mtr_portfolio_id = 27430971 and dashboard_run_id = 2387341 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`=27430971 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917561, 0.05404940717611321, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27430971_02-10-2025_06_26_09.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431019, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431029, '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 = 27431419 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': 3817130, 'mtr_portfolio_id': 27431419, 'created_at': datetime.datetime(2025, 10, 2, 6, 26, 37), 'result': '0.06146544379296544', 'result_long': None, 'result_double': None}] Qualite : 0.06146544379296544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27431419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27431419_02-10-2025_06_26_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27431419 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_P27431419_02-10-2025_06_26_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431456, 'pht': 3726}}" where mtr_portfolio_id = 27431419 and dashboard_run_id = 2387341 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`=27431419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917562, 0.06146544379296544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27431419_02-10-2025_06_26_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27431445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27431446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27431447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27431448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27431449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27431450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27431451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27431452, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27431453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27431454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27431455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27431456, '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 = 27432843 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': 3817131, 'mtr_portfolio_id': 27432843, 'created_at': datetime.datetime(2025, 10, 2, 6, 27, 33), 'result': '0.018644831053368203', 'result_long': None, 'result_double': None}] Qualite : 0.018644831053368203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27432843 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27432843_02-10-2025_06_27_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27432843 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_P27432843_02-10-2025_06_27_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27432844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27432845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27432846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27432847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27432848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27432849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27432850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27432851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27432852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27432853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27432854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27432855, 'pht': 3726}}" where mtr_portfolio_id = 27432843 and dashboard_run_id = 2387341 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`=27432843 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917563, 0.018644831053368203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27432843_02-10-2025_06_27_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27432844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27432845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27432846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27432847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27432848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27432849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27432850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27432851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27432852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27432853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27432854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27432855, '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 = 27433044 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': 3817132, 'mtr_portfolio_id': 27433044, 'created_at': datetime.datetime(2025, 10, 2, 6, 28, 3), 'result': '0.029338295976353613', 'result_long': None, 'result_double': None}] Qualite : 0.029338295976353613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27433044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433044_02-10-2025_06_28_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27433044 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_P27433044_02-10-2025_06_28_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433056, 'pht': 3726}}" where mtr_portfolio_id = 27433044 and dashboard_run_id = 2387341 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`=27433044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917564, 0.029338295976353613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433044_02-10-2025_06_28_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433045, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433051, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433056, '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 = 27433373 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': 3817177, 'mtr_portfolio_id': 27433373, 'created_at': datetime.datetime(2025, 10, 2, 5, 49, 30), 'result': '0.025567915666798', 'result_long': None, 'result_double': None}] Qualite : 0.025567915666798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27433373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433373_02-10-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27433373 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_P27433373_02-10-2025_05_49_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433381, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433388, 'pht': 3726}}" where mtr_portfolio_id = 27433373 and dashboard_run_id = 2387341 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`=27433373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917565, 0.025567915666798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433373_02-10-2025_05_49_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433381, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433388, '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 = 27433513 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': 3817205, 'mtr_portfolio_id': 27433513, 'created_at': datetime.datetime(2025, 10, 2, 6, 3, 3), 'result': '0.05057969559259677', 'result_long': None, 'result_double': None}] Qualite : 0.05057969559259677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27433513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433513_02-10-2025_06_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27433513 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_P27433513_02-10-2025_06_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433531, 'pht': 3726}}" where mtr_portfolio_id = 27433513 and dashboard_run_id = 2387341 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`=27433513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917566, 0.05057969559259677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433513_02-10-2025_06_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433523, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433531, '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 = 27433795 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': 3817315, 'mtr_portfolio_id': 27433795, 'created_at': datetime.datetime(2025, 10, 2, 6, 19, 33), 'result': '0.049490692622507715', 'result_long': None, 'result_double': None}] Qualite : 0.049490692622507715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27433795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433795_02-10-2025_06_19_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27433795 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_P27433795_02-10-2025_06_19_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433818, 'pht': 3726}}" where mtr_portfolio_id = 27433795 and dashboard_run_id = 2387341 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`=27433795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917567, 0.049490692622507715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27433795_02-10-2025_06_19_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27433807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27433808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27433809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27433810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27433811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27433812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27433813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27433814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27433815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27433816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27433817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27433818, '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 = 27434083 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': 3817417, 'mtr_portfolio_id': 27434083, 'created_at': datetime.datetime(2025, 10, 2, 6, 33, 5), 'result': '0.032374888848950116', 'result_long': None, 'result_double': None}] Qualite : 0.032374888848950116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27434083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434083_02-10-2025_06_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27434083 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_P27434083_02-10-2025_06_33_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434101, 'pht': 3726}}" where mtr_portfolio_id = 27434083 and dashboard_run_id = 2387341 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`=27434083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917568, 0.032374888848950116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434083_02-10-2025_06_33_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434090, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434101, '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 = 27434369 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': 3817533, 'mtr_portfolio_id': 27434369, 'created_at': datetime.datetime(2025, 10, 2, 6, 47), 'result': '0.07177627839104758', 'result_long': None, 'result_double': None}] Qualite : 0.07177627839104758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27434369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434369_02-10-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27434369 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_P27434369_02-10-2025_06_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434417, 'pht': 3726}}" where mtr_portfolio_id = 27434369 and dashboard_run_id = 2387341 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`=27434369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917569, 0.07177627839104758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434369_02-10-2025_06_47_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27434405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434417, '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 = 27434760 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': 3817730, 'mtr_portfolio_id': 27434760, 'created_at': datetime.datetime(2025, 10, 2, 7, 3), 'result': '0.030048570090919026', 'result_long': None, 'result_double': None}] Qualite : 0.030048570090919026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27434760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434760_02-10-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27434760 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_P27434760_02-10-2025_07_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27434804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434810, 'pht': 3726}}" where mtr_portfolio_id = 27434760 and dashboard_run_id = 2387346 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`=27434760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917570, 0.030048570090919026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27434760_02-10-2025_07_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27434799, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27434800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27434801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27434802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27434803, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27434804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27434805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27434806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27434807, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27434808, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27434809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27434810, '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 = 27435271 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': 3818019, 'mtr_portfolio_id': 27435271, 'created_at': datetime.datetime(2025, 10, 2, 7, 17), 'result': '0.07558246873279847', 'result_long': None, 'result_double': None}] Qualite : 0.07558246873279847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27435271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27435271_02-10-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27435271 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_P27435271_02-10-2025_07_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27435303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27435304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27435305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27435306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27435307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27435308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27435309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27435310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27435311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27435312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27435313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27435315, 'pht': 3726}}" where mtr_portfolio_id = 27435271 and dashboard_run_id = 2387346 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`=27435271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917571, 0.07558246873279847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27435271_02-10-2025_07_17_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27435303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27435304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27435305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27435306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27435307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27435308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27435309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27435310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27435311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27435312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27435313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27435315, '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 = 27436023 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': 3818253, 'mtr_portfolio_id': 27436023, 'created_at': datetime.datetime(2025, 10, 2, 7, 31), 'result': '0.06535457667310497', 'result_long': None, 'result_double': None}] Qualite : 0.06535457667310497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27436023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27436023_02-10-2025_07_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27436023 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_P27436023_02-10-2025_07_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27436089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27436090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27436091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27436092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27436093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27436094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27436095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27436096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27436097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27436098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27436099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27436100, 'pht': 3726}}" where mtr_portfolio_id = 27436023 and dashboard_run_id = 2387346 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`=27436023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15917572, 0.06535457667310497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27436023_02-10-2025_07_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27436089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27436090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27436091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27436092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27436093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27436094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27436095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27436096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27436097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27436098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27436099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27436100, '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 (27424686,27425124,27425471,27425856,27427278,27427585,27427882,27428370,27428628,27429102,27429508,27430058,27430484,27430971,27431419,27432843,27433044,27433373,27433513,27433795,27434083,27434369,27434760,27435271,27436023) result : ((1387291774,), (1387291778,), (1387291781,), (1387291812,), (1387291813,), (1387291814,), (1387291816,), (1387291819,), (1387291841,), (1387291844,), (1387291846,), (1387291967,), (1387292459,), (1387292461,), (1387292465,), (1387292467,), (1387292616,), (1387292621,), (1387292626,), (1387292631,), (1387292635,), (1387292637,), (1387292648,), (1387292650,), (1387292651,), (1387292654,), (1387292674,), (1387292677,), (1387292680,), (1387292683,), (1387292702,), (1387292704,), (1387292705,), (1387292706,), (1387295337,), (1387295331,), (1387295334,), (1387295936,), (1387296090,), (1387296143,), (1387296147,), (1387296163,), (1387296164,), (1387296183,), (1387296186,), (1387296189,), (1387296192,), (1387296210,), (1387296213,), (1387296215,), (1387296218,), (1387296238,), (1387296241,), (1387296244,), (1387296247,), (1387296253,), (1387296503,), (1387297042,), (1387297086,), (1387297104,), (1387297107,), (1387297109,), (1387297112,), (1387297251,), (1387297487,), (1387297494,), (1387297497,), (1387297501,), (1387297504,), (1387297507,), (1387297518,), (1387297521,), (1387297524,), (1387297546,), (1387297551,), (1387297582,), (1387297585,), (1387297588,), (1387297577,), (1387297579,), (1387297608,), (1387297611,), (1387297613,), (1387297615,), (1387297617,), (1387297635,), (1387297637,), (1387297745,), (1387297990,), (1387297994,), (1387298190,), (1387298193,), (1387298195,), (1387298199,), (1387298203,), (1387298217,), (1387298220,), (1387298223,), (1387298225,), (1387298231,), (1387298234,), (1387298247,), (1387298249,), (1387298267,), (1387298271,), (1387298275,), (1387298299,), (1387298301,), (1387298304,), (1387298321,), (1387298323,), (1387298679,), (1387298681,), (1387298864,), (1387298866,), (1387298869,), (1387298884,), (1387298887,), (1387298890,), (1387298893,), (1387298895,), (1387298896,), (1387298900,), (1387298908,), (1387298909,), (1387298910,), (1387298929,), (1387298933,), (1387298936,), (1387298956,), (1387298958,), (1387298960,), (1387298963,), (1387298966,), (1387298977,), (1387298980,), (1387299006,), (1387299000,), (1387299003,), (1387299024,), (1387299026,), (1387299028,), (1387299030,), (1387299043,), (1387299046,), (1387299048,), (1387299063,), (1387299065,), (1387299101,), (1387299557,), (1387299561,), (1387299564,), (1387299567,), (1387299860,), (1387299863,), (1387299864,), (1387299865,), (1387299883,), (1387300134,), (1387300238,), (1387300418,), (1387300425,), (1387300427,), (1387300430,), (1387300565,), (1387300622,), (1387300655,), (1387300658,), (1387300661,), (1387300665,), (1387300669,), (1387300698,), (1387300701,), (1387300704,), (1387300706,), (1387300708,), (1387300710,), (1387300738,), (1387300740,), (1387300742,), (1387300745,), (1387300769,), (1387300772,), (1387300773,), (1387300776,), (1387300778,), (1387300780,), (1387301423,), (1387301623,), (1387301626,), (1387301629,), (1387301632,), (1387301633,), (1387304300,), (1387304301,), (1387304303,), (1387304884,), (1387304911,), (1387305176,), (1387305177,), (1387305179,), (1387305270,), (1387305273,), (1387305276,), (1387305278,), (1387305936,), (1387305941,), (1387305942,), (1387305967,), (1387305970,), (1387306250,), (1387306349,), (1387306352,), (1387306523,), (1387306525,), (1387306541,), (1387306544,), (1387306545,), (1387306575,), (1387306577,), (1387306580,), (1387306603,), (1387306607,), (1387306628,), (1387306631,), (1387306634,), (1387306637,), (1387306652,), (1387306656,), (1387306658,), (1387306675,), (1387306674,), (1387306702,), (1387306707,), (1387306711,), (1387306736,), (1387306737,), (1387306764,), (1387306767,), (1387306788,), (1387306791,), (1387306794,), (1387306818,), (1387306820,), (1387306823,), (1387306827,), (1387306831,), (1387306834,), (1387306840,), (1387306845,), (1387306849,), (1387306852,), (1387306854,), (1387306892,), (1387306903,), (1387306924,), (1387306926,), (1387306928,), (1387306931,), (1387306935,), (1387306959,), (1387306961,), (1387306963,), (1387306985,), (1387306987,), (1387306991,), (1387307013,), (1387307016,), (1387307019,), (1387307072,), (1387307076,), (1387307382,), (1387307384,), (1387307386,), (1387307389,), (1387307393,), (1387307408,), (1387307411,), (1387307413,), (1387307416,), (1387307418,), (1387307420,), (1387307421,), (1387307422,), (1387307423,), (1387307405,), (1387307406,), (1387307407,), (1387307424,), (1387307425,), (1387307427,), (1387307457,), (1387307459,), (1387307473,), (1387307475,), (1387307477,), (1387307489,), (1387307899,), (1387308326,), (1387308328,), (1387308701,), (1387308703,), (1387308705,), (1387308709,), (1387308725,), (1387308729,), (1387308730,), (1387308732,), (1387308735,), (1387308738,), (1387308743,), (1387308745,), (1387308753,), (1387308755,), (1387308758,), (1387308761,), (1387308773,), (1387308774,), (1387308775,), (1387308777,), (1387308786,), (1387308788,), (1387308791,), (1387308793,), (1387308795,), (1387308797,), (1387308820,), (1387308822,), (1387310324,), (1387310279,), (1387310337,), (1387310338,), (1387310361,), (1387310363,), (1387310376,), (1387310378,), (1387310379,), (1387310381,), (1387310385,), (1387310390,), (1387310392,), (1387310394,), (1387310430,), (1387310431,), (1387310432,), (1387310433,), (1387310447,), (1387310450,), (1387310454,), (1387310469,), (1387310471,), (1387310472,), (1387310473,), (1387310475,), (1387310483,), (1387310485,), (1387310487,), (1387310497,), (1387310499,), (1387310532,), (1387310534,), (1387310536,), (1387310539,), (1387310541,), (1387310552,), (1387310554,), (1387310556,), (1387310558,), (1387310569,), (1387310573,), (1387310575,), (1387310601,), (1387310608,), (1387310612,), (1387310615,), (1387310596,), (1387310598,), (1387310622,), (1387310625,), (1387310640,), (1387310645,), (1387310647,), (1387310706,), (1387310708,), (1387310712,), (1387310716,), (1387310719,), (1387310722,), (1387310729,), (1387310730,), (1387310731,), (1387310733,), (1387310734,), (1387310736,), (1387310742,), (1387310744,), (1387310746,), (1387310749,), (1387310751,), (1387310760,), (1387310762,), (1387310763,), (1387310765,), (1387310770,), (1387310795,), (1387310797,), (1387310799,), (1387310812,), (1387310814,), (1387310816,), (1387310841,), (1387310845,), (1387310849,), (1387310858,), (1387310860,), (1387310862,), (1387310870,), (1387310871,), (1387310872,), (1387310878,), (1387310880,), (1387310920,), (1387310923,), (1387310926,), (1387310928,), (1387310942,), (1387310954,), (1387310958,), (1387310959,), (1387310986,), (1387310976,), (1387310978,), (1387310981,), (1387310983,), (1387310997,), (1387310998,), (1387310999,), (1387311010,), (1387311039,), (1387311043,), (1387311047,), (1387311065,), (1387311067,), (1387311069,), (1387311071,), (1387311075,), (1387311080,), (1387311082,), (1387311096,), (1387311097,), (1387311098,), (1387311107,), (1387311109,), (1387311111,), (1387311113,), (1387311117,), (1387311120,), (1387311123,), (1387311126,), (1387311129,), (1387311137,), (1387311150,), (1387311151,), (1387311152,), (1387311155,), (1387311172,), (1387311174,), (1387311176,), (1387311178,), (1387311206,), (1387311207,), (1387311208,), (1387311209,), (1387311223,), (1387311225,), (1387311227,), (1387311228,), (1387311238,), (1387311268,), (1387311270,), (1387311292,), (1387311295,), (1387311298,), (1387311322,), (1387311320,), (1387311321,), (1387311359,), (1387311363,), (1387311392,), (1387311395,), (1387312556,), (1387313794,), (1387313796,), (1387313837,), (1387313839,), (1387313984,), (1387314049,), (1387314053,), (1387314055,), (1387314061,), (1387314064,), (1387314067,), (1387314087,), (1387314091,), (1387314115,), (1387314118,), (1387314121,), (1387314124,), (1387314146,), (1387314149,), (1387314152,), (1387314155,), (1387314159,), (1387314178,), (1387314181,), (1387314203,), (1387314223,), (1387314226,), (1387314229,), (1387314232,), (1387314268,), (1387314271,), (1387314276,), (1387314277,), (1387314281,), (1387314284,), (1387314296,), (1387314299,), (1387314301,), (1387314312,), (1387314314,), (1387314317,), (1387314354,), (1387314351,), (1387314373,), (1387314376,), (1387314379,), (1387314381,), (1387314442,), (1387314446,), (1387314451,), (1387314455,), (1387314459,), (1387314474,), (1387314477,), (1387314502,), (1387314505,), (1387314508,), (1387314510,), (1387314523,), (1387314525,), (1387314528,), (1387314533,), (1387314536,), (1387314539,), (1387314550,), (1387314553,), (1387314559,), (1387314561,), (1387314584,), (1387314587,), (1387314590,), (1387314592,), (1387314606,), (1387314609,), (1387314610,), (1387314636,), (1387314638,), (1387314640,), (1387314642,), (1387314649,), (1387314652,), (1387314659,), (1387314661,), (1387314663,), (1387314666,), (1387314669,), (1387314683,), (1387314686,), (1387314688,), (1387314740,), (1387314744,), (1387314747,), (1387314770,), (1387314772,), (1387314773,), (1387314774,), (1387314779,), (1387314793,), (1387314795,), (1387314797,), (1387314837,), (1387314821,), (1387314826,), (1387314830,), (1387314860,), (1387314863,), (1387314883,), (1387314884,), (1387314885,), (1387314903,), (1387314906,), (1387314927,), (1387314930,), (1387314932,), (1387314934,), (1387314936,), (1387314956,), (1387314958,), (1387314961,), (1387314964,), (1387314984,), (1387315037,), (1387315040,), (1387315044,), (1387315047,), (1387315065,), (1387315066,), (1387315067,), (1387315089,), (1387315092,), (1387315095,), (1387315097,), (1387315114,), (1387315117,), (1387315119,), (1387315122,), (1387315128,), (1387315129,), (1387315134,), (1387315136,), (1387315139,), (1387315163,), (1387315164,), (1387315165,), (1387315186,), (1387315189,), (1387315191,), (1387315216,), (1387315218,), (1387315220,), (1387315221,), (1387315224,), (1387315237,), (1387315239,), (1387315241,), (1387315243,), (1387315275,), (1387315261,), (1387315264,), (1387315266,), (1387315269,), (1387315272,), (1387315302,), (1387315304,), (1387315306,), (1387315307,), (1387315328,), (1387315331,), (1387315334,), (1387315338,), (1387315352,), (1387315355,), (1387315358,), (1387315361,), (1387315364,), (1387315367,), (1387315377,), (1387315380,), (1387315382,), (1387315384,), (1387315387,), (1387315402,), (1387315404,), (1387315407,), (1387315410,), (1387315417,), (1387315420,), (1387315423,), (1387315424,), (1387315425,), (1387315426,), (1387315433,), (1387315436,), (1387315439,), (1387315466,), (1387315480,), (1387315483,), (1387315518,), (1387315520,), (1387315522,), (1387315525,), (1387315549,), (1387315552,), (1387315555,), (1387315558,), (1387315588,), (1387315591,), (1387315592,), (1387315608,), (1387315609,), (1387315616,), (1387315665,), (1387315667,), (1387315670,), (1387315697,), (1387315700,), (1387315703,), (1387315707,), (1387315735,), (1387315729,), (1387315733,), (1387316538,), (1387316829,), (1387316836,), (1387316863,), (1387316906,), (1387316951,), (1387317006,), (1387317011,), (1387317015,), (1387317032,), (1387317035,), (1387317056,), (1387317059,), (1387317062,), (1387317090,), (1387317095,), (1387317099,), (1387317103,), (1387317122,), (1387317126,), (1387317931,), (1387317942,), (1387317946,), (1387318272,), (1387318276,), (1387318279,), (1387318284,), (1387318293,), (1387318312,), (1387318316,), (1387318319,), (1387318336,), (1387318340,), (1387318343,), (1387319455,), (1387320309,), (1387322945,), (1387322981,), (1387323045,), (1387323050,), (1387323099,), (1387323103,), (1387323106,), (1387323108,), (1387323110,), (1387323114,), (1387323130,), (1387323289,), (1387323281,), (1387323284,), (1387323286,), (1387323317,), (1387323320,), (1387323344,), (1387323347,), (1387323351,), (1387323371,), (1387323375,), (1387323379,), (1387323401,), (1387323405,), (1387323408,), (1387323412,), (1387323416,), (1387323435,), (1387323440,), (1387323443,), (1387323444,), (1387323446,), (1387323456,), (1387323461,), (1387323498,), (1387323523,), (1387323566,), (1387323569,), (1387323571,), (1387323573,), (1387323594,), (1387323598,), (1387323601,), (1387323604,), (1387323626,), (1387323628,), (1387323629,), (1387323632,), (1387323635,), (1387323638,), (1387323646,), (1387323645,), (1387323929,), (1387323932,), (1387323934,), (1387323957,), (1387323960,), (1387323964,), (1387323987,), (1387323989,), (1387323990,), (1387323992,), (1387323994,), (1387323997,), (1387324003,), (1387324006,), (1387324007,), (1387324009,), (1387324011,), (1387324013,), (1387324016,), (1387324018,), (1387324023,), (1387324039,), (1387324043,), (1387324046,), (1387324049,), (1387324072,), (1387324074,), (1387324076,), (1387324079,), (1387324082,), (1387324084,), (1387324087,), (1387324096,), (1387324100,), (1387324102,), (1387324104,), (1387324107,), (1387324144,), (1387324128,), (1387324131,), (1387324133,), (1387324137,), (1387324141,), (1387324168,), (1387324187,), (1387324198,), (1387324202,), (1387324231,), (1387324237,), (1387324239,), (1387324241,), (1387324255,), (1387324259,), (1387324261,), (1387324264,), (1387324296,), (1387324300,), (1387324302,), (1387324304,), (1387324323,), (1387324326,), (1387324328,), (1387324332,), (1387324372,), (1387324375,), (1387324377,), (1387324427,), (1387324432,), (1387324438,), (1387324441,), (1387324445,), (1387324470,), (1387324474,), (1387324476,), (1387324479,), (1387324483,), (1387324486,), (1387324502,), (1387324505,), (1387324506,), (1387324509,), (1387324512,), (1387324525,), (1387324528,), (1387324532,), (1387324575,), (1387324595,), (1387324597,), (1387324603,), (1387324612,), (1387324633,), (1387324636,), (1387324640,), (1387324643,), (1387324645,), (1387324648,), (1387324663,), (1387324667,), (1387324671,), (1387324681,), (1387324683,), (1387324695,), (1387324760,), (1387324763,), (1387324766,), (1387324769,), (1387325884,), (1387325887,), (1387325890,), (1387326220,), (1387326562,), (1387326565,), (1387326674,), (1387326737,), (1387326760,), (1387327296,), (1387327299,), (1387327302,), (1387327305,), (1387327309,), (1387327312,), (1387327328,), (1387327331,), (1387327334,), (1387327335,), (1387327338,), (1387327357,), (1387327359,), (1387327361,), (1387327365,), (1387327370,), (1387327373,), (1387327381,), (1387327384,), (1387327387,), (1387327390,), (1387327407,), (1387327408,), (1387327409,), (1387327424,), (1387327425,), (1387327428,), (1387327432,), (1387327434,), (1387327447,), (1387327450,), (1387327453,), (1387327456,), (1387327459,), (1387327471,), (1387327477,), (1387327496,), (1387327497,), (1387327518,), (1387327523,), (1387327580,), (1387327564,), (1387327568,), (1387327570,), (1387327573,), (1387327576,), (1387327592,), (1387327594,), (1387327595,), (1387327598,), (1387327602,), (1387327605,), (1387327618,), (1387327621,), (1387327624,), (1387327646,), (1387327649,), (1387327650,), (1387327652,), (1387327676,), (1387327679,), (1387327682,), (1387327686,), (1387327690,), (1387327694,), (1387327706,), (1387327710,), (1387327712,), (1387327713,), (1387327732,), (1387327734,), (1387327736,), (1387327739,), (1387327755,), (1387327759,), (1387327763,), (1387327768,), (1387327773,), (1387327795,), (1387327799,), (1387327802,), (1387327807,), (1387327812,), (1387327823,), (1387327834,), (1387327853,), (1387327856,), (1387327859,), (1387327882,), (1387327886,), (1387327888,), (1387327892,), (1387327897,), (1387327914,), (1387327917,), (1387327920,), (1387327923,), (1387327926,), (1387327943,), (1387327948,), (1387327950,), (1387327968,), (1387327971,), (1387327974,), (1387327977,), (1387327980,), (1387327983,), (1387328020,), (1387328000,), (1387328003,), (1387328005,), (1387328008,), (1387328011,), (1387328033,), (1387328036,), (1387328039,), (1387328054,), (1387328058,), (1387328059,), (1387328060,), (1387328063,), (1387328082,), (1387328085,), (1387328088,), (1387328092,), (1387328096,), (1387328107,), (1387328110,), (1387328112,), (1387328114,), (1387328135,), (1387328137,), (1387328139,), (1387328157,), (1387328161,), (1387328164,), (1387328167,), (1387328172,), (1387328189,), (1387328191,), (1387328212,), (1387328216,), (1387328219,), (1387328223,), (1387328242,), (1387328247,), (1387328252,), (1387328256,), (1387328271,), (1387328274,), (1387328276,), (1387328278,), (1387328280,), (1387328283,), (1387328296,), (1387328298,), (1387328299,), (1387328301,), (1387328304,), (1387328307,), (1387328318,), (1387328324,), (1387328327,), (1387328332,), (1387328350,), (1387328353,), (1387328355,), (1387328357,), (1387328359,), (1387328361,), (1387328378,), (1387328381,), (1387328383,), (1387328387,), (1387328398,), (1387328418,), (1387328409,), (1387328412,), (1387328415,), (1387328436,), (1387328440,), (1387328442,), (1387328444,), (1387328527,), (1387328553,), (1387328576,), (1387328580,), (1387328584,), (1387328587,), (1387328600,), (1387328603,), (1387328679,), (1387328682,), (1387328701,), (1387328704,), (1387328705,), (1387328706,), (1387328708,), (1387328732,), (1387328734,), (1387328737,), (1387328740,), (1387328742,), (1387328762,), (1387328767,), (1387328777,), (1387328810,), (1387328794,), (1387328798,), (1387328801,), (1387328805,), (1387328826,), (1387328829,), (1387328832,), (1387330004,), (1387330015,), (1387330030,), (1387330033,), (1387330037,), (1387330041,), (1387330052,), (1387330347,), (1387330369,), (1387330378,), (1387330383,), (1387330387,), (1387330400,), (1387330405,), (1387330409,), (1387330435,), (1387330438,), (1387330441,), (1387330444,), (1387330448,), (1387330919,), (1387330925,), (1387330927,), (1387330937,), (1387331116,), (1387331199,), (1387331201,), (1387331203,), (1387331207,), (1387331212,), (1387331242,), (1387331325,), (1387331333,), (1387331360,), (1387331364,), (1387331366,), (1387331390,), (1387331393,), (1387331411,), (1387331416,), (1387331420,), (1387331578,), (1387331590,), (1387331597,), (1387331603,), (1387331614,), (1387331644,), (1387331666,), (1387331671,), (1387331676,), (1387331684,), (1387331812,), (1387331821,), (1387331835,), (1387331859,), (1387331861,), (1387331878,), (1387331894,), (1387331964,), (1387331967,), (1387331970,), (1387331973,), (1387332002,), (1387331998,), (1387332000,), (1387332084,), (1387332088,), (1387332096,), (1387332101,), (1387332149,), (1387332153,), (1387332155,), (1387332156,), (1387332265,), (1387332281,), (1387332315,), (1387332320,), (1387332324,), (1387332328,), (1387332332,), (1387332479,), (1387332500,), (1387332503,), (1387332539,), (1387332541,), (1387332583,), (1387332600,), (1387332604,), (1387332607,), (1387332610,), (1387332613,), (1387332616,), (1387332759,), (1387332769,), (1387332774,), (1387332780,), (1387332828,), (1387332968,), (1387332986,), (1387333031,), (1387333033,), (1387333159,), (1387333161,), (1387333164,), (1387333165,), (1387333167,), (1387333192,), (1387333218,), (1387333224,), (1387333576,), (1387333582,), (1387333611,), (1387333614,), (1387333618,), (1387333621,), (1387333751,), (1387333755,), (1387333814,), (1387333817,), (1387333886,), (1387334035,), (1387334039,), (1387334055,), (1387334061,), (1387334214,), (1387334346,), (1387334374,), (1387334382,), (1387334389,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02102025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27436023]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] map_info['map_portfolio_photo'] : {27436023: [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886, 1387333817, 1387333814, 1387333755, 1387333751, 1387333621, 1387333618, 1387333614, 1387333611, 1387333582, 1387333576, 1387333224, 1387333218, 1387333192, 1387333167, 1387333165, 1387333164, 1387333161, 1387333159, 1387333033, 1387333031, 1387332986, 1387332968, 1387332828, 1387332780, 1387332774, 1387332769, 1387332759, 1387332616, 1387332613, 1387332610, 1387332607, 1387332604, 1387332600, 1387332583, 1387332541, 1387332539, 1387332503, 1387332500, 1387332479, 1387332332, 1387332328, 1387332324, 1387332320, 1387332315, 1387332281, 1387332265, 1387332156, 1387332155, 1387332153, 1387332149, 1387332101, 1387332096, 1387332088, 1387332084, 1387332000, 1387331998]} final : True mtd_id 4302 list_pids : [1387334389, 1387334382, 1387334374, 1387334346, 1387334214, 1387334061, 1387334055, 1387334039, 1387334035, 1387333886] Looping around the photos to save general results len do output : 1 /27436023Didn'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, '3818253') ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253') ('4302', None, None, None, None, None, None, None, '3818253') ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253') 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, '27436023', 'None', None, None, None, None, '3818253'), ('4302', '27436023', '1387334389', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334382', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334374', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334346', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334214', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334061', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334055', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334039', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387334035', None, None, None, None, None, '3818253'), ('4302', '27436023', '1387333886', None, None, None, None, None, '3818253')] time used for this insertion : 0.03813648223876953 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.375876188278198 time spend to save output : 0.03832864761352539 total time spend for step 5 : 6.414204835891724 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 (3818253) 2.16user 2.21system 0:16.41elapsed 26%CPU (0avgtext+0avgdata 160128maxresident)k 112inputs+10960outputs (0major+69621minor)pagefaults 0swaps