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 : 158974 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 (4203623) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4203623) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302853 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4203623'] with mtr_portfolio_ids : ['29302853'] and first list_photo_ids : [] new path : /proc/158974/ Name: python3 Umask: 0002 State: R (running) Tgid: 158974 Ngid: 0 Pid: 158974 PPid: 158973 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 158974 NSpid: 158974 NSpgid: 157879 NSsid: 157879 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106604 kB VmRSS: 106604 kB RssAnon: 66312 kB RssFile: 40292 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 608 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: 47 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '158974', 'Ngid': '0', 'Pid': '158974', 'PPid': '158973', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '158974', 'NSpid': '158974', 'NSpgid': '157879', 'NSsid': '157879', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106604 kB', 'VmRSS': '106604 kB', 'RssAnon': '66312 kB', 'RssFile': '40292 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '608 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': '47', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '158974', '1113360', '0', '1113360', '872088', '106604', b'', 'marlene', '4203623') 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 (29302853) 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 (4203623 ) ) 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 (29302853) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398708647, 'portfolio_id': 29302853}, {'photo_id': 1398708595, 'portfolio_id': 29302853}, {'photo_id': 1398708582, 'portfolio_id': 29302853}, {'photo_id': 1398708537, 'portfolio_id': 29302853}, {'photo_id': 1398708466, 'portfolio_id': 29302853}, {'photo_id': 1398708388, 'portfolio_id': 29302853}, {'photo_id': 1398708360, 'portfolio_id': 29302853}, {'photo_id': 1398708297, 'portfolio_id': 29302853}, {'photo_id': 1398708266, 'portfolio_id': 29302853}, {'photo_id': 1398708239, 'portfolio_id': 29302853}, {'photo_id': 1398708195, 'portfolio_id': 29302853}, {'photo_id': 1398708054, 'portfolio_id': 29302853}, {'photo_id': 1398708028, 'portfolio_id': 29302853}, {'photo_id': 1398708002, 'portfolio_id': 29302853}, {'photo_id': 1398707981, 'portfolio_id': 29302853}, {'photo_id': 1398707976, 'portfolio_id': 29302853}, {'photo_id': 1398707883, 'portfolio_id': 29302853}, {'photo_id': 1398707622, 'portfolio_id': 29302853}, {'photo_id': 1398707594, 'portfolio_id': 29302853}, {'photo_id': 1398707566, 'portfolio_id': 29302853}, {'photo_id': 1398707536, 'portfolio_id': 29302853}, {'photo_id': 1398707275, 'portfolio_id': 29302853}, {'photo_id': 1398707248, 'portfolio_id': 29302853}, {'photo_id': 1398707245, 'portfolio_id': 29302853}, {'photo_id': 1398707237, 'portfolio_id': 29302853}, {'photo_id': 1398707130, 'portfolio_id': 29302853}, {'photo_id': 1398707120, 'portfolio_id': 29302853}, {'photo_id': 1398707109, 'portfolio_id': 29302853}, {'photo_id': 1398707105, 'portfolio_id': 29302853}, {'photo_id': 1398706970, 'portfolio_id': 29302853}, {'photo_id': 1398706927, 'portfolio_id': 29302853}, {'photo_id': 1398706915, 'portfolio_id': 29302853}, {'photo_id': 1398706613, 'portfolio_id': 29302853}, {'photo_id': 1398706537, 'portfolio_id': 29302853}, {'photo_id': 1398706497, 'portfolio_id': 29302853}, {'photo_id': 1398706472, 'portfolio_id': 29302853}, {'photo_id': 1398706379, 'portfolio_id': 29302853}, {'photo_id': 1398706317, 'portfolio_id': 29302853}, {'photo_id': 1398706285, 'portfolio_id': 29302853}, {'photo_id': 1398706255, 'portfolio_id': 29302853}, {'photo_id': 1398706217, 'portfolio_id': 29302853}, {'photo_id': 1398705971, 'portfolio_id': 29302853}, {'photo_id': 1398705933, 'portfolio_id': 29302853}, {'photo_id': 1398705909, 'portfolio_id': 29302853}, {'photo_id': 1398705877, 'portfolio_id': 29302853}, {'photo_id': 1398705852, 'portfolio_id': 29302853}, {'photo_id': 1398705590, 'portfolio_id': 29302853}, {'photo_id': 1398705512, 'portfolio_id': 29302853}, {'photo_id': 1398705506, 'portfolio_id': 29302853}, {'photo_id': 1398705505, 'portfolio_id': 29302853}, {'photo_id': 1398705504, 'portfolio_id': 29302853}, {'photo_id': 1398705446, 'portfolio_id': 29302853}, {'photo_id': 1398705284, 'portfolio_id': 29302853}, {'photo_id': 1398705103, 'portfolio_id': 29302853}, {'photo_id': 1398705063, 'portfolio_id': 29302853}, {'photo_id': 1398705022, 'portfolio_id': 29302853}, {'photo_id': 1398704977, 'portfolio_id': 29302853}, {'photo_id': 1398704976, 'portfolio_id': 29302853}, {'photo_id': 1398704975, 'portfolio_id': 29302853}, {'photo_id': 1398704858, 'portfolio_id': 29302853}, {'photo_id': 1398704813, 'portfolio_id': 29302853}, {'photo_id': 1398704775, 'portfolio_id': 29302853}, {'photo_id': 1398704749, 'portfolio_id': 29302853}, {'photo_id': 1398704431, 'portfolio_id': 29302853}, {'photo_id': 1398704405, 'portfolio_id': 29302853}, {'photo_id': 1398704372, 'portfolio_id': 29302853}, {'photo_id': 1398704288, 'portfolio_id': 29302853}] map_portfolio_id_photo_id: {29302853: [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883, 1398707622, 1398707594, 1398707566, 1398707536, 1398707275, 1398707248, 1398707245, 1398707237, 1398707130, 1398707120, 1398707109, 1398707105, 1398706970, 1398706927, 1398706915, 1398706613, 1398706537, 1398706497, 1398706472, 1398706379, 1398706317, 1398706285, 1398706255, 1398706217, 1398705971, 1398705933, 1398705909, 1398705877, 1398705852, 1398705590, 1398705512, 1398705506, 1398705505, 1398705504, 1398705446, 1398705284, 1398705103, 1398705063, 1398705022, 1398704977, 1398704976, 1398704975, 1398704858, 1398704813, 1398704775, 1398704749, 1398704431, 1398704405, 1398704372, 1398704288]} ##### 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.030190467834472656 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 10 14:44:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29302853) 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 : 29302853 get user id for portfolio 29302853 get sub ptf for main ptf 29302853, type 3726 and hashtags ['Carton_brun', 'mal_croppe', 'flou', 'plastique', 'kraft', 'Carton_gris', 'autre_refus', 'papier', 'metal', 'environnement', 'Teint_Dans_La_Masse', 'cartonnette'] 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`=29302853 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','plastique','kraft','Carton_gris','autre_refus','papier','metal','environnement','Teint_Dans_La_Masse','cartonnette')) 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`=29302853 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','plastique','kraft','Carton_gris','autre_refus','papier','metal','environnement','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29302853, 'sub_port_id': 29302901, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945518, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'mal_croppe': {'main_port_id': 29302853, 'sub_port_id': 29302902, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945519, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29302853, 'sub_port_id': 29302903, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945520, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'Carton_brun': {'main_port_id': 29302853, 'sub_port_id': 29302904, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945521, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'plastique': {'main_port_id': 29302853, 'sub_port_id': 29302905, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945522, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'environnement': {'main_port_id': 29302853, 'sub_port_id': 29302906, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945523, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'flou': {'main_port_id': 29302853, 'sub_port_id': 29302907, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945524, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'papier': {'main_port_id': 29302853, 'sub_port_id': 29302908, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945525, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'metal': {'main_port_id': 29302853, 'sub_port_id': 29302909, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945526, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'autre_refus': {'main_port_id': 29302853, 'sub_port_id': 29302910, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945527, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'cartonnette': {'main_port_id': 29302853, 'sub_port_id': 29302911, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945528, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}, 'kraft': {'main_port_id': 29302853, 'sub_port_id': 29302912, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945529, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302901 , 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=29302853 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 (29302901) result : ((1398706221,), (1398706223,), (1398706225,), (1398707034,), (1398707035,), (1398707036,), (1398707037,), (1398708585,), (1398708586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302902 , 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=29302853 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 (29302902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302903 , 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=29302853 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 (29302903) result : ((1398706188,), (1398706191,), (1398706194,), (1398706197,), (1398706200,), (1398706202,), (1398706204,), (1398707234,), (1398707235,), (1398707236,), (1398707721,), (1398707723,), (1398707725,), (1398707727,), (1398707729,), (1398707731,), (1398707733,), (1398708404,), (1398708405,), (1398708583,), (1398708584,), (1398708705,), (1398708707,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302904 , 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=29302853 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 (29302904) result : ((1398706250,), (1398707046,), (1398707165,), (1398707740,), (1398708409,), (1398708588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302905 , 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=29302853 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 (29302905) result : ((1398706259,), (1398707241,), (1398707242,), (1398707243,), (1398707244,), (1398708594,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302906 , 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=29302853 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 (29302906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302907 , 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=29302853 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 (29302907) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302908 , 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=29302853 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 (29302908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302909 , 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=29302853 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 (29302909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302910 , 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=29302853 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 (29302910) result : ((1398706211,), (1398707153,), (1398708407,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302911 , 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=29302853 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 (29302911) result : ((1398706239,), (1398706241,), (1398707162,), (1398707163,), (1398707164,), (1398707238,), (1398708408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29302912 , 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=29302853 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 (29302912) result : ((1398707059,), (1398707060,), (1398707062,), (1398707063,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29302853) result : ((1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29302853 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','plastique','kraft','Carton_gris','autre_refus','papier','metal','environnement','Teint_Dans_La_Masse','cartonnette')) 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`=29302853 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','flou','plastique','kraft','Carton_gris','autre_refus','papier','metal','environnement','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29302853, 'sub_port_id': 29302914, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945530, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'mal_croppe': {'main_port_id': 29302853, 'sub_port_id': 29302915, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945531, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 29302853, 'sub_port_id': 29302916, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945532, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'Carton_brun': {'main_port_id': 29302853, 'sub_port_id': 29302917, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945533, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'plastique': {'main_port_id': 29302853, 'sub_port_id': 29302918, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945534, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'environnement': {'main_port_id': 29302853, 'sub_port_id': 29302919, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945535, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'flou': {'main_port_id': 29302853, 'sub_port_id': 29302920, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945536, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'papier': {'main_port_id': 29302853, 'sub_port_id': 29302921, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945537, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'metal': {'main_port_id': 29302853, 'sub_port_id': 29302922, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945538, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'autre_refus': {'main_port_id': 29302853, 'sub_port_id': 29302923, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945539, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'cartonnette': {'main_port_id': 29302853, 'sub_port_id': 29302924, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945540, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 33, 36), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}, 'kraft': {'main_port_id': 29302853, 'sub_port_id': 29302925, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19945541, 'last_updated_at': datetime.datetime(2025, 12, 10, 14, 43, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 10, 14, 43, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 10, 14, 33, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29302925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29302912 lien utilise dans velours : https://marlene.fotonower.com/velours/29302914,29302915,29302916,29302917,29302918,29302919,29302920,29302921,29302922,29302923,29302924,29302925?tags=Carton_gris,mal_croppe,Teint_Dans_La_Masse,Carton_brun,plastique,environnement,flou,papier,metal,autre_refus,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29302853]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] map_info['map_portfolio_photo'] : {29302853: [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883, 1398707622, 1398707594, 1398707566, 1398707536, 1398707275, 1398707248, 1398707245, 1398707237, 1398707130, 1398707120, 1398707109, 1398707105, 1398706970, 1398706927, 1398706915, 1398706613, 1398706537, 1398706497, 1398706472, 1398706379, 1398706317, 1398706285, 1398706255, 1398706217, 1398705971, 1398705933, 1398705909, 1398705877, 1398705852, 1398705590, 1398705512, 1398705506, 1398705505, 1398705504, 1398705446, 1398705284, 1398705103, 1398705063, 1398705022, 1398704977, 1398704976, 1398704975, 1398704858, 1398704813, 1398704775, 1398704749, 1398704431, 1398704405, 1398704372, 1398704288]} final : False mtd_id 4302 list_pids : [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] Looping around the photos to save general results len do output : 1 /29302853. 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, '4203623') ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29302853', "{'Carton_gris': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912}", None, None, None, None, '4203623'), ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623')] time used for this insertion : 0.033234357833862305 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.169894218444824 time spend to save output : 0.03362274169921875 total time spend for step 1 : 3.203516960144043 step2:final Wed Dec 10 14:45: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 (29302853) 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 29302853 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398704431,1398704405,1398704372,1398704288,1398704858,1398705284,1398704813,1398705103,1398704775,1398705063,1398705022,1398704749,1398704977,1398704976,1398704975,1398705590,1398705512,1398705506,1398705505,1398705504,1398705446,1398705971,1398705933,1398705909,1398705877,1398705852,1398706317,1398706285,1398706255,1398706217,1398706613,1398706379,1398706537,1398706497,1398706472,1398706970,1398706927,1398706915,1398707130,1398707120,1398707109,1398707105,1398707275,1398707248,1398707245,1398707237,1398707622,1398707594,1398707566,1398707536,1398708647,1398708054,1398708028,1398708595,1398708002,1398708582,1398707981,1398708537,1398707976,1398708466,1398708388,1398707883,1398708360,1398708297,1398708266,1398708239,1398708195); 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([29302853]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} new output for save of step final : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] map_info['map_portfolio_photo'] : {29302853: [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883, 1398707622, 1398707594, 1398707566, 1398707536, 1398707275, 1398707248, 1398707245, 1398707237, 1398707130, 1398707120, 1398707109, 1398707105, 1398706970, 1398706927, 1398706915, 1398706613, 1398706537, 1398706497, 1398706472, 1398706379, 1398706317, 1398706285, 1398706255, 1398706217, 1398705971, 1398705933, 1398705909, 1398705877, 1398705852, 1398705590, 1398705512, 1398705506, 1398705505, 1398705504, 1398705446, 1398705284, 1398705103, 1398705063, 1398705022, 1398704977, 1398704976, 1398704975, 1398704858, 1398704813, 1398704775, 1398704749, 1398704431, 1398704405, 1398704372, 1398704288]} final : False mtd_id 4302 list_pids : [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] Looping around the photos to save general results len do output : 17 /1398708647.Didn't retrieve data . /1398708595.Didn't retrieve data . /1398708582.Didn't retrieve data . /1398708537.Didn't retrieve data . /1398708466.Didn't retrieve data . /1398708388.Didn't retrieve data . /1398708360.Didn't retrieve data . /1398708297.Didn't retrieve data . /1398708266.Didn't retrieve data . /1398708239.Didn't retrieve data . /1398708195.Didn't retrieve data . /1398708054.Didn't retrieve data . /1398708028.Didn't retrieve data . /1398708002.Didn't retrieve data . /1398707981.Didn't retrieve data . /1398707976.Didn't retrieve data . /1398707883.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, '4203623') ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '29302853', '1398708647', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708595', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708582', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708537', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708466', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708388', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708360', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708297', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708266', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708239', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708195', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708054', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708028', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398708002', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398707981', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398707976', '0.05326478622144189', None, None, None, None, '4203623'), ('4302', '29302853', '1398707883', '0.05326478622144189', None, None, None, None, '4203623')] time used for this insertion : 0.027471542358398438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.17983150482177734 time spend to save output : 0.02841782569885254 total time spend for step 2 : 0.20824933052062988 step3:velours_tree Wed Dec 10 14:45: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 : {29302853: [{'Carton_gris': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912}]} input_args_next_step : {29302853: ()} output_args : {29302853: [{'Carton_gris': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912}]} args : 29302853 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': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29302853) 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([29302853]) 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.2577199935913086 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.25777220726013184 step4:send_mail_cod Wed Dec 10 14:45: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 : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} input_args_next_step : {1398708647: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708647 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708595 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708582 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708537 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708466 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708388 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708360 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708297 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708266 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708239 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708195 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708054 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708028 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398708002 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398707981 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398707976 depend.output_id : 0 input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ()} output_args : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',)} args : 1398707883 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 : {29302853: [{'Carton_gris': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912}]} input_args_next_step : {1398708647: ('0.05326478622144189',), 1398708595: ('0.05326478622144189',), 1398708582: ('0.05326478622144189',), 1398708537: ('0.05326478622144189',), 1398708466: ('0.05326478622144189',), 1398708388: ('0.05326478622144189',), 1398708360: ('0.05326478622144189',), 1398708297: ('0.05326478622144189',), 1398708266: ('0.05326478622144189',), 1398708239: ('0.05326478622144189',), 1398708195: ('0.05326478622144189',), 1398708054: ('0.05326478622144189',), 1398708028: ('0.05326478622144189',), 1398708002: ('0.05326478622144189',), 1398707981: ('0.05326478622144189',), 1398707976: ('0.05326478622144189',), 1398707883: ('0.05326478622144189',), 29302853: ()} output_args : {29302853: [{'Carton_gris': 29302901, 'mal_croppe': 29302902, 'Teint_Dans_La_Masse': 29302903, 'Carton_brun': 29302904, 'plastique': 29302905, 'environnement': 29302906, 'flou': 29302907, 'papier': 29302908, 'metal': 29302909, 'autre_refus': 29302910, 'cartonnette': 29302911, 'kraft': 29302912}]} args : 29302853 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 :18, first value : ('0.05326478622144189',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29302853) 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 (1398708647,1398708595,1398708582,1398708537,1398708466,1398708388,1398708360,1398708297,1398708266,1398708239,1398708195,1398708054,1398708028,1398708002,1398707981,1398707976,1398707883) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398707883 begin to download photo : 1398708028 begin to download photo : 1398708266 begin to download photo : 1398708466 begin to download photo : 1398708647 download finish for photo 1398708466 begin to download photo : 1398708537 download finish for photo 1398708647 download finish for photo 1398708266 begin to download photo : 1398708297 download finish for photo 1398708028 begin to download photo : 1398708054 download finish for photo 1398707883 begin to download photo : 1398707976 download finish for photo 1398708537 begin to download photo : 1398708582 download finish for photo 1398708054 begin to download photo : 1398708195 download finish for photo 1398708297 begin to download photo : 1398708360 download finish for photo 1398707976 begin to download photo : 1398707981 download finish for photo 1398708582 begin to download photo : 1398708595 download finish for photo 1398708195 begin to download photo : 1398708239 download finish for photo 1398708360 begin to download photo : 1398708388 download finish for photo 1398707981 begin to download photo : 1398708002 download finish for photo 1398708595 download finish for photo 1398708239 download finish for photo 1398708388 download finish for photo 1398708002 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293029021765374301/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P29302853_10-12-2025_14_45_01.pdf 29302902 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=29302902 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293029021765374301 29302905 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=29302905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398706259: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913897_0.png', 1398707241: '1765373966_2625082_1398706317_b4509d9c86b3c7620238504468305e20_rle_crop_4064924158_0.png', 1398707242: '1765373966_2625082_1398705909_87dd5a4f6a86f3556af184bdb05e17fa_rle_crop_4064924186_0.png', 1398707243: '1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924197_0.png', 1398707244: '1765373966_2625082_1398705852_4a00afe92935329841851dbb2513fe7c_rle_crop_4064924216_0.png', 1398708594: '1765374207_2635307_1398707109_ad2382cbbcd826f2136e143de1a67002_rle_crop_4064927042_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a9f1a242608d016f92ac5a16f959ae44_24704288.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f79e705c722640c427927b426ea59064_51166948.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/04bf6e867485c98779fc9ad6ee9f0c59_77161363.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/47865318efbcce43f0d148ac0727263d_32970100.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3b95d8f06632e22c51c8ec20b3f707c7_78614231.png change filename to text .imagette293029051765374301/ imagette293029051765374301/1765374207_2635307_1398707109_ad2382cbbcd826f2136e143de1a67002_rle_crop_4064927042_0.png.png imagette293029051765374301/1765373966_2625082_1398705852_4a00afe92935329841851dbb2513fe7c_rle_crop_4064924216_0.png.png imagette293029051765374301/1765373966_2625082_1398705909_87dd5a4f6a86f3556af184bdb05e17fa_rle_crop_4064924186_0.png.png imagette293029051765374301/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913897_0.png.png imagette293029051765374301/1765373966_2625082_1398706317_b4509d9c86b3c7620238504468305e20_rle_crop_4064924158_0.png.png imagette293029051765374301/1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924197_0.png.png imagette293029071765374301/ imagette293029091765374301/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4cd349000b17ebfc04cf2eb58ba9cea3_68763609.png imagette293029051765374301 29302907 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=29302907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293029071765374301 29302909 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=29302909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293029091765374301 29302910 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=29302910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398706211: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913896_0.png', 1398707153: '1765373948_2623374_1398706217_a6e4755159eda3f94728958ff0b66b72_rle_crop_4064923990_0.png', 1398708407: '1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926681_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4153f9e0e58254a9603c0881e9e7f548_38907979.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0ef163ab7dbfff98088beffbe0644506_69772493.png change filename to text .imagette293029101765374301/ imagette293029101765374301/1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926681_0.png.png imagette293029101765374301/1765373948_2623374_1398706217_a6e4755159eda3f94728958ff0b66b72_rle_crop_4064923990_0.png.png imagette293029101765374301/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913896_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9af39cf1eff3456d4c8fa7de5357ce4b_29615362.png imagette293029101765374301 29302911 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=29302911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398706239: '1765373707_2612485_1398704431_9c6c69f27e4ad675857fa9396cf1b779_rle_crop_4064913843_0.png', 1398706241: '1765373707_2612485_1398704405_1fa908d7b9ff6ee93cc17a535904c5f1_rle_crop_4064913871_0.png', 1398707162: '1765373948_2623374_1398706285_36d59e5108818a9629e501a25745d7ab_rle_crop_4064923962_0.png', 1398707163: '1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923980_0.png', 1398707164: '1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923981_0.png', 1398707238: '1765373966_2625082_1398705909_87dd5a4f6a86f3556af184bdb05e17fa_rle_crop_4064924185_0.png', 1398708408: '1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926674_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1aeb1b5b5b082475b48db5543a2d6974_2682529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/569f6bacc2f9673187dec2b9342f24c6_83065197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7a32ace260704d5802db63eedc8c78ba_15865030.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/634ca752d6b61024401ef4abe83b8d9c_31884582.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/962642b538c305a22ca85d0bdcb3ad32_74967874.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cef86aec1591430b553290ce6b4f350f_54834541.png change filename to text .imagette293029111765374302/ imagette293029111765374302/1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923981_0.png.png imagette293029111765374302/1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926674_0.png.png imagette293029111765374302/1765373948_2623374_1398706285_36d59e5108818a9629e501a25745d7ab_rle_crop_4064923962_0.png.png imagette293029111765374302/1765373707_2612485_1398704431_9c6c69f27e4ad675857fa9396cf1b779_rle_crop_4064913843_0.png.png imagette293029111765374302/1765373966_2625082_1398705909_87dd5a4f6a86f3556af184bdb05e17fa_rle_crop_4064924185_0.png.png imagette293029111765374302/1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923980_0.png.png imagette293029111765374302/1765373707_2612485_1398704405_1fa908d7b9ff6ee93cc17a535904c5f1_rle_crop_4064913871_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/59156c46c3a1df3933603a7ed201c849_11474406.png imagette293029111765374302 29302912 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=29302912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398707059: '1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923426_0.png', 1398707060: '1765373846_2621382_1398705022_886603869aff4290aa614e1b9ececef6_rle_crop_4064923486_0.png', 1398707062: '1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923547_0.png', 1398707063: '1765373846_2621382_1398704749_e95f7b374293bcdd96ca009522823b43_rle_crop_4064923612_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4d300c8a3865cecc378ee8e9cd6e1060_64223356.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/19e4f8080a8fe40eff068303a866877a_16180462.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4d300c8a3865cecc378ee8e9cd6e1060_16126473.png change filename to text .imagette293029121765374302/ imagette293029121765374302/1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923426_0.png.png imagette293029121765374302/1765373846_2621382_1398704749_e95f7b374293bcdd96ca009522823b43_rle_crop_4064923612_0.png.png imagette293029121765374302/1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923547_0.png.png imagette293029121765374302/1765373846_2621382_1398705022_886603869aff4290aa614e1b9ececef6_rle_crop_4064923486_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/19e4f8080a8fe40eff068303a866877a_71833206.png imagette293029121765374302 29302901 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=29302901 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398706221: '1765373707_2612485_1398704405_1fa908d7b9ff6ee93cc17a535904c5f1_rle_crop_4064913869_0.png', 1398706223: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913901_0.png', 1398706225: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913898_0.png', 1398707034: '1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923422_0.png', 1398707035: '1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923424_0.png', 1398707036: '1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923543_0.png', 1398707037: '1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923545_0.png', 1398708585: '1765374207_2635307_1398707275_9da8c7b0e84d32d51618b921bb9def46_rle_crop_4064927005_0.png', 1398708586: '1765374207_2635307_1398707120_29d6fc996d12866a5179ca0bf7a60538_rle_crop_4064927025_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1c6c760b3e4b670e2f50b23b9d425b97_74623246.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9075ace45f308910cfc087df3a276793_66218477.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e97cd00d2513f15d9bb92bc3d6c4515d_96322804.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e8b4370d94e195332115a779e3dfae85_71384805.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9fc086859b378024be3f092888fc2662_9076044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e8b4370d94e195332115a779e3dfae85_68494415.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9fc086859b378024be3f092888fc2662_67892458.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/8cfbf990cb4de22b30a0375cee9c0c2d_29662317.png change filename to text .imagette293029011765374303/ imagette293029011765374303/1765374207_2635307_1398707275_9da8c7b0e84d32d51618b921bb9def46_rle_crop_4064927005_0.png.png imagette293029011765374303/1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923545_0.png.png imagette293029011765374303/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913898_0.png.png imagette293029011765374303/1765374207_2635307_1398707120_29d6fc996d12866a5179ca0bf7a60538_rle_crop_4064927025_0.png.png imagette293029011765374303/1765373846_2621382_1398704813_f5d0e867f821d030748a10f29a3da57b_rle_crop_4064923543_0.png.png imagette293029011765374303/1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923422_0.png.png imagette293029011765374303/1765373707_2612485_1398704405_1fa908d7b9ff6ee93cc17a535904c5f1_rle_crop_4064913869_0.png.png imagette293029011765374303/1765373846_2621382_1398705103_f71e2a7b8266e04c42f27795d4c355d7_rle_crop_4064923424_0.png.png imagette293029011765374303/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913901_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1997f26c3e2427e3ce4affe822a2eaee_26513491.png imagette293029011765374303 29302903 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=29302903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398707723: '1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924749_0.png', 1398708707: '1765374267_2638914_1398707536_60b98018538dc9934ddab9dff50c33dc_rle_crop_4064927151_0.png', 1398708705: '1765374267_2638914_1398707566_42b9f31b25a9d7dbb2fcc5bcd58bcd5a_rle_crop_4064927140_0.png', 1398708584: '1765374207_2635307_1398707105_4811e0a595362ee7421c5c011724403c_rle_crop_4064927068_0.png', 1398708583: '1765374207_2635307_1398707120_29d6fc996d12866a5179ca0bf7a60538_rle_crop_4064927029_0.png', 1398708405: '1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926678_0.png', 1398708404: '1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926687_0.png', 1398707733: '1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924758_0.png', 1398707731: '1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924767_0.png', 1398707729: '1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924735_0.png', 1398707727: '1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924743_0.png', 1398707725: '1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924742_0.png', 1398706188: '1765373707_2612485_1398704431_9c6c69f27e4ad675857fa9396cf1b779_rle_crop_4064913845_0.png', 1398707721: '1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924744_0.png', 1398707236: '1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924193_0.png', 1398707235: '1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924195_0.png', 1398707234: '1765373966_2625082_1398705933_65743f2ec4ec5b8f559087bd0e65f8ef_rle_crop_4064924175_0.png', 1398706204: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913902_0.png', 1398706202: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913906_0.png', 1398706200: '1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913908_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/3209f3de74e97899086206d27405a53e_58031087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4cb57bb3cd859ecfe93f28a0d68c39e3_78691398.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/8a4f9249590334f505c3e4707b33a952_70042476.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f191e4935568cb05c9906ad8edd6a227_3878783.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/21271af9ed093f8fcc7b73b1421d22e7_19006640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b40276be0f3a8b2d323a39e168ab70ca_25413242.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9c90cd6befd59628237057b1a76c950f_70240619.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7f89204b90d9b284db79bdbca19b1665_23654798.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/e1d4ced46438fb271d7862477cb987e1_76134321.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/b6a92e54b42bc44df2173d4840fbb3bf_97146249.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/bcdcda5b51e4e3ba338f41c6a7694d79_55012868.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/97aa5f0ce4a2a69dfd32d0460767a03b_63481408.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/cf1161f3f78c59809edb26e84b417296_51229174.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/750d029568e51ded7a0cbecf15e905f0_12534639.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/92863f0958dba4dd57b3400753f2241c_17843531.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1063b126c2832bab465413c08811dd52_22838018.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f75e24edc4ba07f70781331047020cba_86181895.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/0a3c32436d63f5f954f98327465863e9_9765142.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f7056485acd5356ed08b1e29dfb21c35_8296075.png change filename to text .imagette293029031765374303/ imagette293029031765374303/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913908_0.png.png imagette293029031765374303/1765374267_2638914_1398707536_60b98018538dc9934ddab9dff50c33dc_rle_crop_4064927151_0.png.png imagette293029031765374303/1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924749_0.png.png imagette293029031765374303/1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924744_0.png.png imagette293029031765374303/1765374207_2635307_1398707105_4811e0a595362ee7421c5c011724403c_rle_crop_4064927068_0.png.png imagette293029031765374303/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913906_0.png.png imagette293029031765374303/1765373707_2612485_1398704431_9c6c69f27e4ad675857fa9396cf1b779_rle_crop_4064913845_0.png.png imagette293029031765374303/1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924742_0.png.png imagette293029031765374303/1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924743_0.png.png imagette293029031765374303/1765373966_2625082_1398705933_65743f2ec4ec5b8f559087bd0e65f8ef_rle_crop_4064924175_0.png.png imagette293029031765374303/1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926687_0.png.png imagette293029031765374303/1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924195_0.png.png imagette293029031765374303/1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924767_0.png.png imagette293029031765374303/1765374207_2635307_1398707120_29d6fc996d12866a5179ca0bf7a60538_rle_crop_4064927029_0.png.png imagette293029031765374303/1765373707_2612485_1398704372_a49c480d254dca5dc32415b10f9b3260_rle_crop_4064913902_0.png.png imagette293029031765374303/1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924758_0.png.png imagette293029031765374303/1765374068_2630797_1398706927_185b559c752e36f2a6034e7dd552611a_rle_crop_4064924735_0.png.png imagette293029031765374303/1765374267_2638914_1398707566_42b9f31b25a9d7dbb2fcc5bcd58bcd5a_rle_crop_4064927140_0.png.png imagette293029031765374303/1765373966_2625082_1398705877_d7d2898adcc474c5849c82a6812d2fd5_rle_crop_4064924193_0.png.png imagette293029031765374303/1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926678_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f5b0728417b21ac8ebe0430e55ed1591_82477760.png imagette293029031765374303 29302904 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=29302904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398706250: '1765373707_2612485_1398704288_5beaaad848c6d64bde91fa8c8aba49e1_rle_crop_4064913930_0.png', 1398707046: '1765373846_2621382_1398704977_a2371b3d525205e57bbe4a12f39ff9cc_rle_crop_4064923519_0.png', 1398707165: '1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923979_0.png', 1398707740: '1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924755_0.png', 1398708409: '1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926682_0.png', 1398708588: '1765374207_2635307_1398707105_4811e0a595362ee7421c5c011724403c_rle_crop_4064927071_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7ad831843296ebb2158b1c3d72bc5a79_13346366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5d31e24259796f73238bdd5b4bfd58cb_15949857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/7eb3535ba203e0b113200b046731ac68_80067534.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/4163709fccd5e7b97d56ccb2133361f4_66721367.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/c1999b774df2e9f997278b04582fc7b1_53211051.png change filename to text .imagette293029041765374305/ imagette293029041765374305/1765373846_2621382_1398704977_a2371b3d525205e57bbe4a12f39ff9cc_rle_crop_4064923519_0.png.png imagette293029041765374305/1765374068_2630797_1398706915_286b4a012a26ee37678437a421c9f96c_rle_crop_4064924755_0.png.png imagette293029041765374305/1765373707_2612485_1398704288_5beaaad848c6d64bde91fa8c8aba49e1_rle_crop_4064913930_0.png.png imagette293029041765374305/1765373948_2623374_1398706255_76c4e6365d4279b6ebdf1dd37f1ac08b_rle_crop_4064923979_0.png.png imagette293029041765374305/1765374188_2634651_1398707237_39bd1fb17eb7dbf58fd8287167047e92_rle_crop_4064926682_0.png.png imagette293029041765374305/1765374207_2635307_1398707105_4811e0a595362ee7421c5c011724403c_rle_crop_4064927071_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/f73c73ab5021203707cabf8e7a648254_1900321.png imagette293029041765374305 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29302853 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29302914,29302915,29302916,29302917,29302918,29302919,29302920,29302921,29302922,29302923,29302924,29302925?tags=Carton_gris,mal_croppe,Teint_Dans_La_Masse,Carton_brun,plastique,environnement,flou,papier,metal,autre_refus,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1398708647] : ('0.05326478622144189',) no score found for photo 1398708647 We are sending mail with results at report@fotonower.com args[1398708595] : ('0.05326478622144189',) no score found for photo 1398708595 We are sending mail with results at report@fotonower.com args[1398708582] : ('0.05326478622144189',) no score found for photo 1398708582 We are sending mail with results at report@fotonower.com args[1398708537] : ('0.05326478622144189',) no score found for photo 1398708537 We are sending mail with results at report@fotonower.com args[1398708466] : ('0.05326478622144189',) no score found for photo 1398708466 We are sending mail with results at report@fotonower.com args[1398708388] : ('0.05326478622144189',) no score found for photo 1398708388 We are sending mail with results at report@fotonower.com args[1398708360] : ('0.05326478622144189',) no score found for photo 1398708360 We are sending mail with results at report@fotonower.com args[1398708297] : ('0.05326478622144189',) no score found for photo 1398708297 We are sending mail with results at report@fotonower.com args[1398708266] : ('0.05326478622144189',) no score found for photo 1398708266 We are sending mail with results at report@fotonower.com args[1398708239] : ('0.05326478622144189',) no score found for photo 1398708239 We are sending mail with results at report@fotonower.com args[1398708195] : ('0.05326478622144189',) no score found for photo 1398708195 We are sending mail with results at report@fotonower.com args[1398708054] : ('0.05326478622144189',) no score found for photo 1398708054 We are sending mail with results at report@fotonower.com args[1398708028] : ('0.05326478622144189',) no score found for photo 1398708028 We are sending mail with results at report@fotonower.com args[1398708002] : ('0.05326478622144189',) no score found for photo 1398708002 We are sending mail with results at report@fotonower.com args[1398707981] : ('0.05326478622144189',) no score found for photo 1398707981 We are sending mail with results at report@fotonower.com args[1398707976] : ('0.05326478622144189',) no score found for photo 1398707976 We are sending mail with results at report@fotonower.com args[1398707883] : ('0.05326478622144189',) no score found for photo 1398707883 We are sending mail with results at report@fotonower.com refus_total : 0.05326478622144189 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=29302853 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_P29302853_10-12-2025_14_45_01.pdf results_Auto_P29302853_10-12-2025_14_45_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_45_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','29302853','results_Auto_P29302853_10-12-2025_14_45_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_45_01.pdf','pdf','','0.31','0.05326478622144189') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29302853]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] map_info['map_portfolio_photo'] : {29302853: [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883, 1398707622, 1398707594, 1398707566, 1398707536, 1398707275, 1398707248, 1398707245, 1398707237, 1398707130, 1398707120, 1398707109, 1398707105, 1398706970, 1398706927, 1398706915, 1398706613, 1398706537, 1398706497, 1398706472, 1398706379, 1398706317, 1398706285, 1398706255, 1398706217, 1398705971, 1398705933, 1398705909, 1398705877, 1398705852, 1398705590, 1398705512, 1398705506, 1398705505, 1398705504, 1398705446, 1398705284, 1398705103, 1398705063, 1398705022, 1398704977, 1398704976, 1398704975, 1398704858, 1398704813, 1398704775, 1398704749, 1398704431, 1398704405, 1398704372, 1398704288]} final : False mtd_id 4302 list_pids : [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] 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, '4203623') ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '29302853', '1398708647', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623')] time used for this insertion : 0.034595489501953125 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.740445852279663 time spend to save output : 0.034897804260253906 total time spend for step 4 : 6.775343656539917 step5:split_time_score Wed Dec 10 14:45:07 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 : ['29302853'] 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 : [('29302853',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29302853) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398708647: {'path': 'temp/1765374300_158974_1398708647_f328f15303f261854ee3ed3278485978.jpg', 'extension': 'jpg'}, 1398708466: {'path': 'temp/1765374300_158974_1398708466_1b85ad85dc480f81d28b92830c519107.jpg', 'extension': 'jpg'}, 1398708537: {'path': 'temp/1765374300_158974_1398708537_80a9ffd7c93ace8a6c7f6f9458f987c7.jpg', 'extension': 'jpg'}, 1398708582: {'path': 'temp/1765374300_158974_1398708582_32c8d30e32b3c1d3975e1e8ed01f4856.jpg', 'extension': 'jpg'}, 1398708595: {'path': 'temp/1765374300_158974_1398708595_cd0c6296a1bc99af462b2889669ba8d4.jpg', 'extension': 'jpg'}, 1398708028: {'path': 'temp/1765374300_158974_1398708028_996f5f686999278e7a73adb7fceadcf3.jpg', 'extension': 'jpg'}, 1398708054: {'path': 'temp/1765374300_158974_1398708054_8217436abcf2c0e159a28e836e9f6e8a.jpg', 'extension': 'jpg'}, 1398708195: {'path': 'temp/1765374300_158974_1398708195_dc16d9b23d10ec075c7e9eb17921568c.jpg', 'extension': 'jpg'}, 1398708239: {'path': 'temp/1765374300_158974_1398708239_fd3528282df4689a358d9baa9ccc38d7.jpg', 'extension': 'jpg'}, 1398708266: {'path': 'temp/1765374300_158974_1398708266_c78b8c515611a66024aea505ef98bc18.jpg', 'extension': 'jpg'}, 1398708297: {'path': 'temp/1765374300_158974_1398708297_9e012ed6f9322889c8f86d0dcabd46c7.jpg', 'extension': 'jpg'}, 1398708360: {'path': 'temp/1765374300_158974_1398708360_25244c53238c81923468e9c35072f30b.jpg', 'extension': 'jpg'}, 1398708388: {'path': 'temp/1765374300_158974_1398708388_f736c8b2a7533614a719ac9cd2c6f082.jpg', 'extension': 'jpg'}, 1398707883: {'path': 'temp/1765374300_158974_1398707883_123902a81159474319a405d91891f934.jpg', 'extension': 'jpg'}, 1398707976: {'path': 'temp/1765374300_158974_1398707976_ed8d3439b8643eaf793a8a2c863e6100.jpg', 'extension': 'jpg'}, 1398707981: {'path': 'temp/1765374300_158974_1398707981_c864c43372732a62a4f24a7a6201c2ba.jpg', 'extension': 'jpg'}, 1398708002: {'path': 'temp/1765374300_158974_1398708002_f03e0dda6bfd96add26fbc7da10597ed.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 = 29302853; (('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 = 29302853 group by h (('14', 67),) 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=29302853 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 (29302853) 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 (29302853) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10122025 29302853 Nombre de photos uploadées : 67 / 23040 (0%) 10122025 29302853 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 10122025 29302853 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1398704431, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/9c6c69f27e4ad675857fa9396cf1b779.jpg', 'username': None, 'uploaded_at': 1765373467, 'text': 'image_10122025_14_30_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398704405, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/1fa908d7b9ff6ee93cc17a535904c5f1.jpg', 'username': None, 'uploaded_at': 1765373467, 'text': 'image_10122025_14_30_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398704372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/a49c480d254dca5dc32415b10f9b3260.jpg', 'username': None, 'uploaded_at': 1765373467, 'text': 'image_10122025_14_30_33_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1398704288, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/10/5beaaad848c6d64bde91fa8c8aba49e1.jpg', 'username': None, 'uploaded_at': 1765373467, 'text': 'image_10122025_14_30_43_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031287670135498047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29302853, '2025-12-10' ) 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-12-10' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2712863,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.5484237670898438 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= 2712863 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29283133, 'dashboard_result_id': 18208533, '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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29283507, 'dashboard_result_id': 18208534, '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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29283563, 'dashboard_result_id': 18208535, '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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29283646, 'dashboard_result_id': 18208536, '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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29284551, 'dashboard_result_id': 18208537, '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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29284712, 'dashboard_result_id': 18208538, '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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29285136, 'dashboard_result_id': 18208539, '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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29285345, 'dashboard_result_id': 18208540, '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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29285732, 'dashboard_result_id': 18208541, '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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29286087, 'dashboard_result_id': 18208542, '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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29286524, 'dashboard_result_id': 18208543, '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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29287284, 'dashboard_result_id': 18208544, '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_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29287755, 'dashboard_result_id': 18208545, '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_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29288227, 'dashboard_result_id': 18208546, '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_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29288571, 'dashboard_result_id': 18208547, '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_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29289197, 'dashboard_result_id': 18208548, '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_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29289576, 'dashboard_result_id': 18208550, '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_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29290079, 'dashboard_result_id': 18208551, '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_P29290079_10-12-2025_08_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29290505, 'dashboard_result_id': 18208552, '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_P29290505_10-12-2025_08_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29291103, 'dashboard_result_id': 18208553, '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_P29291103_10-12-2025_08_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29291599, 'dashboard_result_id': 18208555, '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_P29291599_10-12-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29292310, 'dashboard_result_id': 18208556, '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_P29292310_10-12-2025_09_28_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29293514, 'dashboard_result_id': 18208557, '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_P29293514_10-12-2025_09_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29293951, 'dashboard_result_id': 18208558, '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_P29293951_10-12-2025_10_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29294363, 'dashboard_result_id': 18208560, '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_P29294363_10-12-2025_10_19_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29294947, 'dashboard_result_id': 18208561, '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_P29294947_10-12-2025_10_35_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29295473, 'dashboard_result_id': 18208562, '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_P29295473_10-12-2025_10_54_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29296609, 'dashboard_result_id': 18208563, '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_P29296609_10-12-2025_11_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29296820, 'dashboard_result_id': 18208564, '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_P29296820_10-12-2025_11_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29300657, 'dashboard_result_id': 18208566, '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_P29300657_10-12-2025_13_47_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29300882, 'dashboard_result_id': 18208567, '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_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29301495, 'dashboard_result_id': 18208568, '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_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29302203, 'dashboard_result_id': 18208569, '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_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, 'pht': 3726}}"}, {'dashboat_entry_day': 2712863, 'dashboard_run_id': 2723712, 'mtr_portfolio_id': 29302853, 'dashboard_result_id': 18208570, '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_P29302853_10-12-2025_14_41_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, '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 = 29283133 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': 4201514, 'mtr_portfolio_id': 29283133, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 29), 'result': '0.010678362266960811', 'result_long': None, 'result_double': None}] Qualite : 0.010678362266960811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283133 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283133 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_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, 'pht': 3726}}" where mtr_portfolio_id = 29283133 and dashboard_run_id = 2723712 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`=29283133 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208533, 0.010678362266960811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283133_10-12-2025_06_07_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283145, '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 = 29283507 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': 4201515, 'mtr_portfolio_id': 29283507, 'created_at': datetime.datetime(2025, 12, 10, 6, 7, 56), 'result': '0.060292920952775546', 'result_long': None, 'result_double': None}] Qualite : 0.060292920952775546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283507 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_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, 'pht': 3726}}" where mtr_portfolio_id = 29283507 and dashboard_run_id = 2723712 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`=29283507 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208534, 0.060292920952775546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283507_10-12-2025_06_07_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283512, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283519, '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 = 29283563 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': 4201516, 'mtr_portfolio_id': 29283563, 'created_at': datetime.datetime(2025, 12, 10, 6, 8, 29), 'result': '0.05437533202236932', 'result_long': None, 'result_double': None}] Qualite : 0.05437533202236932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283563 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_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, 'pht': 3726}}" where mtr_portfolio_id = 29283563 and dashboard_run_id = 2723712 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`=29283563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208535, 0.05437533202236932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283563_10-12-2025_06_08_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283575, '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 = 29283646 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': 4201517, 'mtr_portfolio_id': 29283646, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 30), 'result': '0.035229902913867295', 'result_long': None, 'result_double': None}] Qualite : 0.035229902913867295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29283646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29283646 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_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, 'pht': 3726}}" where mtr_portfolio_id = 29283646 and dashboard_run_id = 2723712 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`=29283646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208536, 0.035229902913867295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29283646_10-12-2025_06_09_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29283647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29283648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29283649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29283650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29283651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29283652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29283653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29283654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29283655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29283656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29283657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29283658, '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 = 29284551 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': 4201518, 'mtr_portfolio_id': 29284551, 'created_at': datetime.datetime(2025, 12, 10, 6, 9, 59), 'result': '0.12040949980131724', 'result_long': None, 'result_double': None}] Qualite : 0.12040949980131724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284551 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_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, 'pht': 3726}}" where mtr_portfolio_id = 29284551 and dashboard_run_id = 2723712 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`=29284551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208537, 0.12040949980131724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284551_10-12-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284563, '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 = 29284712 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': 4201519, 'mtr_portfolio_id': 29284712, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 30), 'result': '0.08618908751612969', 'result_long': None, 'result_double': None}] Qualite : 0.08618908751612969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29284712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29284712 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_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, 'pht': 3726}}" where mtr_portfolio_id = 29284712 and dashboard_run_id = 2723712 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`=29284712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208538, 0.08618908751612969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29284712_10-12-2025_06_10_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29284719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29284720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29284721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29284722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29284723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29284724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29284725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29284726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29284727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29284728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29284729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29284730, '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 = 29285136 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': 4201520, 'mtr_portfolio_id': 29285136, 'created_at': datetime.datetime(2025, 12, 10, 6, 10, 38), 'result': '0.061449803204952656', 'result_long': None, 'result_double': None}] Qualite : 0.061449803204952656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285136 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_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, 'pht': 3726}}" where mtr_portfolio_id = 29285136 and dashboard_run_id = 2723712 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`=29285136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208539, 0.061449803204952656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285136_10-12-2025_06_10_40.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285146, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285150, '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 = 29285345 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': 4201521, 'mtr_portfolio_id': 29285345, 'created_at': datetime.datetime(2025, 12, 10, 6, 11, 13), 'result': '0.0449976319961059', 'result_long': None, 'result_double': None}] Qualite : 0.0449976319961059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285345 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_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, 'pht': 3726}}" where mtr_portfolio_id = 29285345 and dashboard_run_id = 2723712 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`=29285345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208540, 0.0449976319961059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285345_10-12-2025_06_11_16.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29285351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285359, '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 = 29285732 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': 4201445, 'mtr_portfolio_id': 29285732, 'created_at': datetime.datetime(2025, 12, 10, 5, 46, 59), 'result': '0.04341877282480353', 'result_long': None, 'result_double': None}] Qualite : 0.04341877282480353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29285732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29285732 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_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, 'pht': 3726}}" where mtr_portfolio_id = 29285732 and dashboard_run_id = 2723712 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`=29285732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208541, 0.04341877282480353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29285732_10-12-2025_05_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29285738, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29285739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29285740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29285741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29285742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29285743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29285744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29285745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29285746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29285747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29285748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29285749, '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 = 29286087 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': 4201629, 'mtr_portfolio_id': 29286087, 'created_at': datetime.datetime(2025, 12, 10, 6, 2, 59), 'result': '0.05901750348886181', 'result_long': None, 'result_double': None}] Qualite : 0.05901750348886181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286087 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_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, 'pht': 3726}}" where mtr_portfolio_id = 29286087 and dashboard_run_id = 2723712 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`=29286087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208542, 0.05901750348886181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286087_10-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286106, '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 = 29286524 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': 4201716, 'mtr_portfolio_id': 29286524, 'created_at': datetime.datetime(2025, 12, 10, 6, 19, 28), 'result': '0.03694767199211665', 'result_long': None, 'result_double': None}] Qualite : 0.03694767199211665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29286524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29286524 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_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, 'pht': 3726}}" where mtr_portfolio_id = 29286524 and dashboard_run_id = 2723712 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`=29286524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208543, 0.03694767199211665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29286524_10-12-2025_06_19_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29286543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29286544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29286545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29286546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29286547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29286548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29286549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29286550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29286551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29286552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29286553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29286554, '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 = 29287284 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': 4201767, 'mtr_portfolio_id': 29287284, 'created_at': datetime.datetime(2025, 12, 10, 6, 32, 58), 'result': '0.04863824767530533', 'result_long': None, 'result_double': None}] Qualite : 0.04863824767530533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287284 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_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, 'pht': 3726}}" where mtr_portfolio_id = 29287284 and dashboard_run_id = 2723712 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`=29287284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208544, 0.04863824767530533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287284_10-12-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287294, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287300, '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 = 29287755 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': 4201830, 'mtr_portfolio_id': 29287755, 'created_at': datetime.datetime(2025, 12, 10, 6, 49, 1), 'result': '0.04821815271660753', 'result_long': None, 'result_double': None}] Qualite : 0.04821815271660753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29287755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_10-12-2025_06_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29287755 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_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, 'pht': 3726}}" where mtr_portfolio_id = 29287755 and dashboard_run_id = 2723712 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`=29287755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208545, 0.04821815271660753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29287755_10-12-2025_06_49_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29287757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29287758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29287759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29287760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29287761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29287762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29287763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29287764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29287765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29287766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29287767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29287768, '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 = 29288227 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': 4201883, 'mtr_portfolio_id': 29288227, 'created_at': datetime.datetime(2025, 12, 10, 7, 4, 31), 'result': '0.058907813621285', 'result_long': None, 'result_double': None}] Qualite : 0.058907813621285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_10-12-2025_07_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288227 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_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, 'pht': 3726}}" where mtr_portfolio_id = 29288227 and dashboard_run_id = 2723712 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`=29288227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208546, 0.058907813621285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288227_10-12-2025_07_04_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288247, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288252, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288255, '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 = 29288571 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': 4201955, 'mtr_portfolio_id': 29288571, 'created_at': datetime.datetime(2025, 12, 10, 7, 18, 58), 'result': '0.05470042017544461', 'result_long': None, 'result_double': None}] Qualite : 0.05470042017544461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29288571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_10-12-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29288571 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_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, 'pht': 3726}}" where mtr_portfolio_id = 29288571 and dashboard_run_id = 2723712 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`=29288571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208547, 0.05470042017544461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29288571_10-12-2025_07_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29288596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29288597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29288598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29288599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29288600, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29288601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29288602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29288603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29288604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29288605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29288606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29288607, '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 = 29289197 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': 4202010, 'mtr_portfolio_id': 29289197, 'created_at': datetime.datetime(2025, 12, 10, 7, 33, 31), 'result': '0.04106621773170499', 'result_long': None, 'result_double': None}] Qualite : 0.04106621773170499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_10-12-2025_07_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289197 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_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, 'pht': 3726}}" where mtr_portfolio_id = 29289197 and dashboard_run_id = 2723712 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`=29289197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208548, 0.04106621773170499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289197_10-12-2025_07_33_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289216, '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 = 29289576 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': 4202063, 'mtr_portfolio_id': 29289576, 'created_at': datetime.datetime(2025, 12, 10, 7, 46, 59), 'result': '0.03737762999254662', 'result_long': None, 'result_double': None}] Qualite : 0.03737762999254662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29289576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_10-12-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29289576 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_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, 'pht': 3726}}" where mtr_portfolio_id = 29289576 and dashboard_run_id = 2723712 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`=29289576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208550, 0.03737762999254662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29289576_10-12-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29289602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29289603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29289604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29289605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29289606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29289607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29289608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29289609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29289610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29289611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29289612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29289613, '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 = 29290079 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': 4202123, 'mtr_portfolio_id': 29290079, 'created_at': datetime.datetime(2025, 12, 10, 8, 4, 59), 'result': '0.04993413662820763', 'result_long': None, 'result_double': None}] Qualite : 0.04993413662820763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29290079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29290079 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_P29290079_10-12-2025_08_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, 'pht': 3726}}" where mtr_portfolio_id = 29290079 and dashboard_run_id = 2723712 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`=29290079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208551, 0.04993413662820763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290079_10-12-2025_08_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29290083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290094, '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 = 29290505 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': 4202189, 'mtr_portfolio_id': 29290505, 'created_at': datetime.datetime(2025, 12, 10, 8, 18, 59), 'result': '0.04246189626658746', 'result_long': None, 'result_double': None}] Qualite : 0.04246189626658746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29290505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290505_10-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29290505 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_P29290505_10-12-2025_08_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, 'pht': 3726}}" where mtr_portfolio_id = 29290505 and dashboard_run_id = 2723712 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`=29290505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208552, 0.04246189626658746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29290505_10-12-2025_08_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29290574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29290575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29290576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29290577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29290578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29290579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29290580, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29290581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29290582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29290583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29290584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29290585, '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 = 29291103 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': 4202270, 'mtr_portfolio_id': 29291103, 'created_at': datetime.datetime(2025, 12, 10, 8, 32, 58), 'result': '0.04989799213594476', 'result_long': None, 'result_double': None}] Qualite : 0.04989799213594476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29291103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291103_10-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29291103 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_P29291103_10-12-2025_08_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, 'pht': 3726}}" where mtr_portfolio_id = 29291103 and dashboard_run_id = 2723712 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`=29291103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208553, 0.04989799213594476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291103_10-12-2025_08_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29291131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291139, '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 = 29291599 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': 4202333, 'mtr_portfolio_id': 29291599, 'created_at': datetime.datetime(2025, 12, 10, 8, 48, 59), 'result': '0.032990362056118536', 'result_long': None, 'result_double': None}] Qualite : 0.032990362056118536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29291599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291599_10-12-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29291599 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_P29291599_10-12-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, 'pht': 3726}}" where mtr_portfolio_id = 29291599 and dashboard_run_id = 2723712 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`=29291599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208555, 0.032990362056118536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29291599_10-12-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29291629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29291630, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29291631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29291632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29291633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29291634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29291635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29291636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29291637, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29291638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29291639, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29291640, '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 = 29292310 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': 4202432, 'mtr_portfolio_id': 29292310, 'created_at': datetime.datetime(2025, 12, 10, 9, 28, 36), 'result': '0.04800042012094828', 'result_long': None, 'result_double': None}] Qualite : 0.04800042012094828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29292310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29292310_10-12-2025_09_28_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29292310 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_P29292310_10-12-2025_09_28_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, 'pht': 3726}}" where mtr_portfolio_id = 29292310 and dashboard_run_id = 2723712 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`=29292310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208556, 0.04800042012094828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29292310_10-12-2025_09_28_37.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29292328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29292329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29292330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29292331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29292332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29292333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29292334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29292335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29292336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29292337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29292338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29292339, '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 = 29293514 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': 4202577, 'mtr_portfolio_id': 29293514, 'created_at': datetime.datetime(2025, 12, 10, 9, 48, 59), 'result': '0.050824927591918596', 'result_long': None, 'result_double': None}] Qualite : 0.050824927591918596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29293514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293514_10-12-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29293514 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_P29293514_10-12-2025_09_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, 'pht': 3726}}" where mtr_portfolio_id = 29293514 and dashboard_run_id = 2723712 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`=29293514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208557, 0.050824927591918596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293514_10-12-2025_09_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293528, '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 = 29293951 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': 4202627, 'mtr_portfolio_id': 29293951, 'created_at': datetime.datetime(2025, 12, 10, 10, 3, 34), 'result': '0.03926245757500329', 'result_long': None, 'result_double': None}] Qualite : 0.03926245757500329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29293951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293951_10-12-2025_10_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29293951 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_P29293951_10-12-2025_10_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, 'pht': 3726}}" where mtr_portfolio_id = 29293951 and dashboard_run_id = 2723712 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`=29293951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208558, 0.03926245757500329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29293951_10-12-2025_10_03_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29293956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29293957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29293958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29293959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29293960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29293961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29293962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29293963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29293964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29293965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29293966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29293967, '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 = 29294363 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': 4202694, 'mtr_portfolio_id': 29294363, 'created_at': datetime.datetime(2025, 12, 10, 10, 19, 35), 'result': '0.04514975756410168', 'result_long': None, 'result_double': None}] Qualite : 0.04514975756410168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29294363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294363_10-12-2025_10_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29294363 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_P29294363_10-12-2025_10_19_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, 'pht': 3726}}" where mtr_portfolio_id = 29294363 and dashboard_run_id = 2723712 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`=29294363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208560, 0.04514975756410168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294363_10-12-2025_10_19_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294380, '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 = 29294947 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': 4202768, 'mtr_portfolio_id': 29294947, 'created_at': datetime.datetime(2025, 12, 10, 10, 35, 4), 'result': '0.07354759071532137', 'result_long': None, 'result_double': None}] Qualite : 0.07354759071532137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29294947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294947_10-12-2025_10_35_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29294947 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_P29294947_10-12-2025_10_35_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, 'pht': 3726}}" where mtr_portfolio_id = 29294947 and dashboard_run_id = 2723712 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`=29294947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208561, 0.07354759071532137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29294947_10-12-2025_10_35_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29294950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29294951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29294952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29294953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29294954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29294955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29294956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29294957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29294958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29294959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29294960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29294961, '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 = 29295473 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': 4202853, 'mtr_portfolio_id': 29295473, 'created_at': datetime.datetime(2025, 12, 10, 10, 54, 36), 'result': '0.05111311907448187', 'result_long': None, 'result_double': None}] Qualite : 0.05111311907448187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29295473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29295473_10-12-2025_10_54_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29295473 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_P29295473_10-12-2025_10_54_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, 'pht': 3726}}" where mtr_portfolio_id = 29295473 and dashboard_run_id = 2723712 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`=29295473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208562, 0.05111311907448187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29295473_10-12-2025_10_54_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29295511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29295512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29295513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29295514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29295515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29295516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29295517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29295518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29295519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29295520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29295521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29295522, '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 = 29296609 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': 4202977, 'mtr_portfolio_id': 29296609, 'created_at': datetime.datetime(2025, 12, 10, 11, 3, 28), 'result': '0.04926201535058291', 'result_long': None, 'result_double': None}] Qualite : 0.04926201535058291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29296609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296609_10-12-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29296609 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_P29296609_10-12-2025_11_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, 'pht': 3726}}" where mtr_portfolio_id = 29296609 and dashboard_run_id = 2723712 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`=29296609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208563, 0.04926201535058291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296609_10-12-2025_11_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296622, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296624, '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 = 29296820 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': 4203000, 'mtr_portfolio_id': 29296820, 'created_at': datetime.datetime(2025, 12, 10, 11, 29, 1), 'result': '0.05977286464898594', 'result_long': None, 'result_double': None}] Qualite : 0.05977286464898594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29296820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296820_10-12-2025_11_29_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29296820 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_P29296820_10-12-2025_11_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, 'pht': 3726}}" where mtr_portfolio_id = 29296820 and dashboard_run_id = 2723712 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`=29296820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208564, 0.05977286464898594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29296820_10-12-2025_11_29_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29296942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29296944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29296946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29296948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29296950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29296951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29296952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29296953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29296954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29296955, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29296956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29296957, '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 = 29300657 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': 4203494, 'mtr_portfolio_id': 29300657, 'created_at': datetime.datetime(2025, 12, 10, 13, 47, 33), 'result': '0.053609977031002405', 'result_long': None, 'result_double': None}] Qualite : 0.053609977031002405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29300657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_10-12-2025_13_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29300657 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_P29300657_10-12-2025_13_47_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, 'pht': 3726}}" where mtr_portfolio_id = 29300657 and dashboard_run_id = 2723712 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`=29300657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208566, 0.053609977031002405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300657_10-12-2025_13_47_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300659, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29300662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300669, '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 = 29300882 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': 4203503, 'mtr_portfolio_id': 29300882, 'created_at': datetime.datetime(2025, 12, 10, 14, 5, 3), 'result': '0.0446958989221055', 'result_long': None, 'result_double': None}] Qualite : 0.0446958989221055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29300882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300882_10-12-2025_14_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29300882 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_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, 'pht': 3726}}" where mtr_portfolio_id = 29300882 and dashboard_run_id = 2723712 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`=29300882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208567, 0.0446958989221055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29300882_10-12-2025_14_05_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29300885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29300886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29300887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29300888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29300889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29300891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29300892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29300893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29300894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29300895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29300896, '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 = 29301495 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': 4203545, 'mtr_portfolio_id': 29301495, 'created_at': datetime.datetime(2025, 12, 10, 14, 17, 2), 'result': '0.07891776061796905', 'result_long': None, 'result_double': None}] Qualite : 0.07891776061796905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29301495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29301495_10-12-2025_14_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29301495 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_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, 'pht': 3726}}" where mtr_portfolio_id = 29301495 and dashboard_run_id = 2723712 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`=29301495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208568, 0.07891776061796905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29301495_10-12-2025_14_17_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29301540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29301541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29301542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29301543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29301544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29301545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29301546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29301547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29301548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29301549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29301550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29301551, '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 = 29302203 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': 4203579, 'mtr_portfolio_id': 29302203, 'created_at': datetime.datetime(2025, 12, 10, 14, 33), 'result': '0.034278343314894745', 'result_long': None, 'result_double': None}] Qualite : 0.034278343314894745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29302203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302203_10-12-2025_14_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29302203 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_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, 'pht': 3726}}" where mtr_portfolio_id = 29302203 and dashboard_run_id = 2723712 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`=29302203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208569, 0.034278343314894745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302203_10-12-2025_14_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302254, '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 = 29302853 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': 4203623, 'mtr_portfolio_id': 29302853, 'created_at': datetime.datetime(2025, 12, 10, 14, 45), 'result': '0.05326478622144189', 'result_long': None, 'result_double': None}] Qualite : 0.05326478622144189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29302853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_45_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29302853 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_P29302853_10-12-2025_14_45_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, 'pht': 3726}}" where mtr_portfolio_id = 29302853 and dashboard_run_id = 2723712 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`=29302853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18208570, 0.05326478622144189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29302853_10-12-2025_14_45_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29302901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29302902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29302903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29302904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29302905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29302906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29302907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29302908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29302909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29302910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29302911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29302912, '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 (29283133,29283507,29283563,29283646,29284551,29284712,29285136,29285345,29285732,29286087,29286524,29287284,29287755,29288227,29288571,29289197,29289576,29290079,29290505,29291103,29291599,29292310,29293514,29293951,29294363,29294947,29295473,29296609,29296820,29300657,29300882,29301495,29302203,29302853) result : ((1398578619,), (1398579570,), (1398579942,), (1398581226,), (1398582557,), (1398582769,), (1398582809,), (1398583350,), (1398583552,), (1398583569,), (1398583937,), (1398583950,), (1398583982,), (1398584042,), (1398584061,), (1398584083,), (1398584100,), (1398584133,), (1398584198,), (1398584213,), (1398584215,), (1398584250,), (1398584252,), (1398584320,), (1398584358,), (1398584471,), (1398584473,), (1398584490,), (1398584510,), (1398584511,), (1398584526,), (1398584529,), (1398584568,), (1398584607,), (1398588536,), (1398592466,), (1398592469,), (1398592472,), (1398592576,), (1398592580,), (1398592633,), (1398593633,), (1398593977,), (1398594020,), (1398594022,), (1398594036,), (1398594038,), (1398594054,), (1398594097,), (1398594165,), (1398594177,), (1398594213,), (1398594264,), (1398596363,), (1398596383,), (1398596385,), (1398596399,), (1398596402,), (1398596418,), (1398596420,), (1398596474,), (1398596490,), (1398596505,), (1398596528,), (1398596530,), (1398596532,), (1398596547,), (1398596549,), (1398596571,), (1398596574,), (1398596576,), (1398596592,), (1398596594,), (1398596596,), (1398596600,), (1398596604,), (1398596609,), (1398596627,), (1398596629,), (1398596686,), (1398596683,), (1398596684,), (1398596685,), (1398596705,), (1398596707,), (1398596709,), (1398596710,), (1398596713,), (1398596716,), (1398596730,), (1398596732,), (1398596734,), (1398596736,), (1398596751,), (1398596754,), (1398596756,), (1398596758,), (1398596761,), (1398596764,), (1398596774,), (1398596777,), (1398596779,), (1398596782,), (1398596784,), (1398596796,), (1398596799,), (1398596801,), (1398596803,), (1398596805,), (1398596830,), (1398596831,), (1398596833,), (1398596835,), (1398596838,), (1398596841,), (1398596863,), (1398596867,), (1398596871,), (1398596877,), (1398596882,), (1398596884,), (1398596892,), (1398596895,), (1398596922,), (1398596927,), (1398596948,), (1398596951,), (1398596954,), (1398596957,), (1398596959,), (1398596960,), (1398596970,), (1398596972,), (1398596974,), (1398596976,), (1398597026,), (1398597029,), (1398597030,), (1398597031,), (1398597034,), (1398597037,), (1398597048,), (1398597050,), (1398597053,), (1398597056,), (1398597060,), (1398597078,), (1398597080,), (1398597082,), (1398597085,), (1398597088,), (1398597091,), (1398597101,), (1398597103,), (1398597105,), (1398597131,), (1398597132,), (1398597134,), (1398597135,), (1398597138,), (1398597142,), (1398597162,), (1398597149,), (1398597156,), (1398597159,), (1398597215,), (1398597219,), (1398597220,), (1398597221,), (1398597224,), (1398597227,), (1398597238,), (1398597241,), (1398597244,), (1398597247,), (1398597275,), (1398597280,), (1398597282,), (1398597284,), (1398597287,), (1398597289,), (1398597300,), (1398597301,), (1398597302,), (1398597323,), (1398597326,), (1398597329,), (1398597332,), (1398597335,), (1398597337,), (1398597346,), (1398597348,), (1398597351,), (1398597352,), (1398597353,), (1398597355,), (1398597366,), (1398597376,), (1398597386,), (1398597393,), (1398597394,), (1398597395,), (1398597398,), (1398597401,), (1398597404,), (1398597412,), (1398597415,), (1398597418,), (1398597421,), (1398597424,), (1398597446,), (1398597448,), (1398597450,), (1398597452,), (1398597463,), (1398597465,), (1398597467,), (1398597469,), (1398597472,), (1398597491,), (1398597492,), (1398597497,), (1398597501,), (1398597515,), (1398597517,), (1398597519,), (1398597523,), (1398597527,), (1398597530,), (1398597541,), (1398597542,), (1398597543,), (1398597544,), (1398597560,), (1398597563,), (1398597566,), (1398597570,), (1398597582,), (1398597584,), (1398597587,), (1398597589,), (1398597592,), (1398597596,), (1398597637,), (1398597627,), (1398597635,), (1398597636,), (1398597653,), (1398597655,), (1398597657,), (1398597659,), (1398597662,), (1398597665,), (1398597688,), (1398597689,), (1398597691,), (1398597693,), (1398597695,), (1398597707,), (1398597709,), (1398597711,), (1398597713,), (1398597716,), (1398597718,), (1398597755,), (1398597757,), (1398597759,), (1398597777,), (1398597778,), (1398597779,), (1398597780,), (1398597783,), (1398597786,), (1398597811,), (1398597814,), (1398597817,), (1398597820,), (1398597823,), (1398597838,), (1398597839,), (1398597840,), (1398597841,), (1398597844,), (1398597847,), (1398597871,), (1398597874,), (1398597877,), (1398597880,), (1398597883,), (1398597899,), (1398597901,), (1398597904,), (1398597907,), (1398597910,), (1398597912,), (1398597940,), (1398597941,), (1398597943,), (1398597945,), (1398597948,), (1398597966,), (1398597969,), (1398597972,), (1398597974,), (1398597998,), (1398598001,), (1398598004,), (1398598007,), (1398598011,), (1398598014,), (1398598034,), (1398598040,), (1398598076,), (1398598112,), (1398598588,), (1398598546,), (1398599029,), (1398599068,), (1398599103,), (1398599140,), (1398599175,), (1398599260,), (1398599820,), (1398599855,), (1398599897,), (1398599933,), (1398599971,), (1398600008,), (1398600139,), (1398600193,), (1398600242,), (1398600309,), (1398600351,), (1398600499,), (1398600526,), (1398600530,), (1398600733,), (1398600779,), (1398600858,), (1398600925,), (1398601525,), (1398601557,), (1398601926,), (1398601929,), (1398601932,), (1398601936,), (1398602129,), (1398602166,), (1398602202,), (1398602242,), (1398602280,), (1398602741,), (1398602774,), (1398602812,), (1398602882,), (1398603433,), (1398603469,), (1398603511,), (1398603551,), (1398603596,), (1398603634,), (1398603881,), (1398603917,), (1398603977,), (1398604040,), (1398604098,), (1398604653,), (1398604672,), (1398604709,), (1398604718,), (1398604721,), (1398604749,), (1398604824,), (1398604826,), (1398604827,), (1398604828,), (1398604846,), (1398604848,), (1398604850,), (1398604854,), (1398604859,), (1398604860,), (1398605037,), (1398605073,), (1398605108,), (1398605145,), (1398605168,), (1398605172,), (1398605274,), (1398605265,), (1398605267,), (1398605269,), (1398605271,), (1398605301,), (1398605307,), (1398605309,), (1398605311,), (1398605314,), (1398605322,), (1398605339,), (1398605341,), (1398605344,), (1398605347,), (1398605349,), (1398605350,), (1398605352,), (1398605353,), (1398605356,), (1398605359,), (1398605366,), (1398605373,), (1398605374,), (1398605375,), (1398605377,), (1398605646,), (1398605741,), (1398605847,), (1398606105,), (1398606107,), (1398606109,), (1398606112,), (1398606150,), (1398606166,), (1398606168,), (1398606170,), (1398606172,), (1398606204,), (1398606206,), (1398606230,), (1398606231,), (1398606233,), (1398606235,), (1398606238,), (1398606263,), (1398606266,), (1398606268,), (1398606270,), (1398606273,), (1398606288,), (1398606290,), (1398606292,), (1398606294,), (1398606297,), (1398606300,), (1398606327,), (1398606336,), (1398606348,), (1398606350,), (1398606377,), (1398606378,), (1398606380,), (1398606382,), (1398606385,), (1398606388,), (1398606402,), (1398606405,), (1398606408,), (1398606411,), (1398606414,), (1398606438,), (1398606424,), (1398606427,), (1398606430,), (1398606433,), (1398606436,), (1398606462,), (1398606468,), (1398606473,), (1398606474,), (1398606477,), (1398606489,), (1398606492,), (1398606495,), (1398606498,), (1398606501,), (1398606503,), (1398606513,), (1398606514,), (1398606515,), (1398606519,), (1398606522,), (1398606527,), (1398606530,), (1398606532,), (1398606533,), (1398606540,), (1398606541,), (1398606543,), (1398606545,), (1398606547,), (1398606549,), (1398606584,), (1398606586,), (1398606588,), (1398606589,), (1398606592,), (1398606613,), (1398606617,), (1398606621,), (1398606625,), (1398606627,), (1398606629,), (1398606648,), (1398606651,), (1398606654,), (1398606656,), (1398606665,), (1398606681,), (1398606684,), (1398606687,), (1398606689,), (1398606693,), (1398606701,), (1398606703,), (1398606705,), (1398606707,), (1398606733,), (1398606737,), (1398606740,), (1398606743,), (1398606746,), (1398606749,), (1398606754,), (1398606756,), (1398606758,), (1398606760,), (1398606762,), (1398606763,), (1398606787,), (1398606797,), (1398606814,), (1398606816,), (1398606986,), (1398606967,), (1398606977,), (1398607002,), (1398607004,), (1398607007,), (1398607009,), (1398607021,), (1398607024,), (1398607027,), (1398607044,), (1398607047,), (1398607048,), (1398607050,), (1398607056,), (1398607071,), (1398607073,), (1398607076,), (1398607126,), (1398607128,), (1398607130,), (1398607148,), (1398607150,), (1398607153,), (1398607186,), (1398607187,), (1398607188,), (1398607189,), (1398607209,), (1398607210,), (1398607211,), (1398607212,), (1398607215,), (1398607218,), (1398607238,), (1398607240,), (1398607243,), (1398607261,), (1398607265,), (1398607269,), (1398607272,), (1398607274,), (1398607276,), (1398607281,), (1398607284,), (1398607286,), (1398607288,), (1398607290,), (1398607304,), (1398607293,), (1398607295,), (1398607299,), (1398607313,), (1398607314,), (1398607315,), (1398607317,), (1398607318,), (1398607344,), (1398607347,), (1398607383,), (1398607387,), (1398607422,), (1398607425,), (1398607472,), (1398607573,), (1398607577,), (1398607580,), (1398607597,), (1398608050,), (1398608084,), (1398608120,), (1398608156,), (1398608195,), (1398608232,), (1398608975,), (1398608977,), (1398608979,), (1398608981,), (1398609024,), (1398609234,), (1398609277,), (1398609316,), (1398609351,), (1398609528,), (1398609531,), (1398609534,), (1398609569,), (1398609603,), (1398609614,), (1398609637,), (1398609640,), (1398609642,), (1398609644,), (1398609666,), (1398609667,), (1398609669,), (1398609671,), (1398609674,), (1398609676,), (1398609703,), (1398609704,), (1398609706,), (1398609708,), (1398609711,), (1398609714,), (1398609724,), (1398609727,), (1398609731,), (1398609734,), (1398609748,), (1398609751,), (1398609754,), (1398609764,), (1398609773,), (1398609777,), (1398609801,), (1398609803,), (1398609805,), (1398609808,), (1398609811,), (1398609813,), (1398609821,), (1398609823,), (1398609825,), (1398609840,), (1398609842,), (1398609844,), (1398609847,), (1398609850,), (1398609851,), (1398609866,), (1398609868,), (1398609870,), (1398609874,), (1398609906,), (1398609891,), (1398609894,), (1398609897,), (1398609900,), (1398609903,), (1398609920,), (1398609923,), (1398609924,), (1398609925,), (1398609927,), (1398609978,), (1398609988,), (1398609990,), (1398609992,), (1398609995,), (1398609998,), (1398610007,), (1398610011,), (1398610014,), (1398610016,), (1398610019,), (1398610041,), (1398610043,), (1398610045,), (1398610047,), (1398610050,), (1398610074,), (1398610077,), (1398610079,), (1398610081,), (1398610084,), (1398610104,), (1398610106,), (1398610108,), (1398610110,), (1398610113,), (1398610127,), (1398610129,), (1398610131,), (1398610133,), (1398610136,), (1398610139,), (1398610167,), (1398610169,), (1398610171,), (1398610173,), (1398610176,), (1398610192,), (1398610194,), (1398610231,), (1398610234,), (1398610237,), (1398610240,), (1398610242,), (1398610245,), (1398610251,), (1398610255,), (1398610257,), (1398610259,), (1398610285,), (1398610286,), (1398610287,), (1398610288,), (1398610291,), (1398610294,), (1398610318,), (1398610321,), (1398610324,), (1398610328,), (1398610354,), (1398610358,), (1398610361,), (1398610365,), (1398610370,), (1398610373,), (1398610388,), (1398610384,), (1398610386,), (1398610410,), (1398610411,), (1398610412,), (1398610442,), (1398610444,), (1398610446,), (1398610469,), (1398610477,), (1398610479,), (1398610481,), (1398610484,), (1398610500,), (1398610502,), (1398610505,), (1398610508,), (1398610538,), (1398610539,), (1398610541,), (1398610543,), (1398610546,), (1398610549,), (1398610564,), (1398610567,), (1398610571,), (1398610574,), (1398610576,), (1398610578,), (1398610589,), (1398610591,), (1398610596,), (1398610598,), (1398610600,), (1398610606,), (1398610608,), (1398610610,), (1398610622,), (1398610624,), (1398610626,), (1398610628,), (1398610632,), (1398610636,), (1398610658,), (1398610661,), (1398610664,), (1398610667,), (1398610682,), (1398610684,), (1398610686,), (1398610689,), (1398610692,), (1398610696,), (1398610733,), (1398610735,), (1398610737,), (1398610740,), (1398610755,), (1398610757,), (1398610760,), (1398610764,), (1398610766,), (1398610769,), (1398610787,), (1398610792,), (1398610795,), (1398610831,), (1398610828,), (1398610866,), (1398610867,), (1398610869,), (1398610871,), (1398610874,), (1398610905,), (1398610908,), (1398610911,), (1398610914,), (1398610916,), (1398610930,), (1398610931,), (1398610933,), (1398610935,), (1398610956,), (1398610959,), (1398610962,), (1398610965,), (1398610968,), (1398610971,), (1398610985,), (1398610986,), (1398610987,), (1398610988,), (1398610991,), (1398611015,), (1398611018,), (1398611021,), (1398611024,), (1398611027,), (1398611030,), (1398611044,), (1398611045,), (1398611046,), (1398611048,), (1398611051,), (1398611054,), (1398611067,), (1398611069,), (1398611070,), (1398611075,), (1398611084,), (1398611096,), (1398611098,), (1398611101,), (1398611104,), (1398611118,), (1398611120,), (1398611122,), (1398611124,), (1398611127,), (1398611150,), (1398611160,), (1398611163,), (1398611165,), (1398611187,), (1398611190,), (1398611192,), (1398611194,), (1398611197,), (1398611200,), (1398611224,), (1398611226,), (1398611233,), (1398611246,), (1398611278,), (1398611279,), (1398611281,), (1398611284,), (1398611287,), (1398611289,), (1398611300,), (1398611302,), (1398611303,), (1398611305,), (1398611307,), (1398611358,), (1398611607,), (1398611316,), (1398611318,), (1398611322,), (1398611327,), (1398611548,), (1398611549,), (1398611552,), (1398611553,), (1398611556,), (1398611557,), (1398611560,), (1398611561,), (1398611564,), (1398611565,), (1398611567,), (1398611568,), (1398611576,), (1398611578,), (1398611580,), (1398611583,), (1398611586,), (1398611589,), (1398611599,), (1398611606,), (1398611612,), (1398611615,), (1398611618,), (1398611621,), (1398611623,), (1398611624,), (1398611638,), (1398611640,), (1398611642,), (1398611647,), (1398611650,), (1398611695,), (1398611696,), (1398611698,), (1398611700,), (1398611723,), (1398611867,), (1398611870,), (1398611873,), (1398611876,), (1398611879,), (1398611881,), (1398611960,), (1398611963,), (1398611965,), (1398611967,), (1398611987,), (1398611990,), (1398611993,), (1398611996,), (1398611999,), (1398612002,), (1398612019,), (1398612022,), (1398612031,), (1398612032,), (1398612033,), (1398612068,), (1398612075,), (1398612088,), (1398612095,), (1398612098,), (1398612101,), (1398612107,), (1398612110,), (1398612112,), (1398612115,), (1398612122,), (1398612349,), (1398612352,), (1398612358,), (1398612360,), (1398612362,), (1398612363,), (1398612382,), (1398612385,), (1398612388,), (1398612391,), (1398612392,), (1398612397,), (1398612398,), (1398612399,), (1398612400,), (1398612402,), (1398612403,), (1398612407,), (1398612408,), (1398612412,), (1398612413,), (1398612423,), (1398612424,), (1398612425,), (1398612426,), (1398612428,), (1398612431,), (1398612492,), (1398612451,), (1398612457,), (1398612466,), (1398612479,), (1398612488,), (1398612499,), (1398612502,), (1398612506,), (1398612581,), (1398612605,), (1398612620,), (1398612632,), (1398612638,), (1398612678,), (1398612712,), (1398612798,), (1398613084,), (1398613087,), (1398613090,), (1398613137,), (1398613161,), (1398613163,), (1398613165,), (1398613167,), (1398613170,), (1398613172,), (1398613185,), (1398613188,), (1398613204,), (1398613213,), (1398613242,), (1398613280,), (1398613536,), (1398613538,), (1398613540,), (1398613542,), (1398613545,), (1398613548,), (1398613580,), (1398613581,), (1398613582,), (1398613583,), (1398613586,), (1398613607,), (1398613610,), (1398613613,), (1398613616,), (1398613619,), (1398613659,), (1398613661,), (1398613663,), (1398613665,), (1398613668,), (1398613735,), (1398613737,), (1398613739,), (1398613741,), (1398613744,), (1398613777,), (1398613780,), (1398613783,), (1398613785,), (1398613788,), (1398613819,), (1398613810,), (1398613812,), (1398613814,), (1398613816,), (1398613844,), (1398613846,), (1398613847,), (1398613849,), (1398613850,), (1398613852,), (1398613855,), (1398613871,), (1398613873,), (1398613875,), (1398613877,), (1398613879,), (1398613883,), (1398613902,), (1398613904,), (1398613906,), (1398613908,), (1398613924,), (1398613926,), (1398613928,), (1398613930,), (1398613934,), (1398613962,), (1398613965,), (1398613969,), (1398613973,), (1398613977,), (1398613980,), (1398614006,), (1398614009,), (1398614012,), (1398614020,), (1398614041,), (1398614043,), (1398614046,), (1398614049,), (1398614053,), (1398614065,), (1398614106,), (1398614110,), (1398614113,), (1398614116,), (1398614173,), (1398614174,), (1398614175,), (1398614176,), (1398614179,), (1398614193,), (1398614362,), (1398614365,), (1398614368,), (1398614386,), (1398614647,), (1398614650,), (1398614652,), (1398614654,), (1398614657,), (1398614660,), (1398614674,), (1398614676,), (1398614679,), (1398614685,), (1398614690,), (1398614691,), (1398614694,), (1398614698,), (1398614716,), (1398614720,), (1398614731,), (1398614747,), (1398614757,), (1398614765,), (1398614767,), (1398614769,), (1398614797,), (1398614832,), (1398614865,), (1398614898,), (1398614932,), (1398615149,), (1398615103,), (1398615106,), (1398615109,), (1398615112,), (1398615116,), (1398615285,), (1398615358,), (1398615421,), (1398615463,), (1398615467,), (1398615533,), (1398615534,), (1398615537,), (1398615576,), (1398615605,), (1398615674,), (1398615678,), (1398615681,), (1398615693,), (1398615779,), (1398615783,), (1398615798,), (1398615809,), (1398615818,), (1398615858,), (1398616147,), (1398616153,), (1398616154,), (1398616155,), (1398616164,), (1398616296,), (1398616310,), (1398616313,), (1398616316,), (1398616361,), (1398616444,), (1398616454,), (1398616455,), (1398616471,), (1398616481,), (1398616489,), (1398616657,), (1398616665,), (1398616690,), (1398616741,), (1398616745,), (1398616754,), (1398616793,), (1398616833,), (1398616867,), (1398616990,), (1398616992,), (1398616994,), (1398617009,), (1398617125,), (1398617128,), (1398617130,), (1398617132,), (1398617135,), (1398617138,), (1398617146,), (1398617149,), (1398617152,), (1398617155,), (1398617158,), (1398617182,), (1398617184,), (1398617188,), (1398617190,), (1398617193,), (1398617652,), (1398617655,), (1398617659,), (1398617663,), (1398617666,), (1398626216,), (1398626284,), (1398626287,), (1398626290,), (1398626293,), (1398626296,), (1398626304,), (1398626307,), (1398626310,), (1398626313,), (1398626316,), (1398626317,), (1398626325,), (1398626326,), (1398626327,), (1398626335,), (1398626349,), (1398626352,), (1398626379,), (1398626383,), (1398626386,), (1398626389,), (1398626397,), (1398626400,), (1398626404,), (1398626408,), (1398626412,), (1398626440,), (1398626443,), (1398626446,), (1398626450,), (1398626454,), (1398626457,), (1398626466,), (1398626468,), (1398626470,), (1398626486,), (1398626487,), (1398626488,), (1398626489,), (1398626492,), (1398626503,), (1398626514,), (1398626516,), (1398626517,), (1398626518,), (1398626520,), (1398626522,), (1398626616,), (1398626635,), (1398626640,), (1398626661,), (1398626813,), (1398626814,), (1398626815,), (1398626818,), (1398626821,), (1398626823,), (1398626836,), (1398626842,), (1398626844,), (1398626849,), (1398626856,), (1398626861,), (1398626864,), (1398626866,), (1398626868,), (1398626898,), (1398626901,), (1398626911,), (1398626936,), (1398627332,), (1398627549,), (1398627196,), (1398627227,), (1398627252,), (1398627278,), (1398627302,), (1398627419,), (1398627420,), (1398627431,), (1398627457,), (1398627467,), (1398627469,), (1398627510,), (1398627535,), (1398627545,), (1398627547,), (1398627551,), (1398627553,), (1398627556,), (1398627559,), (1398627563,), (1398627566,), (1398627571,), (1398627574,), (1398627576,), (1398627586,), (1398627608,), (1398627660,), (1398627697,), (1398627699,), (1398627701,), (1398627704,), (1398627707,), (1398627724,), (1398627725,), (1398627727,), (1398627728,), (1398627744,), (1398627745,), (1398627746,), (1398627747,), (1398627753,), (1398627844,), (1398627870,), (1398627899,), (1398627925,), (1398627956,), (1398627985,), (1398628083,), (1398628090,), (1398628093,), (1398628108,), (1398628109,), (1398628112,), (1398628113,), (1398628116,), (1398628117,), (1398628122,), (1398628123,), (1398628130,), (1398628133,), (1398628135,), (1398628137,), (1398628139,), (1398628141,), (1398628157,), (1398628160,), (1398628162,), (1398628164,), (1398628175,), (1398628177,), (1398628179,), (1398628181,), (1398628184,), (1398628186,), (1398628206,), (1398628209,), (1398628212,), (1398628215,), (1398628239,), (1398628242,), (1398628247,), (1398628250,), (1398628253,), (1398628256,), (1398628260,), (1398628262,), (1398628263,), (1398628264,), (1398628289,), (1398628273,), (1398628276,), (1398628279,), (1398628283,), (1398628286,), (1398628303,), (1398628309,), (1398628347,), (1398628397,), (1398628954,), (1398629002,), (1398629051,), (1398629105,), (1398629156,), (1398629208,), (1398629399,), (1398629453,), (1398629501,), (1398629548,), (1398629717,), (1398629765,), (1398629816,), (1398629867,), (1398630120,), (1398630146,), (1398630179,), (1398630207,), (1398630211,), (1398630231,), (1398630437,), (1398630446,), (1398630449,), (1398630457,), (1398630485,), (1398630584,), (1398630604,), (1398630629,), (1398630653,), (1398630679,), (1398630903,), (1398630928,), (1398630952,), (1398630979,), (1398631005,), (1398631133,), (1398631140,), (1398631165,), (1398631346,), (1398631365,), (1398631379,), (1398631383,), (1398631496,), (1398631511,), (1398631513,), (1398631532,), (1398631572,), (1398631635,), (1398631659,), (1398631684,), (1398631712,), (1398631750,), (1398631765,), (1398631782,), (1398631785,), (1398631789,), (1398631790,), (1398631810,), (1398631814,), (1398631817,), (1398631821,), (1398631826,), (1398631852,), (1398631838,), (1398631848,), (1398631850,), (1398631875,), (1398631877,), (1398631879,), (1398631881,), (1398631883,), (1398631886,), (1398632081,), (1398632097,), (1398632118,), (1398632120,), (1398632255,), (1398632258,), (1398632260,), (1398632265,), (1398632295,), (1398632306,), (1398632323,), (1398632327,), (1398632329,), (1398632331,), (1398632341,), (1398632362,), (1398632365,), (1398632367,), (1398632369,), (1398632406,), (1398632415,), (1398632418,), (1398632421,), (1398632676,), (1398632705,), (1398632733,), (1398632759,), (1398632771,), (1398632773,), (1398632775,), (1398632778,), (1398632779,), (1398632802,), (1398632805,), (1398632808,), (1398632809,), (1398632810,), (1398632812,), (1398632854,), (1398632857,), (1398632860,), (1398632863,), (1398632882,), (1398632889,), (1398632891,), (1398632893,), (1398632896,), (1398632909,), (1398632912,), (1398632914,), (1398632917,), (1398632958,), (1398632967,), (1398632969,), (1398632973,), (1398632977,), (1398632980,), (1398632994,), (1398632996,), (1398632998,), (1398633001,), (1398633012,), (1398633032,), (1398633035,), (1398633038,), (1398633041,), (1398633043,), (1398633101,), (1398633166,), (1398633076,), (1398633082,), (1398633096,), (1398633099,), (1398633119,), (1398633126,), (1398633132,), (1398633139,), (1398633142,), (1398633145,), (1398633155,), (1398633157,), (1398633159,), (1398633160,), (1398633176,), (1398633177,), (1398633180,), (1398633181,), (1398633184,), (1398633185,), (1398633189,), (1398633190,), (1398633280,), (1398633329,), (1398633376,), (1398633425,), (1398633428,), (1398633430,), (1398633476,), (1398633484,), (1398633512,), (1398633515,), (1398633590,), (1398633591,), (1398633593,), (1398633595,), (1398633598,), (1398633638,), (1398633640,), (1398633642,), (1398633644,), (1398633647,), (1398633650,), (1398633671,), (1398633695,), (1398633725,), (1398633735,), (1398633979,), (1398633994,), (1398633997,), (1398633998,), (1398634120,), (1398634121,), (1398634133,), (1398634156,), (1398634184,), (1398634211,), (1398634375,), (1398634401,), (1398634414,), (1398634421,), (1398634437,), (1398634550,), (1398634555,), (1398634559,), (1398634560,), (1398634563,), (1398634605,), (1398634606,), (1398634608,), (1398634609,), (1398634611,), (1398634614,), (1398634622,), (1398634624,), (1398634626,), (1398634628,), (1398634635,), (1398634642,), (1398634818,), (1398634820,), (1398634842,), (1398635528,), (1398635547,), (1398635550,), (1398635553,), (1398635576,), (1398635578,), (1398635590,), (1398635593,), (1398635595,), (1398635597,), (1398635600,), (1398635603,), (1398635766,), (1398635798,), (1398635828,), (1398635838,), (1398635978,), (1398635982,), (1398635986,), (1398635991,), (1398635994,), (1398635997,), (1398636000,), (1398636002,), (1398636004,), (1398636202,), (1398636053,), (1398636082,), (1398636110,), (1398636142,), (1398636169,), (1398636455,), (1398636495,), (1398636497,), (1398636641,), (1398636706,), (1398636754,), (1398636797,), (1398636838,), (1398636878,), (1398636908,), (1398636911,), (1398636913,), (1398636918,), (1398636920,), (1398636923,), (1398636925,), (1398636933,), (1398636936,), (1398636939,), (1398636943,), (1398636948,), (1398636989,), (1398636991,), (1398636993,), (1398637000,), (1398637015,), (1398637252,), (1398637277,), (1398637304,), (1398637333,), (1398637368,), (1398637645,), (1398637680,), (1398637708,), (1398637734,), (1398637759,), (1398637782,), (1398637986,), (1398638020,), (1398638049,), (1398638075,), (1398638095,), (1398638120,), (1398638173,), (1398638222,), (1398638265,), (1398638307,), (1398638991,), (1398639088,), (1398639191,), (1398639309,), (1398639421,), (1398639511,), (1398640083,), (1398640378,), (1398641706,), (1398680744,), (1398687050,), (1398687133,), (1398687136,), (1398687139,), (1398687143,), (1398687147,), (1398687150,), (1398687223,), (1398687398,), (1398687463,), (1398687534,), (1398687589,), (1398688174,), (1398688239,), (1398688281,), (1398688309,), (1398688870,), (1398688743,), (1398688769,), (1398688822,), (1398689519,), (1398689583,), (1398689657,), (1398689730,), (1398689772,), (1398689812,), (1398690103,), (1398690105,), (1398690178,), (1398690219,), (1398690299,), (1398690307,), (1398690567,), (1398690625,), (1398690784,), (1398690829,), (1398691116,), (1398694212,), (1398695605,), (1398694014,), (1398694088,), (1398694152,), (1398694882,), (1398694978,), (1398695027,), (1398695077,), (1398695145,), (1398695247,), (1398695988,), (1398696060,), (1398696531,), (1398698196,), (1398698206,), (1398698474,), (1398698481,), (1398698524,), (1398698568,), (1398698958,), (1398698960,), (1398698962,), (1398698964,), (1398698970,), (1398699294,), (1398699305,), (1398699307,), (1398699309,), (1398699311,), (1398699339,), (1398699333,), (1398699335,), (1398699337,), (1398699481,), (1398699523,), (1398699525,), (1398699555,), (1398699563,), (1398699585,), (1398699648,), (1398699658,), (1398699667,), (1398699674,), (1398699712,), (1398699766,), (1398699780,), (1398699806,), (1398699832,), (1398700111,), (1398700149,), (1398700181,), (1398700611,), (1398700645,), (1398700648,), (1398700650,), (1398700652,), (1398700656,), (1398700721,), (1398700911,), (1398700952,), (1398700994,), (1398701042,), (1398701300,), (1398701303,), (1398701305,), (1398701307,), (1398701557,), (1398701589,), (1398701641,), (1398701685,), (1398702235,), (1398702264,), (1398702291,), (1398702436,), (1398702523,), (1398702547,), (1398702571,), (1398702598,), (1398702624,), (1398702697,), (1398702757,), (1398702808,), (1398702852,), (1398702922,), (1398703519,), (1398703584,), (1398703633,), (1398703660,), (1398704458,), (1398704288,), (1398704372,), (1398704405,), (1398704431,), (1398704749,), (1398704775,), (1398704813,), (1398704858,), (1398704975,), (1398704976,), (1398704977,), (1398705022,), (1398705063,), (1398705103,), (1398705284,), (1398705446,), (1398705504,), (1398705505,), (1398705506,), (1398705512,), (1398705590,), (1398705852,), (1398705877,), (1398705909,), (1398705933,), (1398705971,), (1398706217,), (1398706255,), (1398706285,), (1398706317,), (1398706379,), (1398706472,), (1398706497,), (1398706537,), (1398706613,), (1398706915,), (1398706927,), (1398706970,), (1398707105,), (1398707109,), (1398707120,), (1398707130,), (1398707237,), (1398707245,), (1398707248,), (1398707275,), (1398707536,), (1398707566,), (1398707594,), (1398707622,), (1398707883,), (1398707976,), (1398707981,), (1398708002,), (1398708028,), (1398708054,), (1398708195,), (1398708239,), (1398708266,), (1398708297,), (1398708360,), (1398708388,), (1398708466,), (1398708537,), (1398708582,), (1398708595,), (1398708647,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10122025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29302853]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] map_info['map_portfolio_photo'] : {29302853: [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883, 1398707622, 1398707594, 1398707566, 1398707536, 1398707275, 1398707248, 1398707245, 1398707237, 1398707130, 1398707120, 1398707109, 1398707105, 1398706970, 1398706927, 1398706915, 1398706613, 1398706537, 1398706497, 1398706472, 1398706379, 1398706317, 1398706285, 1398706255, 1398706217, 1398705971, 1398705933, 1398705909, 1398705877, 1398705852, 1398705590, 1398705512, 1398705506, 1398705505, 1398705504, 1398705446, 1398705284, 1398705103, 1398705063, 1398705022, 1398704977, 1398704976, 1398704975, 1398704858, 1398704813, 1398704775, 1398704749, 1398704431, 1398704405, 1398704372, 1398704288]} final : True mtd_id 4302 list_pids : [1398708647, 1398708595, 1398708582, 1398708537, 1398708466, 1398708388, 1398708360, 1398708297, 1398708266, 1398708239, 1398708195, 1398708054, 1398708028, 1398708002, 1398707981, 1398707976, 1398707883] Looping around the photos to save general results len do output : 1 /29302853Didn'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, '4203623') ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623') ('4302', None, None, None, None, None, None, None, '4203623') ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29302853', 'None', None, None, None, None, '4203623'), ('4302', '29302853', '1398708647', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708595', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708582', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708537', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708466', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708388', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708360', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708297', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708266', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708239', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708195', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708054', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708028', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398708002', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707981', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707976', None, None, None, None, None, '4203623'), ('4302', '29302853', '1398707883', None, None, None, None, None, '4203623')] time used for this insertion : 0.034117698669433594 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.564545631408691 time spend to save output : 0.03442549705505371 total time spend for step 5 : 6.598971128463745 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 (4203623) 2.45user 2.37system 0:19.33elapsed 24%CPU (0avgtext+0avgdata 170276maxresident)k 928inputs+20704outputs (18major+80156minor)pagefaults 0swaps