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 : 837245 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 (3943259) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3943259) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814899 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3943259'] with mtr_portfolio_ids : ['27814899'] and first list_photo_ids : [] new path : /proc/837245/ Name: python3 Umask: 0002 State: R (running) Tgid: 837245 Ngid: 0 Pid: 837245 PPid: 837244 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 837245 NSpid: 837245 NSpgid: 836036 NSsid: 836036 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98996 kB VmRSS: 98996 kB RssAnon: 59844 kB RssFile: 39152 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 53 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '837245', 'Ngid': '0', 'Pid': '837245', 'PPid': '837244', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '837245', 'NSpid': '837245', 'NSpgid': '836036', 'NSsid': '836036', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98996 kB', 'VmRSS': '98996 kB', 'RssAnon': '59844 kB', 'RssFile': '39152 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '53', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '837245', '1106856', '0', '1106856', '865608', '98996', b'', 'marlene', '3943259') 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 (27814899) 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 (3943259 ) ) 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 (27814899) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389489220, 'portfolio_id': 27814899}, {'photo_id': 1389489219, 'portfolio_id': 27814899}, {'photo_id': 1389489217, 'portfolio_id': 27814899}, {'photo_id': 1389489189, 'portfolio_id': 27814899}, {'photo_id': 1389489183, 'portfolio_id': 27814899}, {'photo_id': 1389489179, 'portfolio_id': 27814899}, {'photo_id': 1389489176, 'portfolio_id': 27814899}, {'photo_id': 1389489175, 'portfolio_id': 27814899}, {'photo_id': 1389489171, 'portfolio_id': 27814899}, {'photo_id': 1389489101, 'portfolio_id': 27814899}, {'photo_id': 1389489021, 'portfolio_id': 27814899}, {'photo_id': 1389488948, 'portfolio_id': 27814899}, {'photo_id': 1389488935, 'portfolio_id': 27814899}, {'photo_id': 1389488932, 'portfolio_id': 27814899}, {'photo_id': 1389488928, 'portfolio_id': 27814899}, {'photo_id': 1389488921, 'portfolio_id': 27814899}, {'photo_id': 1389488628, 'portfolio_id': 27814899}, {'photo_id': 1389488466, 'portfolio_id': 27814899}, {'photo_id': 1389488462, 'portfolio_id': 27814899}, {'photo_id': 1389488459, 'portfolio_id': 27814899}, {'photo_id': 1389488456, 'portfolio_id': 27814899}, {'photo_id': 1389488434, 'portfolio_id': 27814899}, {'photo_id': 1389488433, 'portfolio_id': 27814899}, {'photo_id': 1389488431, 'portfolio_id': 27814899}, {'photo_id': 1389488429, 'portfolio_id': 27814899}, {'photo_id': 1389488427, 'portfolio_id': 27814899}, {'photo_id': 1389488426, 'portfolio_id': 27814899}, {'photo_id': 1389488378, 'portfolio_id': 27814899}, {'photo_id': 1389488376, 'portfolio_id': 27814899}, {'photo_id': 1389488352, 'portfolio_id': 27814899}, {'photo_id': 1389488318, 'portfolio_id': 27814899}, {'photo_id': 1389488170, 'portfolio_id': 27814899}, {'photo_id': 1389488169, 'portfolio_id': 27814899}, {'photo_id': 1389487595, 'portfolio_id': 27814899}, {'photo_id': 1389487589, 'portfolio_id': 27814899}, {'photo_id': 1389487585, 'portfolio_id': 27814899}, {'photo_id': 1389487582, 'portfolio_id': 27814899}, {'photo_id': 1389487581, 'portfolio_id': 27814899}, {'photo_id': 1389487580, 'portfolio_id': 27814899}, {'photo_id': 1389487555, 'portfolio_id': 27814899}, {'photo_id': 1389487552, 'portfolio_id': 27814899}, {'photo_id': 1389487550, 'portfolio_id': 27814899}, {'photo_id': 1389487226, 'portfolio_id': 27814899}, {'photo_id': 1389487225, 'portfolio_id': 27814899}, {'photo_id': 1389487224, 'portfolio_id': 27814899}] map_portfolio_id_photo_id: {27814899: [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928, 1389488921, 1389488628, 1389488466, 1389488462, 1389488459, 1389488456, 1389488434, 1389488433, 1389488431, 1389488429, 1389488427, 1389488426, 1389488378, 1389488376, 1389488352, 1389488318, 1389488170, 1389488169, 1389487595, 1389487589, 1389487585, 1389487582, 1389487581, 1389487580, 1389487555, 1389487552, 1389487550, 1389487226, 1389487225, 1389487224]} ##### 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.05425453186035156 #### 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 Tue Oct 14 22:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27814899) 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 : 27814899 get user id for portfolio 27814899 get sub ptf for main ptf 27814899, type 3726 and hashtags ['flou', 'metal', 'papier', 'Carton_gris', 'plastique', 'kraft', 'mal_croppe', 'autre_refus', 'environnement', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse'] 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`=27814899 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','Carton_gris','plastique','kraft','mal_croppe','autre_refus','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse')) 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`=27814899 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','Carton_gris','plastique','kraft','mal_croppe','autre_refus','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27814899, 'sub_port_id': 27814926, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769001, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'Carton_brun': {'main_port_id': 27814899, 'sub_port_id': 27814927, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769002, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'plastique': {'main_port_id': 27814899, 'sub_port_id': 27814928, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769003, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'kraft': {'main_port_id': 27814899, 'sub_port_id': 27814929, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769004, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'cartonnette': {'main_port_id': 27814899, 'sub_port_id': 27814930, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769005, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'autre_refus': {'main_port_id': 27814899, 'sub_port_id': 27814931, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769006, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 27814899, 'sub_port_id': 27814932, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769007, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'Carton_gris': {'main_port_id': 27814899, 'sub_port_id': 27814933, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769008, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'flou': {'main_port_id': 27814899, 'sub_port_id': 27814934, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769009, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'environnement': {'main_port_id': 27814899, 'sub_port_id': 27814935, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769010, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'metal': {'main_port_id': 27814899, 'sub_port_id': 27814936, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769011, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}, 'mal_croppe': {'main_port_id': 27814899, 'sub_port_id': 27814937, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769012, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27814926 , 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=27814899 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 (27814926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814927 , 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=27814899 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 (27814927) result : ((1389489195,), (1389489196,), (1389489197,), (1389489212,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814928 , 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=27814899 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 (27814928) result : ((1389489198,), (1389489199,), (1389489200,), (1389489201,), (1389489202,), (1389489203,), (1389489213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814929 , 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=27814899 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 (27814929) result : ((1389489214,), (1389489215,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814930 , 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=27814899 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 (27814930) result : ((1389489191,), (1389489192,), (1389489193,), (1389489210,), (1389489211,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814931 , 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=27814899 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 (27814931) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814932 , 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=27814899 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 (27814932) result : ((1389489186,), (1389489207,), (1389489208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814933 , 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=27814899 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 (27814933) result : ((1389489187,), (1389489188,), (1389489209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814934 , 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=27814899 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 (27814934) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814935 , 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=27814899 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 (27814935) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814936 , 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=27814899 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 (27814936) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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 27814937 , 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=27814899 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 (27814937) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27814899) result : ((1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) 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`=27814899 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','Carton_gris','plastique','kraft','mal_croppe','autre_refus','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse')) 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`=27814899 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','papier','Carton_gris','plastique','kraft','mal_croppe','autre_refus','environnement','Carton_brun','cartonnette','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27814899, 'sub_port_id': 27814938, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769013, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'Carton_brun': {'main_port_id': 27814899, 'sub_port_id': 27814939, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769014, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'plastique': {'main_port_id': 27814899, 'sub_port_id': 27814940, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769015, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'kraft': {'main_port_id': 27814899, 'sub_port_id': 27814941, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769016, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'cartonnette': {'main_port_id': 27814899, 'sub_port_id': 27814942, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769017, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'autre_refus': {'main_port_id': 27814899, 'sub_port_id': 27814943, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769018, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 27814899, 'sub_port_id': 27814944, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769019, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'Carton_gris': {'main_port_id': 27814899, 'sub_port_id': 27814945, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769020, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'flou': {'main_port_id': 27814899, 'sub_port_id': 27814946, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769021, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'environnement': {'main_port_id': 27814899, 'sub_port_id': 27814947, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769022, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'metal': {'main_port_id': 27814899, 'sub_port_id': 27814948, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769023, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 33, 27), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}, 'mal_croppe': {'main_port_id': 27814899, 'sub_port_id': 27814949, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18769024, 'last_updated_at': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 22, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 22, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27814949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27814937 lien utilise dans velours : https://marlene.fotonower.com/velours/27814938,27814939,27814940,27814941,27814942,27814943,27814944,27814945,27814946,27814947,27814948,27814949?tags=papier,Carton_brun,plastique,kraft,cartonnette,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,environnement,metal,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27814899]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] map_info['map_portfolio_photo'] : {27814899: [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928, 1389488921, 1389488628, 1389488466, 1389488462, 1389488459, 1389488456, 1389488434, 1389488433, 1389488431, 1389488429, 1389488427, 1389488426, 1389488378, 1389488376, 1389488352, 1389488318, 1389488170, 1389488169, 1389487595, 1389487589, 1389487585, 1389487582, 1389487581, 1389487580, 1389487555, 1389487552, 1389487550, 1389487226, 1389487225, 1389487224]} final : False mtd_id 4302 list_pids : [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] Looping around the photos to save general results len do output : 1 /27814899. 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, '3943259') ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '27814899', "{'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937}", None, None, None, None, '3943259'), ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259')] time used for this insertion : 0.03903913497924805 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.122124195098877 time spend to save output : 0.03934121131896973 total time spend for step 1 : 5.161465406417847 step2:final Tue Oct 14 22:39:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (27814899) 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 27814899 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389487226,1389487225,1389487224,1389487555,1389487552,1389487550,1389489189,1389488434,1389487595,1389488433,1389489101,1389487589,1389488921,1389487585,1389488431,1389488429,1389487582,1389488628,1389488427,1389487581,1389488466,1389488426,1389487580,1389488462,1389488378,1389488376,1389488352,1389488318,1389488170,1389488169,1389488459,1389488456,1389489021,1389488948,1389488935,1389488932,1389488928,1389489183,1389489179,1389489176,1389489175,1389489171,1389489220,1389489219,1389489217); 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([27814899]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} new output for save of step final : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] map_info['map_portfolio_photo'] : {27814899: [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928, 1389488921, 1389488628, 1389488466, 1389488462, 1389488459, 1389488456, 1389488434, 1389488433, 1389488431, 1389488429, 1389488427, 1389488426, 1389488378, 1389488376, 1389488352, 1389488318, 1389488170, 1389488169, 1389487595, 1389487589, 1389487585, 1389487582, 1389487581, 1389487580, 1389487555, 1389487552, 1389487550, 1389487226, 1389487225, 1389487224]} final : False mtd_id 4302 list_pids : [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] Looping around the photos to save general results len do output : 15 /1389489220.Didn't retrieve data . /1389489219.Didn't retrieve data . /1389489217.Didn't retrieve data . /1389489189.Didn't retrieve data . /1389489183.Didn't retrieve data . /1389489179.Didn't retrieve data . /1389489176.Didn't retrieve data . /1389489175.Didn't retrieve data . /1389489171.Didn't retrieve data . /1389489101.Didn't retrieve data . /1389489021.Didn't retrieve data . /1389488948.Didn't retrieve data . /1389488935.Didn't retrieve data . /1389488932.Didn't retrieve data . /1389488928.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, '3943259') ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '27814899', '1389489220', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489219', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489217', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489189', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489183', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489179', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489176', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489175', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489171', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489101', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389489021', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389488948', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389488935', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389488932', '0.051839209744899736', None, None, None, None, '3943259'), ('4302', '27814899', '1389488928', '0.051839209744899736', None, None, None, None, '3943259')] time used for this insertion : 0.038077592849731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24411416053771973 time spend to save output : 0.038754940032958984 total time spend for step 2 : 0.2828691005706787 step3:velours_tree Tue Oct 14 22:39:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27814899: [{'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937}]} input_args_next_step : {27814899: ()} output_args : {27814899: [{'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937}]} args : 27814899 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 : ({'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27814899) 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([27814899]) 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.29111433029174805 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.2911539077758789 step4:send_mail_cod Tue Oct 14 22:39:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} input_args_next_step : {1389489220: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489220 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489219 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489217 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489189 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489183 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489179 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489176 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489175 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489171 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489101 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389489021 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389488948 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389488935 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389488932 depend.output_id : 0 input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ()} output_args : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',)} args : 1389488928 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 : {27814899: [{'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937}]} input_args_next_step : {1389489220: ('0.051839209744899736',), 1389489219: ('0.051839209744899736',), 1389489217: ('0.051839209744899736',), 1389489189: ('0.051839209744899736',), 1389489183: ('0.051839209744899736',), 1389489179: ('0.051839209744899736',), 1389489176: ('0.051839209744899736',), 1389489175: ('0.051839209744899736',), 1389489171: ('0.051839209744899736',), 1389489101: ('0.051839209744899736',), 1389489021: ('0.051839209744899736',), 1389488948: ('0.051839209744899736',), 1389488935: ('0.051839209744899736',), 1389488932: ('0.051839209744899736',), 1389488928: ('0.051839209744899736',), 27814899: ()} output_args : {27814899: [{'papier': 27814926, 'Carton_brun': 27814927, 'plastique': 27814928, 'kraft': 27814929, 'cartonnette': 27814930, 'autre_refus': 27814931, 'Teint_Dans_La_Masse': 27814932, 'Carton_gris': 27814933, 'flou': 27814934, 'environnement': 27814935, 'metal': 27814936, 'mal_croppe': 27814937}]} args : 27814899 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 :16, first value : ('0.051839209744899736',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27814899) 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 (1389489220,1389489219,1389489217,1389489189,1389489183,1389489179,1389489176,1389489175,1389489171,1389489101,1389489021,1389488948,1389488935,1389488932,1389488928) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389488928 begin to download photo : 1389489021 begin to download photo : 1389489176 begin to download photo : 1389489217 download finish for photo 1389488928 begin to download photo : 1389488932 download finish for photo 1389489176 begin to download photo : 1389489179 download finish for photo 1389489217 begin to download photo : 1389489219 download finish for photo 1389489021 begin to download photo : 1389489101 download finish for photo 1389488932 begin to download photo : 1389488935 download finish for photo 1389489179 begin to download photo : 1389489183 download finish for photo 1389489219 begin to download photo : 1389489220 download finish for photo 1389489101 begin to download photo : 1389489171 download finish for photo 1389488935 begin to download photo : 1389488948 download finish for photo 1389489183 begin to download photo : 1389489189 download finish for photo 1389489220 download finish for photo 1389489171 begin to download photo : 1389489175 download finish for photo 1389488948 download finish for photo 1389489175 download finish for photo 1389489189 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P27814899_14-10-2025_22_39_05.pdf 27814928 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=27814928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489198: '1760474225_124304_1389487585_b251118b10a251b3c72109fe164e4626_rle_crop_3998154186_0.png', 1389489199: '1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154192_0.png', 1389489200: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154210_0.png', 1389489201: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154215_0.png', 1389489202: '1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154230_0.png', 1389489203: '1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154226_0.png', 1389489213: '1760474244_125079_1389488352_b6047c9adbf753898aba3545845ba204_rle_crop_3998155613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cf69b4f4afe07f77d82f43a63c0e56a7_66863742.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/d14852918ca93c0bcaa1f684e9382df8_63244625.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/af9290c71c41dc08f68d824e7159e4f6_78892457.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/14149f4ce869b747138cfb7484bda4b3_41473409.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/51086cb9c6c9b174c8793e3bef5c5eca_82333849.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/dd71e8a4ad7be8df0e7d4909efa9bca4_74292048.png change filename to text .imagette278149281760474345/ imagette278149281760474345/1760474225_124304_1389487585_b251118b10a251b3c72109fe164e4626_rle_crop_3998154186_0.png.png imagette278149281760474345/1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154226_0.png.png imagette278149281760474345/1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154230_0.png.png imagette278149281760474345/1760474244_125079_1389488352_b6047c9adbf753898aba3545845ba204_rle_crop_3998155613_0.png.png imagette278149281760474345/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154215_0.png.png imagette278149281760474345/1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154192_0.png.png imagette278149281760474345/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154210_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/fcbb27d75eb8669e752812f87231d21d_89662222.png imagette278149281760474345 27814929 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=27814929 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489214: '1760474244_125079_1389488170_829f28e76a5f19c254e739a11e6c98d0_rle_crop_3998155638_0.png', 1389489215: '1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a51ad63c5d17f8f660e5cb923d1bf806_40266334.png change filename to text .imagette278149291760474346/ imagette278149291760474346/1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155648_0.png.png imagette278149291760474346/1760474244_125079_1389488170_829f28e76a5f19c254e739a11e6c98d0_rle_crop_3998155638_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/3dbd0ac7cc8be55b1d3e64d200526732_81009272.png imagette278149291760474346 27814930 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=27814930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489191: '1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154196_0.png', 1389489192: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154202_0.png', 1389489193: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154209_0.png', 1389489210: '1760474244_125079_1389488376_d23e1283bede737eb9aabeb1b0332c90_rle_crop_3998155597_0.png', 1389489211: '1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/564303235be81340c9f6d98cbcd32924_89745564.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e577d1c2aad5321dde5a44c1c3ee6744_86605124.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/1c02c347ad477b5e3cd193e46eac676d_47599521.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8d5844b0af5d8b0908cb191beccc57d1_17919730.png change filename to text .imagette278149301760474346/ imagette278149301760474346/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154202_0.png.png imagette278149301760474346/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154209_0.png.png imagette278149301760474346/1760474244_125079_1389488376_d23e1283bede737eb9aabeb1b0332c90_rle_crop_3998155597_0.png.png imagette278149301760474346/1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154196_0.png.png imagette278149301760474346/1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155653_0.png.png imagette278149311760474346/ imagette278149341760474346/ imagette278149361760474346/ imagette278149371760474346/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/7df844b36151215299511c95c22c8298_8572577.png imagette278149301760474346 27814931 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=27814931 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278149311760474346 27814934 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=27814934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278149341760474346 27814936 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=27814936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278149361760474346 27814937 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=27814937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278149371760474346 27814927 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=27814927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489195: '1760474225_124304_1389487589_c2555df87879657c9b267b72f5927c64_rle_crop_3998154168_0.png', 1389489196: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154214_0.png', 1389489197: '1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154231_0.png', 1389489212: '1760474244_125079_1389488318_7093371dc8aad0150f27cf4592501c70_rle_crop_3998155622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2fda5443a8faa007ec06bd4d74eb82bc_6163903.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/49c89c293b9514ae4aee2dea0c21d935_80098618.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/fb679903dbd5bbd929aadb35971d19ae_41516238.png change filename to text .imagette278149271760474346/ imagette278149271760474346/1760474225_124304_1389487589_c2555df87879657c9b267b72f5927c64_rle_crop_3998154168_0.png.png imagette278149271760474346/1760474244_125079_1389488318_7093371dc8aad0150f27cf4592501c70_rle_crop_3998155622_0.png.png imagette278149271760474346/1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154231_0.png.png imagette278149271760474346/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154214_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/00065a706551bd0c7e350dd8f43bc0f5_82243130.png imagette278149271760474346 27814932 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=27814932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489186: '1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154223_0.png', 1389489207: '1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155658_0.png', 1389489208: '1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/367b7f83e79d4d34ff4d0a6717d4a965_40108173.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c755118bff633b92d0e23e10498b57d3_6475139.png change filename to text .imagette278149321760474347/ imagette278149321760474347/1760474225_124304_1389487580_fa5a0d3f4f5e54860dd95946ea4fcd56_rle_crop_3998154223_0.png.png imagette278149321760474347/1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155657_0.png.png imagette278149321760474347/1760474244_125079_1389488169_acc501d99aa0559e2442e7d032bfa400_rle_crop_3998155658_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/9934ed2d3db8dfc81791ffe3542d73ef_17284433.png imagette278149321760474347 27814933 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=27814933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389489187: '1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154191_0.png', 1389489188: '1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154200_0.png', 1389489209: '1760474244_125079_1389488170_829f28e76a5f19c254e739a11e6c98d0_rle_crop_3998155633_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/5739f2cc1a07e6303919558c80873a3c_60626093.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f1c36c869a03b31ccc416aa7f7550010_75348550.png change filename to text .imagette278149331760474347/ imagette278149331760474347/1760474225_124304_1389487582_71ade880e056f5a28717330b9649a180_rle_crop_3998154191_0.png.png imagette278149331760474347/1760474225_124304_1389487581_58f4be97cb9b808efd7e7afa88ad0864_rle_crop_3998154200_0.png.png imagette278149331760474347/1760474244_125079_1389488170_829f28e76a5f19c254e739a11e6c98d0_rle_crop_3998155633_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8e496ee1029ca3913b196214a17ff862_32908545.png imagette278149331760474347 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27814899 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27814938,27814939,27814940,27814941,27814942,27814943,27814944,27814945,27814946,27814947,27814948,27814949?tags=papier,Carton_brun,plastique,kraft,cartonnette,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,environnement,metal,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1389489220] : ('0.051839209744899736',) no score found for photo 1389489220 We are sending mail with results at report@fotonower.com args[1389489219] : ('0.051839209744899736',) no score found for photo 1389489219 We are sending mail with results at report@fotonower.com args[1389489217] : ('0.051839209744899736',) no score found for photo 1389489217 We are sending mail with results at report@fotonower.com args[1389489189] : ('0.051839209744899736',) no score found for photo 1389489189 We are sending mail with results at report@fotonower.com args[1389489183] : ('0.051839209744899736',) no score found for photo 1389489183 We are sending mail with results at report@fotonower.com args[1389489179] : ('0.051839209744899736',) no score found for photo 1389489179 We are sending mail with results at report@fotonower.com args[1389489176] : ('0.051839209744899736',) no score found for photo 1389489176 We are sending mail with results at report@fotonower.com args[1389489175] : ('0.051839209744899736',) no score found for photo 1389489175 We are sending mail with results at report@fotonower.com args[1389489171] : ('0.051839209744899736',) no score found for photo 1389489171 We are sending mail with results at report@fotonower.com args[1389489101] : ('0.051839209744899736',) no score found for photo 1389489101 We are sending mail with results at report@fotonower.com args[1389489021] : ('0.051839209744899736',) no score found for photo 1389489021 We are sending mail with results at report@fotonower.com args[1389488948] : ('0.051839209744899736',) no score found for photo 1389488948 We are sending mail with results at report@fotonower.com args[1389488935] : ('0.051839209744899736',) no score found for photo 1389488935 We are sending mail with results at report@fotonower.com args[1389488932] : ('0.051839209744899736',) no score found for photo 1389488932 We are sending mail with results at report@fotonower.com args[1389488928] : ('0.051839209744899736',) no score found for photo 1389488928 We are sending mail with results at report@fotonower.com refus_total : 0.051839209744899736 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=27814899 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_P27814899_14-10-2025_22_39_05.pdf results_Auto_P27814899_14-10-2025_22_39_05.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814899_14-10-2025_22_39_05.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','27814899','results_Auto_P27814899_14-10-2025_22_39_05.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814899_14-10-2025_22_39_05.pdf','pdf','','0.2','0.051839209744899736') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27814899]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] map_info['map_portfolio_photo'] : {27814899: [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928, 1389488921, 1389488628, 1389488466, 1389488462, 1389488459, 1389488456, 1389488434, 1389488433, 1389488431, 1389488429, 1389488427, 1389488426, 1389488378, 1389488376, 1389488352, 1389488318, 1389488170, 1389488169, 1389487595, 1389487589, 1389487585, 1389487582, 1389487581, 1389487580, 1389487555, 1389487552, 1389487550, 1389487226, 1389487225, 1389487224]} final : False mtd_id 4302 list_pids : [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] 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, '3943259') ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27814899', '1389489220', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259')] time used for this insertion : 0.03904557228088379 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.501171350479126 time spend to save output : 0.03933548927307129 total time spend for step 4 : 4.540506839752197 step5:split_time_score Tue Oct 14 22:39:09 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 : ['27814899'] 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 : [('27814899',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27814899) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389489217: {'path': 'temp/1760474344_837245_1389489217_1ca2927093f4798587a8a0b832b05812.jpg', 'extension': 'jpg'}, 1389489219: {'path': 'temp/1760474344_837245_1389489219_1a1a1317c6782cd3e1bfc1e97cc34a0f.jpg', 'extension': 'jpg'}, 1389489220: {'path': 'temp/1760474344_837245_1389489220_b4938ef04fd95da9d8c2558c0443a8be.jpg', 'extension': 'jpg'}, 1389488928: {'path': 'temp/1760474344_837245_1389488928_cd3c69ccaa33e3189557f212ae5527c9.jpg', 'extension': 'jpg'}, 1389488932: {'path': 'temp/1760474344_837245_1389488932_9ed0b667c36ae8d576cb575f40571e77.jpg', 'extension': 'jpg'}, 1389488935: {'path': 'temp/1760474344_837245_1389488935_aaa6817aa52d5feddfdc8c9ff30f8004.jpg', 'extension': 'jpg'}, 1389488948: {'path': 'temp/1760474344_837245_1389488948_c142923b23f94547b7fc9cd69af6484f.jpg', 'extension': 'jpg'}, 1389489021: {'path': 'temp/1760474344_837245_1389489021_0f61496521ae47863ece477a11122a8a.jpg', 'extension': 'jpg'}, 1389489101: {'path': 'temp/1760474344_837245_1389489101_1508a4f4d019438fd40600c1d8f375f6.jpg', 'extension': 'jpg'}, 1389489171: {'path': 'temp/1760474344_837245_1389489171_5f068a37eb51386af65389b58cd76afb.jpg', 'extension': 'jpg'}, 1389489175: {'path': 'temp/1760474344_837245_1389489175_e51b4597e3626fe27864a5a0e4533350.jpg', 'extension': 'jpg'}, 1389489176: {'path': 'temp/1760474344_837245_1389489176_1492cd928577d53abefd609086d9f56a.jpg', 'extension': 'jpg'}, 1389489179: {'path': 'temp/1760474344_837245_1389489179_a77cc6f6a3685aef6f54771ea3fed662.jpg', 'extension': 'jpg'}, 1389489183: {'path': 'temp/1760474344_837245_1389489183_5fa9e8f9607c646f56c9e22a09ad4cba.jpg', 'extension': 'jpg'}, 1389489189: {'path': 'temp/1760474344_837245_1389489189_13239220769524a8e5113a6b29d8dec9.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 = 27814899; (('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 = 27814899 group by h (('22', 45),) 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=27814899 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 (27814899) 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 (27814899) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14102025 27814899 Nombre de photos uploadées : 45 / 23040 (0%) 14102025 27814899 Nombre de photos taguées (types de déchets): 0 / 45 (0%) 14102025 27814899 Nombre de photos taguées (volume) : 0 / 45 (0%) [{'photo_id': 1389487226, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/92c0c5f682cbda8d66a74feaa391172a.jpg', 'username': None, 'uploaded_at': 1760473868, 'text': 'image_14102025_22_30_14_10136.jpg'}, {'photo_id': 1389487225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/eaef4a7e5277698cf6007f1993f1ad31.jpg', 'username': None, 'uploaded_at': 1760473868, 'text': 'image_14102025_22_30_24_10136.jpg'}, {'photo_id': 1389487224, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/1e325923550c1852920c9aca5430e8da.jpg', 'username': None, 'uploaded_at': 1760473868, 'text': 'image_14102025_22_30_33_9135.jpg'}, {'photo_id': 1389487555, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/d9d62038225d9ebfb1f3c8506698bfe5.jpg', 'username': None, 'uploaded_at': 1760473928, 'text': 'image_14102025_22_30_43_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021550655364990234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27814899, '2025-10-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-14' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2442841,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6618311405181885 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= 2442841 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27777996, 'dashboard_result_id': 16397915, '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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27778872, 'dashboard_result_id': 16397916, '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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27779391, 'dashboard_result_id': 16397917, '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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27779550, 'dashboard_result_id': 16397918, '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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27779656, 'dashboard_result_id': 16397919, '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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27780223, 'dashboard_result_id': 16397920, '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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27780493, 'dashboard_result_id': 16397921, '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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27780862, 'dashboard_result_id': 16397922, '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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27781293, 'dashboard_result_id': 16397923, '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_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27781652, 'dashboard_result_id': 16397924, '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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27782198, 'dashboard_result_id': 16397925, '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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27782598, 'dashboard_result_id': 16397926, '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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27783071, 'dashboard_result_id': 16397927, '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_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27783528, 'dashboard_result_id': 16397928, '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_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27784517, 'dashboard_result_id': 16397929, '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_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27785515, 'dashboard_result_id': 16397930, '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_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27786047, 'dashboard_result_id': 16397931, '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_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27786429, 'dashboard_result_id': 16397932, '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_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27790040, 'dashboard_result_id': 16397933, '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_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27790322, 'dashboard_result_id': 16397934, '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_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27791327, 'dashboard_result_id': 16397935, '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_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27791435, 'dashboard_result_id': 16397936, '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_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27792192, 'dashboard_result_id': 16397937, '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_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27792805, 'dashboard_result_id': 16397938, '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_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27793427, 'dashboard_result_id': 16397939, '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_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27793854, 'dashboard_result_id': 16397940, '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_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27796261, 'dashboard_result_id': 16397941, '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_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27796544, 'dashboard_result_id': 16397942, '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_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27797034, 'dashboard_result_id': 16397943, '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_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27797621, 'dashboard_result_id': 16397944, '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_P27797621_14-10-2025_14_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27798076, 'dashboard_result_id': 16397945, '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_P27798076_14-10-2025_14_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27798138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798149, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27798593, 'dashboard_result_id': 16397946, '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_P27798593_14-10-2025_15_03_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27798613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798615, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27799018, 'dashboard_result_id': 16397947, '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_P27799018_14-10-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799102, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799103, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27799888, 'dashboard_result_id': 16397948, '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_P27799888_14-10-2025_15_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799924, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27800493, 'dashboard_result_id': 16397949, '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_P27800493_14-10-2025_15_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27800566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27800567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27800568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27800569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27800570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27800571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27800572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27800573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27800574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27800575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27800576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27800577, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27801217, 'dashboard_result_id': 16397950, '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_P27801217_14-10-2025_16_03_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801239, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27801740, 'dashboard_result_id': 16397951, '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_P27801740_14-10-2025_16_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801799, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27802515, 'dashboard_result_id': 16397952, '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_P27802515_14-10-2025_16_33_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27802557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27802558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27802559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27802560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27802561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27802562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27802563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27802564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27802565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27802566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27802567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27802568, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27802948, 'dashboard_result_id': 16397953, '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_P27802948_14-10-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803018, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27803606, 'dashboard_result_id': 16397954, '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_P27803606_14-10-2025_17_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803628, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27804053, 'dashboard_result_id': 16397955, '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_P27804053_14-10-2025_17_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804092, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27804856, 'dashboard_result_id': 16397956, '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_P27804856_14-10-2025_19_31_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804907, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27805938, 'dashboard_result_id': 16397957, '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_P27805938_14-10-2025_18_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27805980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27805981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27805982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27805983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27805984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27805985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27805986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27805987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27805988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27805989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27805990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27805991, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27806657, 'dashboard_result_id': 16397958, '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_P27806657_14-10-2025_18_33_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27806661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27806662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27806663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27806664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27806665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27806666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27806680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27806686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27806687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27806688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27806689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27806690, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27807123, 'dashboard_result_id': 16397959, '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_P27807123_14-10-2025_18_49_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27807162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807173, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27807769, 'dashboard_result_id': 16397960, '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_P27807769_14-10-2025_19_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27807782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807788, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27808273, 'dashboard_result_id': 16397961, '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_P27808273_14-10-2025_19_19_25.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27808277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808288, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27808877, 'dashboard_result_id': 16397962, '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_P27808877_14-10-2025_19_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27808890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808893, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27809378, 'dashboard_result_id': 16397963, '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_P27809378_14-10-2025_19_49_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809409, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27809921, 'dashboard_result_id': 16397964, '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_P27809921_14-10-2025_20_03_25.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809937, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27810343, 'dashboard_result_id': 16397965, '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_P27810343_14-10-2025_20_19_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27810406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810416, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27810879, 'dashboard_result_id': 16397966, '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_P27810879_14-10-2025_20_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27810904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810915, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27811273, 'dashboard_result_id': 16397967, '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_P27811273_14-10-2025_21_12_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27811294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27811295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27811296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27811297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27811298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27811299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27811300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27811301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27811302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27811303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27811304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27811305, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27812481, 'dashboard_result_id': 16397968, '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_P27812481_14-10-2025_21_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27812485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812495, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27812769, 'dashboard_result_id': 16397969, '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_P27812769_14-10-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27812780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812791, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27813214, 'dashboard_result_id': 16397970, '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_P27813214_14-10-2025_22_03_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27813225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813233, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27813665, 'dashboard_result_id': 16397971, '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_P27813665_14-10-2025_22_19_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27813714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813725, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27814344, 'dashboard_result_id': 16397972, '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_P27814344_14-10-2025_22_33_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27814356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814361, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2457283, 'mtr_portfolio_id': 27814899, 'dashboard_result_id': 16397973, '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_P27814899_14-10-2025_22_34_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27814926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814928, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814937, '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 = 27777996 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': 3936795, 'mtr_portfolio_id': 27777996, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.08473370900574158', 'result_long': None, 'result_double': None}] Qualite : 0.08473370900574158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27777996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27777996 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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}" where mtr_portfolio_id = 27777996 and dashboard_run_id = 2457283 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`=27777996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397915, 0.08473370900574158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, '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 = 27778872 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': 3936796, 'mtr_portfolio_id': 27778872, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.05252490161835598', 'result_long': None, 'result_double': None}] Qualite : 0.05252490161835598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27778872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27778872 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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}" where mtr_portfolio_id = 27778872 and dashboard_run_id = 2457283 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`=27778872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397916, 0.05252490161835598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, '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 = 27779391 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': 3936797, 'mtr_portfolio_id': 27779391, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 35), 'result': '0.12409417799557848', 'result_long': None, 'result_double': None}] Qualite : 0.12409417799557848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779391 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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}" where mtr_portfolio_id = 27779391 and dashboard_run_id = 2457283 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`=27779391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397917, 0.12409417799557848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, '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 = 27779550 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': 3936798, 'mtr_portfolio_id': 27779550, 'created_at': datetime.datetime(2025, 10, 14, 5, 57, 33), 'result': '0.03184540944410446', 'result_long': None, 'result_double': None}] Qualite : 0.03184540944410446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779550 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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}" where mtr_portfolio_id = 27779550 and dashboard_run_id = 2457283 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`=27779550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397918, 0.03184540944410446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, '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 = 27779656 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': 3936799, 'mtr_portfolio_id': 27779656, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 2), 'result': '0.05052474997406134', 'result_long': None, 'result_double': None}] Qualite : 0.05052474997406134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779656 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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}" where mtr_portfolio_id = 27779656 and dashboard_run_id = 2457283 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`=27779656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397919, 0.05052474997406134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, '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 = 27780223 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': 3936800, 'mtr_portfolio_id': 27780223, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 4), 'result': '0.040319035993793335', 'result_long': None, 'result_double': None}] Qualite : 0.040319035993793335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780223 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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}" where mtr_portfolio_id = 27780223 and dashboard_run_id = 2457283 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`=27780223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397920, 0.040319035993793335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, '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 = 27780493 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': 3936801, 'mtr_portfolio_id': 27780493, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 29), 'result': '0.04214279264128584', 'result_long': None, 'result_double': None}] Qualite : 0.04214279264128584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780493 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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}" where mtr_portfolio_id = 27780493 and dashboard_run_id = 2457283 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`=27780493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397921, 0.04214279264128584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, '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 = 27780862 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': 3936750, 'mtr_portfolio_id': 27780862, 'created_at': datetime.datetime(2025, 10, 14, 5, 49), 'result': '0.057302103776373695', 'result_long': None, 'result_double': None}] Qualite : 0.057302103776373695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780862 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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}" where mtr_portfolio_id = 27780862 and dashboard_run_id = 2457283 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`=27780862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397922, 0.057302103776373695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, '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 = 27781293 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': 3936877, 'mtr_portfolio_id': 27781293, 'created_at': datetime.datetime(2025, 10, 14, 7, 31, 34), 'result': '0.053436839507607185', 'result_long': None, 'result_double': None}] Qualite : 0.053436839507607185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_07_31_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781293 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_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}" where mtr_portfolio_id = 27781293 and dashboard_run_id = 2457283 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`=27781293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397923, 0.053436839507607185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, '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 = 27781652 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': 3936958, 'mtr_portfolio_id': 27781652, 'created_at': datetime.datetime(2025, 10, 14, 6, 19, 4), 'result': '0.05147357773397054', 'result_long': None, 'result_double': None}] Qualite : 0.05147357773397054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781652 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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}" where mtr_portfolio_id = 27781652 and dashboard_run_id = 2457283 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`=27781652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397924, 0.05147357773397054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, '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 = 27782198 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': 3937066, 'mtr_portfolio_id': 27782198, 'created_at': datetime.datetime(2025, 10, 14, 6, 33, 1), 'result': '0.0493053223759745', 'result_long': None, 'result_double': None}] Qualite : 0.0493053223759745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782198 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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}" where mtr_portfolio_id = 27782198 and dashboard_run_id = 2457283 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`=27782198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397925, 0.0493053223759745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, '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 = 27782598 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': 3937171, 'mtr_portfolio_id': 27782598, 'created_at': datetime.datetime(2025, 10, 14, 6, 49, 40), 'result': '0.06079474485418993', 'result_long': None, 'result_double': None}] Qualite : 0.06079474485418993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782598 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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}" where mtr_portfolio_id = 27782598 and dashboard_run_id = 2457283 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`=27782598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397926, 0.06079474485418993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, '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 = 27783071 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': 3937254, 'mtr_portfolio_id': 27783071, 'created_at': datetime.datetime(2025, 10, 14, 7, 33, 35), 'result': '0.048274391748035834', 'result_long': None, 'result_double': None}] Qualite : 0.048274391748035834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783071 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_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}" where mtr_portfolio_id = 27783071 and dashboard_run_id = 2457283 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`=27783071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397927, 0.048274391748035834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, '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 = 27783528 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': 3937337, 'mtr_portfolio_id': 27783528, 'created_at': datetime.datetime(2025, 10, 14, 7, 19, 25), 'result': '0.05530928467378432', 'result_long': None, 'result_double': None}] Qualite : 0.05530928467378432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_19_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783528 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_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, 'pht': 3726}}" where mtr_portfolio_id = 27783528 and dashboard_run_id = 2457283 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`=27783528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397928, 0.05530928467378432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, '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 = 27784517 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': 3937518, 'mtr_portfolio_id': 27784517, 'created_at': datetime.datetime(2025, 10, 14, 7, 39, 5), 'result': '0.04888910278439528', 'result_long': None, 'result_double': None}] Qualite : 0.04888910278439528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27784517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27784517_14-10-2025_07_39_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27784517 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_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, 'pht': 3726}}" where mtr_portfolio_id = 27784517 and dashboard_run_id = 2457283 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`=27784517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397929, 0.04888910278439528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, '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 = 27785515 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': 3937668, 'mtr_portfolio_id': 27785515, 'created_at': datetime.datetime(2025, 10, 14, 7, 53, 5), 'result': '0.060807710097367865', 'result_long': None, 'result_double': None}] Qualite : 0.060807710097367865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27785515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27785515_14-10-2025_07_53_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27785515 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_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, 'pht': 3726}}" where mtr_portfolio_id = 27785515 and dashboard_run_id = 2457283 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`=27785515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397930, 0.060807710097367865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, '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 = 27786047 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': 3937747, 'mtr_portfolio_id': 27786047, 'created_at': datetime.datetime(2025, 10, 14, 8, 3), 'result': '0.02845605389933981', 'result_long': None, 'result_double': None}] Qualite : 0.02845605389933981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27786047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786047_14-10-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27786047 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_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, 'pht': 3726}}" where mtr_portfolio_id = 27786047 and dashboard_run_id = 2457283 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`=27786047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397931, 0.02845605389933981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, '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 = 27786429 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': 3937805, 'mtr_portfolio_id': 27786429, 'created_at': datetime.datetime(2025, 10, 14, 11, 1, 6), 'result': '0.06314637600543734', 'result_long': None, 'result_double': None}] Qualite : 0.06314637600543734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27786429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786429_14-10-2025_11_01_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27786429 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_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, 'pht': 3726}}" where mtr_portfolio_id = 27786429 and dashboard_run_id = 2457283 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`=27786429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397932, 0.06314637600543734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, '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 = 27790040 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': 3938286, 'mtr_portfolio_id': 27790040, 'created_at': datetime.datetime(2025, 10, 14, 10, 32, 59), 'result': '0.05811433970642424', 'result_long': None, 'result_double': None}] Qualite : 0.05811433970642424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27790040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790040_14-10-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27790040 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_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, 'pht': 3726}}" where mtr_portfolio_id = 27790040 and dashboard_run_id = 2457283 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`=27790040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397933, 0.05811433970642424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, '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 = 27790322 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': 3938319, 'mtr_portfolio_id': 27790322, 'created_at': datetime.datetime(2025, 10, 14, 10, 47, 2), 'result': '0.06000424361585336', 'result_long': None, 'result_double': None}] Qualite : 0.06000424361585336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27790322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790322_14-10-2025_10_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27790322 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_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, 'pht': 3726}}" where mtr_portfolio_id = 27790322 and dashboard_run_id = 2457283 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`=27790322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397934, 0.06000424361585336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, '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 = 27791327 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': 3939473, 'mtr_portfolio_id': 27791327, 'created_at': datetime.datetime(2025, 10, 14, 11, 3, 2), 'result': '0.0372580187497969', 'result_long': None, 'result_double': None}] Qualite : 0.0372580187497969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27791327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791327_14-10-2025_11_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27791327 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_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, 'pht': 3726}}" where mtr_portfolio_id = 27791327 and dashboard_run_id = 2457283 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`=27791327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397935, 0.0372580187497969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, '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 = 27791435 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': 3939481, 'mtr_portfolio_id': 27791435, 'created_at': datetime.datetime(2025, 10, 14, 11, 18, 59), 'result': '0.045839638250844146', 'result_long': None, 'result_double': None}] Qualite : 0.045839638250844146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27791435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791435_14-10-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27791435 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_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, 'pht': 3726}}" where mtr_portfolio_id = 27791435 and dashboard_run_id = 2457283 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`=27791435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397936, 0.045839638250844146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, '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 = 27792192 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': 3939560, 'mtr_portfolio_id': 27792192, 'created_at': datetime.datetime(2025, 10, 14, 11, 32, 58), 'result': '0.032723373849768526', 'result_long': None, 'result_double': None}] Qualite : 0.032723373849768526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27792192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792192_14-10-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27792192 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_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, 'pht': 3726}}" where mtr_portfolio_id = 27792192 and dashboard_run_id = 2457283 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`=27792192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397937, 0.032723373849768526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, '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 = 27792805 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': 3939651, 'mtr_portfolio_id': 27792805, 'created_at': datetime.datetime(2025, 10, 14, 11, 47, 2), 'result': '0.09023723377520439', 'result_long': None, 'result_double': None}] Qualite : 0.09023723377520439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27792805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792805_14-10-2025_11_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27792805 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_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, 'pht': 3726}}" where mtr_portfolio_id = 27792805 and dashboard_run_id = 2457283 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`=27792805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397938, 0.09023723377520439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, '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 = 27793427 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': 3939757, 'mtr_portfolio_id': 27793427, 'created_at': datetime.datetime(2025, 10, 14, 12, 3, 26), 'result': '0.02928398329343354', 'result_long': None, 'result_double': None}] Qualite : 0.02928398329343354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27793427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793427_14-10-2025_12_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27793427 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_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, 'pht': 3726}}" where mtr_portfolio_id = 27793427 and dashboard_run_id = 2457283 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`=27793427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397939, 0.02928398329343354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, '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 = 27793854 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': 3939875, 'mtr_portfolio_id': 27793854, 'created_at': datetime.datetime(2025, 10, 14, 13, 59, 31), 'result': '0.06671815326071187', 'result_long': None, 'result_double': None}] Qualite : 0.06671815326071187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27793854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793854_14-10-2025_13_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27793854 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_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, 'pht': 3726}}" where mtr_portfolio_id = 27793854 and dashboard_run_id = 2457283 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`=27793854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397940, 0.06671815326071187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, '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 = 27796261 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': 3940197, 'mtr_portfolio_id': 27796261, 'created_at': datetime.datetime(2025, 10, 14, 13, 49, 2), 'result': '0.06068483945329608', 'result_long': None, 'result_double': None}] Qualite : 0.06068483945329608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27796261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796261_14-10-2025_13_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27796261 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_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, 'pht': 3726}}" where mtr_portfolio_id = 27796261 and dashboard_run_id = 2457283 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`=27796261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397941, 0.06068483945329608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, '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 = 27796544 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': 3940220, 'mtr_portfolio_id': 27796544, 'created_at': datetime.datetime(2025, 10, 14, 14, 3, 3), 'result': '0.03774535744291173', 'result_long': None, 'result_double': None}] Qualite : 0.03774535744291173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27796544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796544_14-10-2025_14_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27796544 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_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, 'pht': 3726}}" where mtr_portfolio_id = 27796544 and dashboard_run_id = 2457283 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`=27796544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397942, 0.03774535744291173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, '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 = 27797034 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': 3940284, 'mtr_portfolio_id': 27797034, 'created_at': datetime.datetime(2025, 10, 14, 14, 18, 58), 'result': '0.05916738851558205', 'result_long': None, 'result_double': None}] Qualite : 0.05916738851558205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27797034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797034_14-10-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27797034 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_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, 'pht': 3726}}" where mtr_portfolio_id = 27797034 and dashboard_run_id = 2457283 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`=27797034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397943, 0.05916738851558205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, '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 = 27797621 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': 3940363, 'mtr_portfolio_id': 27797621, 'created_at': datetime.datetime(2025, 10, 14, 14, 32, 58), 'result': '0.06384741601101801', 'result_long': None, 'result_double': None}] Qualite : 0.06384741601101801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27797621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27797621 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_P27797621_14-10-2025_14_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, 'pht': 3726}}" where mtr_portfolio_id = 27797621 and dashboard_run_id = 2457283 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`=27797621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397944, 0.06384741601101801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, '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 = 27798076 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': 3940450, 'mtr_portfolio_id': 27798076, 'created_at': datetime.datetime(2025, 10, 14, 14, 49, 1), 'result': '0.04104938544860759', 'result_long': None, 'result_double': None}] Qualite : 0.04104938544860759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27798076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27798076_14-10-2025_14_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27798076 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_P27798076_14-10-2025_14_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27798138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798149, 'pht': 3726}}" where mtr_portfolio_id = 27798076 and dashboard_run_id = 2457283 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`=27798076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397945, 0.04104938544860759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27798076_14-10-2025_14_49_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27798138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798146, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798149, '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 = 27798593 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': 3940562, 'mtr_portfolio_id': 27798593, 'created_at': datetime.datetime(2025, 10, 14, 15, 3, 4), 'result': '0.046497887726070095', 'result_long': None, 'result_double': None}] Qualite : 0.046497887726070095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27798593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27798593_14-10-2025_15_03_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27798593 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_P27798593_14-10-2025_15_03_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27798613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798615, 'pht': 3726}}" where mtr_portfolio_id = 27798593 and dashboard_run_id = 2457283 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`=27798593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397946, 0.046497887726070095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27798593_14-10-2025_15_03_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27798604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27798605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27798606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27798607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27798608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27798609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27798610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27798611, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27798612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27798613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27798614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27798615, '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 = 27799018 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': 3940674, 'mtr_portfolio_id': 27799018, 'created_at': datetime.datetime(2025, 10, 14, 15, 19, 4), 'result': '0.039271972376247424', 'result_long': None, 'result_double': None}] Qualite : 0.039271972376247424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27799018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27799018_14-10-2025_15_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27799018 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_P27799018_14-10-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799102, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799103, 'pht': 3726}}" where mtr_portfolio_id = 27799018 and dashboard_run_id = 2457283 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`=27799018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397947, 0.039271972376247424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27799018_14-10-2025_15_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799094, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799102, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799103, '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 = 27799888 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': 3940814, 'mtr_portfolio_id': 27799888, 'created_at': datetime.datetime(2025, 10, 14, 15, 33, 1), 'result': '0.05594285597596009', 'result_long': None, 'result_double': None}] Qualite : 0.05594285597596009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27799888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27799888_14-10-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27799888 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_P27799888_14-10-2025_15_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799924, 'pht': 3726}}" where mtr_portfolio_id = 27799888 and dashboard_run_id = 2457283 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`=27799888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397948, 0.05594285597596009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27799888_14-10-2025_15_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27799913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27799914, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27799915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27799916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27799917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27799918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27799919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27799920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27799921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27799922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27799923, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27799924, '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 = 27800493 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': 3940899, 'mtr_portfolio_id': 27800493, 'created_at': datetime.datetime(2025, 10, 14, 15, 49, 2), 'result': '0.05132676897330288', 'result_long': None, 'result_double': None}] Qualite : 0.05132676897330288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27800493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27800493_14-10-2025_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27800493 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_P27800493_14-10-2025_15_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27800566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27800567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27800568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27800569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27800570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27800571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27800572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27800573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27800574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27800575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27800576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27800577, 'pht': 3726}}" where mtr_portfolio_id = 27800493 and dashboard_run_id = 2457283 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`=27800493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397949, 0.05132676897330288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27800493_14-10-2025_15_49_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27800566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27800567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27800568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27800569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27800570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27800571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27800572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27800573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27800574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27800575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27800576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27800577, '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 = 27801217 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': 3940993, 'mtr_portfolio_id': 27801217, 'created_at': datetime.datetime(2025, 10, 14, 16, 3, 34), 'result': '0.053848558792171354', 'result_long': None, 'result_double': None}] Qualite : 0.053848558792171354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27801217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27801217_14-10-2025_16_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27801217 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_P27801217_14-10-2025_16_03_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801239, 'pht': 3726}}" where mtr_portfolio_id = 27801217 and dashboard_run_id = 2457283 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`=27801217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397950, 0.053848558792171354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27801217_14-10-2025_16_03_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801232, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801234, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801239, '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 = 27801740 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': 3941091, 'mtr_portfolio_id': 27801740, 'created_at': datetime.datetime(2025, 10, 14, 16, 19, 2), 'result': '0.04845333481246561', 'result_long': None, 'result_double': None}] Qualite : 0.04845333481246561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27801740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27801740_14-10-2025_16_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27801740 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_P27801740_14-10-2025_16_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801799, 'pht': 3726}}" where mtr_portfolio_id = 27801740 and dashboard_run_id = 2457283 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`=27801740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397951, 0.04845333481246561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27801740_14-10-2025_16_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27801787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27801788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27801789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27801790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27801791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27801793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27801794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27801795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27801796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27801797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27801798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27801799, '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 = 27802515 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': 3941200, 'mtr_portfolio_id': 27802515, 'created_at': datetime.datetime(2025, 10, 14, 16, 33, 4), 'result': '0.04279406676107444', 'result_long': None, 'result_double': None}] Qualite : 0.04279406676107444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27802515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27802515_14-10-2025_16_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27802515 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_P27802515_14-10-2025_16_33_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27802557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27802558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27802559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27802560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27802561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27802562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27802563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27802564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27802565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27802566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27802567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27802568, 'pht': 3726}}" where mtr_portfolio_id = 27802515 and dashboard_run_id = 2457283 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`=27802515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397952, 0.04279406676107444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27802515_14-10-2025_16_33_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27802557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27802558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27802559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27802560, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27802561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27802562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27802563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27802564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27802565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27802566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27802567, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27802568, '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 = 27802948 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': 3941284, 'mtr_portfolio_id': 27802948, 'created_at': datetime.datetime(2025, 10, 14, 16, 49), 'result': '0.05113300775698125', 'result_long': None, 'result_double': None}] Qualite : 0.05113300775698125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27802948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27802948_14-10-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27802948 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_P27802948_14-10-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803018, 'pht': 3726}}" where mtr_portfolio_id = 27802948 and dashboard_run_id = 2457283 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`=27802948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397953, 0.05113300775698125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27802948_14-10-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803014, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803018, '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 = 27803606 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': 3941384, 'mtr_portfolio_id': 27803606, 'created_at': datetime.datetime(2025, 10, 14, 17, 3, 26), 'result': '0.04763760770620028', 'result_long': None, 'result_double': None}] Qualite : 0.04763760770620028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27803606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27803606_14-10-2025_17_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27803606 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_P27803606_14-10-2025_17_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803628, 'pht': 3726}}" where mtr_portfolio_id = 27803606 and dashboard_run_id = 2457283 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`=27803606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397954, 0.04763760770620028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27803606_14-10-2025_17_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27803617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27803618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27803619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27803620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27803621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27803622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27803623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27803624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27803625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27803626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27803627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27803628, '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 = 27804053 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': 3941497, 'mtr_portfolio_id': 27804053, 'created_at': datetime.datetime(2025, 10, 14, 17, 19, 2), 'result': '0.05791038409088286', 'result_long': None, 'result_double': None}] Qualite : 0.05791038409088286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27804053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27804053_14-10-2025_17_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27804053 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_P27804053_14-10-2025_17_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804092, 'pht': 3726}}" where mtr_portfolio_id = 27804053 and dashboard_run_id = 2457283 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`=27804053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397955, 0.05791038409088286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27804053_14-10-2025_17_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804092, '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 = 27804856 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': 3941599, 'mtr_portfolio_id': 27804856, 'created_at': datetime.datetime(2025, 10, 14, 19, 31, 5), 'result': '0.05074899993765265', 'result_long': None, 'result_double': None}] Qualite : 0.05074899993765265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27804856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27804856_14-10-2025_19_31_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27804856 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_P27804856_14-10-2025_19_31_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804907, 'pht': 3726}}" where mtr_portfolio_id = 27804856 and dashboard_run_id = 2457283 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`=27804856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397956, 0.05074899993765265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27804856_14-10-2025_19_31_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27804896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27804897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27804898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27804899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27804900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27804901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27804902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27804903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27804904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27804905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27804906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27804907, '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 = 27805938 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': 3941786, 'mtr_portfolio_id': 27805938, 'created_at': datetime.datetime(2025, 10, 14, 18, 19, 2), 'result': '0.06069843825158225', 'result_long': None, 'result_double': None}] Qualite : 0.06069843825158225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27805938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27805938_14-10-2025_18_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27805938 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_P27805938_14-10-2025_18_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27805980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27805981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27805982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27805983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27805984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27805985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27805986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27805987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27805988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27805989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27805990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27805991, 'pht': 3726}}" where mtr_portfolio_id = 27805938 and dashboard_run_id = 2457283 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`=27805938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397957, 0.06069843825158225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27805938_14-10-2025_18_19_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27805980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27805981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27805982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27805983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27805984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27805985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27805986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27805987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27805988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27805989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27805990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27805991, '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 = 27806657 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': 3941840, 'mtr_portfolio_id': 27806657, 'created_at': datetime.datetime(2025, 10, 14, 18, 33, 33), 'result': '0.047920597058352936', 'result_long': None, 'result_double': None}] Qualite : 0.047920597058352936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27806657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27806657_14-10-2025_18_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27806657 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_P27806657_14-10-2025_18_33_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27806661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27806662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27806663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27806664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27806665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27806666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27806680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27806686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27806687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27806688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27806689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27806690, 'pht': 3726}}" where mtr_portfolio_id = 27806657 and dashboard_run_id = 2457283 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`=27806657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397958, 0.047920597058352936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27806657_14-10-2025_18_33_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27806661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27806662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27806663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27806664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27806665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27806666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27806680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27806686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27806687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27806688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27806689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27806690, '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 = 27807123 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': 3941885, 'mtr_portfolio_id': 27807123, 'created_at': datetime.datetime(2025, 10, 14, 18, 49, 4), 'result': '0.055471888514764464', 'result_long': None, 'result_double': None}] Qualite : 0.055471888514764464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27807123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27807123_14-10-2025_18_49_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27807123 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_P27807123_14-10-2025_18_49_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27807162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807173, 'pht': 3726}}" where mtr_portfolio_id = 27807123 and dashboard_run_id = 2457283 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`=27807123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397959, 0.055471888514764464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27807123_14-10-2025_18_49_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27807162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807165, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807166, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807173, '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 = 27807769 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': 3941952, 'mtr_portfolio_id': 27807769, 'created_at': datetime.datetime(2025, 10, 14, 19, 5, 1), 'result': '0.061438274933775364', 'result_long': None, 'result_double': None}] Qualite : 0.061438274933775364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27807769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27807769_14-10-2025_19_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27807769 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_P27807769_14-10-2025_19_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27807782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807788, 'pht': 3726}}" where mtr_portfolio_id = 27807769 and dashboard_run_id = 2457283 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`=27807769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397960, 0.061438274933775364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27807769_14-10-2025_19_05_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27807777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27807778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27807779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27807780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27807781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27807782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27807783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27807784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27807785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27807786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27807787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27807788, '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 = 27808273 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': 3942037, 'mtr_portfolio_id': 27808273, 'created_at': datetime.datetime(2025, 10, 14, 19, 19, 25), 'result': '0.09835004972742711', 'result_long': None, 'result_double': None}] Qualite : 0.09835004972742711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27808273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27808273_14-10-2025_19_19_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27808273 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_P27808273_14-10-2025_19_19_25.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27808277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808288, 'pht': 3726}}" where mtr_portfolio_id = 27808273 and dashboard_run_id = 2457283 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`=27808273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397961, 0.09835004972742711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27808273_14-10-2025_19_19_25.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27808277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808288, '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 = 27808877 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': 3942164, 'mtr_portfolio_id': 27808877, 'created_at': datetime.datetime(2025, 10, 14, 19, 32, 59), 'result': '0.04520180896644643', 'result_long': None, 'result_double': None}] Qualite : 0.04520180896644643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27808877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27808877_14-10-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27808877 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_P27808877_14-10-2025_19_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27808890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808893, 'pht': 3726}}" where mtr_portfolio_id = 27808877 and dashboard_run_id = 2457283 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`=27808877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397962, 0.04520180896644643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27808877_14-10-2025_19_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27808882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27808883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27808884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27808885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27808886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27808887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27808888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27808889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27808890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27808891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27808892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27808893, '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 = 27809378 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': 3942244, 'mtr_portfolio_id': 27809378, 'created_at': datetime.datetime(2025, 10, 14, 19, 49, 25), 'result': '0.05014795082567984', 'result_long': None, 'result_double': None}] Qualite : 0.05014795082567984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27809378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27809378_14-10-2025_19_49_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27809378 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_P27809378_14-10-2025_19_49_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809409, 'pht': 3726}}" where mtr_portfolio_id = 27809378 and dashboard_run_id = 2457283 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`=27809378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397963, 0.05014795082567984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27809378_14-10-2025_19_49_26.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809409, '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 = 27809921 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': 3942339, 'mtr_portfolio_id': 27809921, 'created_at': datetime.datetime(2025, 10, 14, 20, 3, 24), 'result': '0.060736935321743804', 'result_long': None, 'result_double': None}] Qualite : 0.060736935321743804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27809921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27809921_14-10-2025_20_03_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27809921 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_P27809921_14-10-2025_20_03_25.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809937, 'pht': 3726}}" where mtr_portfolio_id = 27809921 and dashboard_run_id = 2457283 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`=27809921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397964, 0.060736935321743804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27809921_14-10-2025_20_03_25.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27809926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27809927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27809928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27809929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27809930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27809931, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27809932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27809933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27809934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27809935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27809936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27809937, '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 = 27810343 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': 3942445, 'mtr_portfolio_id': 27810343, 'created_at': datetime.datetime(2025, 10, 14, 20, 19, 27), 'result': '0.03557036266429529', 'result_long': None, 'result_double': None}] Qualite : 0.03557036266429529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27810343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27810343_14-10-2025_20_19_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27810343 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_P27810343_14-10-2025_20_19_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27810406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810416, 'pht': 3726}}" where mtr_portfolio_id = 27810343 and dashboard_run_id = 2457283 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`=27810343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397965, 0.03557036266429529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27810343_14-10-2025_20_19_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27810406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810416, '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 = 27810879 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': 3942525, 'mtr_portfolio_id': 27810879, 'created_at': datetime.datetime(2025, 10, 14, 20, 33), 'result': '0.04449398838138057', 'result_long': None, 'result_double': None}] Qualite : 0.04449398838138057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27810879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27810879_14-10-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27810879 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_P27810879_14-10-2025_20_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27810904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810915, 'pht': 3726}}" where mtr_portfolio_id = 27810879 and dashboard_run_id = 2457283 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`=27810879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397966, 0.04449398838138057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27810879_14-10-2025_20_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27810904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27810905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27810906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27810907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27810908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27810909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27810910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27810911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27810912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27810913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27810914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27810915, '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 = 27811273 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': 3942598, 'mtr_portfolio_id': 27811273, 'created_at': datetime.datetime(2025, 10, 14, 21, 12, 30), 'result': '0.041783971838619025', 'result_long': None, 'result_double': None}] Qualite : 0.041783971838619025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27811273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27811273_14-10-2025_21_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27811273 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_P27811273_14-10-2025_21_12_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27811294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27811295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27811296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27811297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27811298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27811299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27811300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27811301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27811302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27811303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27811304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27811305, 'pht': 3726}}" where mtr_portfolio_id = 27811273 and dashboard_run_id = 2457283 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`=27811273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397967, 0.041783971838619025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27811273_14-10-2025_21_12_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27811294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27811295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27811296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27811297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27811298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27811299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27811300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27811301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27811302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27811303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27811304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27811305, '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 = 27812481 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': 3942815, 'mtr_portfolio_id': 27812481, 'created_at': datetime.datetime(2025, 10, 14, 21, 33, 2), 'result': '0.04065178155704941', 'result_long': None, 'result_double': None}] Qualite : 0.04065178155704941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27812481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27812481_14-10-2025_21_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27812481 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_P27812481_14-10-2025_21_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27812485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812495, 'pht': 3726}}" where mtr_portfolio_id = 27812481 and dashboard_run_id = 2457283 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`=27812481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397968, 0.04065178155704941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27812481_14-10-2025_21_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27812485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812495, '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 = 27812769 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': 3942861, 'mtr_portfolio_id': 27812769, 'created_at': datetime.datetime(2025, 10, 14, 21, 48, 59), 'result': '0.0448886412477402', 'result_long': None, 'result_double': None}] Qualite : 0.0448886412477402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27812769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27812769_14-10-2025_21_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27812769 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_P27812769_14-10-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27812780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812791, 'pht': 3726}}" where mtr_portfolio_id = 27812769 and dashboard_run_id = 2457283 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`=27812769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397969, 0.0448886412477402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27812769_14-10-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27812780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27812781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27812782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27812783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27812784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27812785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27812786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27812787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27812788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27812789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27812790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27812791, '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 = 27813214 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': 3942935, 'mtr_portfolio_id': 27813214, 'created_at': datetime.datetime(2025, 10, 14, 22, 3, 5), 'result': '0.0456090296718996', 'result_long': None, 'result_double': None}] Qualite : 0.0456090296718996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27813214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27813214_14-10-2025_22_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27813214 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_P27813214_14-10-2025_22_03_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27813225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813233, 'pht': 3726}}" where mtr_portfolio_id = 27813214 and dashboard_run_id = 2457287 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`=27813214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397970, 0.0456090296718996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27813214_14-10-2025_22_03_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27813225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813231, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813233, '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 = 27813665 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': 3943049, 'mtr_portfolio_id': 27813665, 'created_at': datetime.datetime(2025, 10, 14, 22, 19, 28), 'result': '0.050493627747207316', 'result_long': None, 'result_double': None}] Qualite : 0.050493627747207316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27813665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27813665_14-10-2025_22_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27813665 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_P27813665_14-10-2025_22_19_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27813714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813725, 'pht': 3726}}" where mtr_portfolio_id = 27813665 and dashboard_run_id = 2457287 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`=27813665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397971, 0.050493627747207316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27813665_14-10-2025_22_19_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27813714, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27813715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27813716, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27813717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27813718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27813719, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27813720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27813721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27813722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27813723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27813724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27813725, '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 = 27814344 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': 3943165, 'mtr_portfolio_id': 27814344, 'created_at': datetime.datetime(2025, 10, 14, 22, 33, 5), 'result': '0.0520887489267823', 'result_long': None, 'result_double': None}] Qualite : 0.0520887489267823 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27814344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814344_14-10-2025_22_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27814344 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_P27814344_14-10-2025_22_33_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27814356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814361, 'pht': 3726}}" where mtr_portfolio_id = 27814344 and dashboard_run_id = 2457287 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`=27814344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397972, 0.0520887489267823, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814344_14-10-2025_22_33_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27814356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814361, '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 = 27814899 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': 3943259, 'mtr_portfolio_id': 27814899, 'created_at': datetime.datetime(2025, 10, 14, 22, 39, 4), 'result': '0.051839209744899736', 'result_long': None, 'result_double': None}] Qualite : 0.051839209744899736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27814899 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814899_14-10-2025_22_39_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27814899 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_P27814899_14-10-2025_22_39_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27814926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814928, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814937, 'pht': 3726}}" where mtr_portfolio_id = 27814899 and dashboard_run_id = 2457287 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`=27814899 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16397973, 0.051839209744899736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27814899_14-10-2025_22_39_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27814926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27814927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27814928, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27814929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27814930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27814931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27814932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27814933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27814934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27814935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27814936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27814937, '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 (27777996,27778872,27779391,27779550,27779656,27780223,27780493,27780862,27781293,27781652,27782198,27782598,27783071,27783528,27784517,27785515,27786047,27786429,27790040,27790322,27791327,27791435,27792192,27792805,27793427,27793854,27796261,27796544,27797034,27797621,27798076,27798593,27799018,27799888,27800493,27801217,27801740,27802515,27802948,27803606,27804053,27804856,27805938,27806657,27807123,27807769,27808273,27808877,27809378,27809921,27810343,27810879,27811273,27812481,27812769,27813214,27813665,27814344,27814899) result : ((1389325084,), (1389325226,), (1389325245,), (1389325345,), (1389325726,), (1389325883,), (1389325885,), (1389326199,), (1389331930,), (1389332748,), (1389333287,), (1389333288,), (1389333300,), (1389333351,), (1389333367,), (1389333368,), (1389333393,), (1389335401,), (1389335981,), (1389335993,), (1389336007,), (1389336008,), (1389336024,), (1389336040,), (1389336057,), (1389336061,), (1389336090,), (1389336101,), (1389336134,), (1389336151,), (1389336188,), (1389336187,), (1389336243,), (1389336261,), (1389336274,), (1389336288,), (1389336289,), (1389336290,), (1389336307,), (1389336308,), (1389336345,), (1389336362,), (1389336378,), (1389336391,), (1389336492,), (1389336509,), (1389336522,), (1389336524,), (1389336528,), (1389336531,), (1389336558,), (1389336560,), (1389336562,), (1389336574,), (1389336575,), (1389336616,), (1389336617,), (1389336645,), (1389336689,), (1389336691,), (1389336746,), (1389340467,), (1389340529,), (1389340555,), (1389340557,), (1389340578,), (1389340582,), (1389340608,), (1389340617,), (1389340621,), (1389340626,), (1389340636,), (1389340654,), (1389340656,), (1389340673,), (1389340675,), (1389340697,), (1389340699,), (1389340701,), (1389340717,), (1389340742,), (1389340744,), (1389340748,), (1389340752,), (1389340764,), (1389340766,), (1389340810,), (1389340795,), (1389340798,), (1389340801,), (1389340805,), (1389340818,), (1389340824,), (1389340829,), (1389340836,), (1389340843,), (1389340846,), (1389340854,), (1389340856,), (1389340858,), (1389340866,), (1389340871,), (1389340874,), (1389340877,), (1389340879,), (1389340881,), (1389340904,), (1389340906,), (1389340908,), (1389340912,), (1389340917,), (1389340929,), (1389340931,), (1389340933,), (1389340935,), (1389340938,), (1389340957,), (1389340958,), (1389340960,), (1389340962,), (1389340979,), (1389340985,), (1389340991,), (1389340996,), (1389341003,), (1389341006,), (1389341049,), (1389341052,), (1389341056,), (1389341059,), (1389341062,), (1389341065,), (1389341068,), (1389341069,), (1389341070,), (1389341072,), (1389341074,), (1389341077,), (1389341081,), (1389341091,), (1389341097,), (1389341100,), (1389341108,), (1389341109,), (1389341110,), (1389341113,), (1389341127,), (1389341129,), (1389341131,), (1389341134,), (1389341139,), (1389341142,), (1389341171,), (1389341172,), (1389341173,), (1389341175,), (1389341190,), (1389341192,), (1389341193,), (1389341195,), (1389341198,), (1389341246,), (1389341252,), (1389341255,), (1389341259,), (1389341262,), (1389341278,), (1389341272,), (1389341275,), (1389341313,), (1389341315,), (1389341316,), (1389341347,), (1389341348,), (1389341350,), (1389341354,), (1389341358,), (1389341361,), (1389341368,), (1389341370,), (1389341372,), (1389341374,), (1389341380,), (1389341389,), (1389341390,), (1389341392,), (1389341394,), (1389341407,), (1389341409,), (1389341411,), (1389341413,), (1389341419,), (1389341429,), (1389341444,), (1389341445,), (1389341446,), (1389341448,), (1389341451,), (1389341462,), (1389341464,), (1389341469,), (1389341476,), (1389341493,), (1389341494,), (1389341495,), (1389341497,), (1389341500,), (1389341503,), (1389341517,), (1389341519,), (1389341521,), (1389341525,), (1389341527,), (1389341558,), (1389341559,), (1389341560,), (1389341576,), (1389341579,), (1389341606,), (1389341608,), (1389341609,), (1389341612,), (1389341616,), (1389341627,), (1389341628,), (1389341631,), (1389341636,), (1389341646,), (1389341677,), (1389341665,), (1389341666,), (1389341669,), (1389341673,), (1389341675,), (1389341686,), (1389341687,), (1389341688,), (1389341691,), (1389341711,), (1389341712,), (1389341713,), (1389341716,), (1389341722,), (1389341731,), (1389341733,), (1389341738,), (1389341742,), (1389341746,), (1389341749,), (1389341761,), (1389341762,), (1389341763,), (1389341779,), (1389341781,), (1389341782,), (1389341785,), (1389341789,), (1389341807,), (1389341808,), (1389341811,), (1389341815,), (1389341818,), (1389341821,), (1389341828,), (1389341830,), (1389341831,), (1389341834,), (1389341859,), (1389341860,), (1389341861,), (1389341864,), (1389341868,), (1389341880,), (1389341882,), (1389341884,), (1389341887,), (1389341889,), (1389341895,), (1389341908,), (1389341911,), (1389341912,), (1389341914,), (1389341928,), (1389341931,), (1389341932,), (1389341934,), (1389341937,), (1389341944,), (1389341959,), (1389341961,), (1389341963,), (1389341965,), (1389341969,), (1389341973,), (1389342228,), (1389342234,), (1389342239,), (1389342243,), (1389342267,), (1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,), (1389343602,), (1389343605,), (1389343607,), (1389343610,), (1389343614,), (1389343618,), (1389343623,), (1389343624,), (1389343626,), (1389343630,), (1389343634,), (1389343639,), (1389343674,), (1389343661,), (1389343662,), (1389343663,), (1389343667,), (1389343670,), (1389343683,), (1389343685,), (1389343686,), (1389343688,), (1389343711,), (1389343712,), (1389343713,), (1389343716,), (1389343720,), (1389343723,), (1389343732,), (1389343734,), (1389343735,), (1389343738,), (1389343756,), (1389343757,), (1389343758,), (1389343761,), (1389343765,), (1389343776,), (1389343778,), (1389343779,), (1389343782,), (1389343789,), (1389343792,), (1389343806,), (1389343807,), (1389343810,), (1389343813,), (1389343816,), (1389343831,), (1389343833,), (1389343835,), (1389343838,), (1389343871,), (1389343872,), (1389343873,), (1389343876,), (1389343880,), (1389343891,), (1389343893,), (1389343894,), (1389343897,), (1389343901,), (1389343932,), (1389343933,), (1389343934,), (1389343937,), (1389343941,), (1389343952,), (1389343954,), (1389343955,), (1389343980,), (1389343981,), (1389343983,), (1389343985,), (1389343989,), (1389343998,), (1389344000,), (1389344001,), (1389344003,), (1389344006,), (1389344029,), (1389344031,), (1389344032,), (1389344034,), (1389344037,), (1389344056,), (1389344048,), (1389344050,), (1389344051,), (1389344053,), (1389344079,), (1389344080,), (1389344083,), (1389344088,), (1389344090,), (1389344091,), (1389344110,), (1389344113,), (1389344115,), (1389344138,), (1389344139,), (1389344140,), (1389344143,), (1389344147,), (1389344155,), (1389344157,), (1389344159,), (1389344163,), (1389344166,), (1389344182,), (1389344183,), (1389344184,), (1389344188,), (1389344191,), (1389344199,), (1389344201,), (1389344203,), (1389344205,), (1389344210,), (1389344235,), (1389344236,), (1389344237,), (1389344239,), (1389344241,), (1389344255,), (1389344296,), (1389344297,), (1389344302,), (1389344306,), (1389344308,), (1389344310,), (1389344318,), (1389344320,), (1389344324,), (1389344335,), (1389344340,), (1389344349,), (1389344351,), (1389344355,), (1389344358,), (1389344365,), (1389344369,), (1389344371,), (1389344373,), (1389344380,), (1389344402,), (1389344415,), (1389344419,), (1389344420,), (1389344422,), (1389344425,), (1389344443,), (1389344449,), (1389344456,), (1389344459,), (1389344462,), (1389344465,), (1389344468,), (1389344471,), (1389344496,), (1389344484,), (1389344487,), (1389344489,), (1389344492,), (1389344515,), (1389344517,), (1389344520,), (1389344544,), (1389344553,), (1389344558,), (1389344562,), (1389344563,), (1389344566,), (1389344571,), (1389344572,), (1389344576,), (1389344579,), (1389344583,), (1389344586,), (1389344590,), (1389344594,), (1389344596,), (1389344599,), (1389344602,), (1389344606,), (1389344611,), (1389344614,), (1389344617,), (1389344620,), (1389344621,), (1389344638,), (1389344647,), (1389344668,), (1389344677,), (1389344682,), (1389344683,), (1389344688,), (1389344690,), (1389344694,), (1389344698,), (1389344701,), (1389344707,), (1389344719,), (1389344720,), (1389344721,), (1389344724,), (1389344727,), (1389344731,), (1389344735,), (1389344740,), (1389344749,), (1389344754,), (1389344767,), (1389344781,), (1389344782,), (1389344786,), (1389344790,), (1389344795,), (1389344798,), (1389344802,), (1389344803,), (1389344807,), (1389344814,), (1389344816,), (1389344822,), (1389344827,), (1389344836,), (1389344846,), (1389344852,), (1389344864,), (1389344868,), (1389344873,), (1389344880,), (1389344886,), (1389344889,), (1389344892,), (1389344895,), (1389344898,), (1389344916,), (1389344917,), (1389344919,), (1389347905,), (1389347908,), (1389347911,), (1389347913,), (1389347916,), (1389348098,), (1389348101,), (1389348153,), (1389348156,), (1389348160,), (1389348166,), (1389348178,), (1389348222,), (1389348534,), (1389348539,), (1389348966,), (1389349212,), (1389349213,), (1389349215,), (1389349216,), (1389349218,), (1389349219,), (1389349401,), (1389349447,), (1389349450,), (1389349451,), (1389349452,), (1389349455,), (1389349457,), (1389349678,), (1389349681,), (1389349686,), (1389349690,), (1389349693,), (1389349696,), (1389349709,), (1389349722,), (1389349725,), (1389349729,), (1389349895,), (1389349899,), (1389349903,), (1389349963,), (1389349966,), (1389349968,), (1389350054,), (1389350056,), (1389350063,), (1389350066,), (1389350112,), (1389350115,), (1389350129,), (1389350220,), (1389350226,), (1389350229,), (1389350241,), (1389350252,), (1389350356,), (1389350411,), (1389350414,), (1389350658,), (1389350678,), (1389350696,), (1389350697,), (1389350701,), (1389350703,), (1389350745,), (1389350750,), (1389350752,), (1389350754,), (1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,), (1389347241,), (1389347244,), (1389347245,), (1389347265,), (1389347318,), (1389347367,), (1389347532,), (1389347572,), (1389347590,), (1389347600,), (1389347601,), (1389347626,), (1389347656,), (1389347660,), (1389347665,), (1389347668,), (1389347673,), (1389347677,), (1389347680,), (1389347693,), (1389347697,), (1389347699,), (1389347702,), (1389347705,), (1389347746,), (1389347925,), (1389347928,), (1389347930,), (1389347943,), (1389347944,), (1389347948,), (1389348047,), (1389348062,), (1389348064,), (1389348077,), (1389348305,), (1389348312,), (1389348379,), (1389348387,), (1389348392,), (1389348394,), (1389348400,), (1389348402,), (1389348513,), (1389348522,), (1389348549,), (1389348551,), (1389348554,), (1389348558,), (1389348592,), (1389348596,), (1389348682,), (1389348964,), (1389348613,), (1389348615,), (1389348617,), (1389348674,), (1389348678,), (1389348892,), (1389348906,), (1389348909,), (1389348914,), (1389348919,), (1389348931,), (1389348958,), (1389348959,), (1389348960,), (1389348962,), (1389349039,), (1389349040,), (1389349059,), (1389349112,), (1389349209,), (1389349210,), (1389349346,), (1389349362,), (1389349373,), (1389349377,), (1389349383,), (1389349462,), (1389349464,), (1389349570,), (1389349642,), (1389349654,), (1389349673,), (1389349703,), (1389349705,), (1389349837,), (1389349851,), (1389349877,), (1389349884,), (1389349888,), (1389349890,), (1389349992,), (1389349994,), (1389349995,), (1389349997,), (1389349999,), (1389350001,), (1389350011,), (1389350016,), (1389350094,), (1389350096,), (1389350099,), (1389350110,), (1389350262,), (1389350265,), (1389350268,), (1389350278,), (1389350287,), (1389350290,), (1389350298,), (1389350301,), (1389350311,), (1389350313,), (1389350315,), (1389350316,), (1389350318,), (1389350319,), (1389350321,), (1389350322,), (1389350323,), (1389350324,), (1389350331,), (1389350345,), (1389350353,), (1389350716,), (1389350717,), (1389350719,), (1389350721,), (1389350723,), (1389350724,), (1389350728,), (1389350732,), (1389350736,), (1389350738,), (1389350742,), (1389351556,), (1389351549,), (1389351553,), (1389351588,), (1389351590,), (1389351592,), (1389351657,), (1389351661,), (1389351663,), (1389351665,), (1389351669,), (1389351672,), (1389351833,), (1389351834,), (1389351835,), (1389352071,), (1389352607,), (1389352543,), (1389352546,), (1389352647,), (1389352649,), (1389352651,), (1389352683,), (1389352686,), (1389352688,), (1389352691,), (1389352694,), (1389352761,), (1389352765,), (1389352771,), (1389352775,), (1389352778,), (1389352780,), (1389352786,), (1389352800,), (1389352802,), (1389352806,), (1389352811,), (1389352814,), (1389352819,), (1389352822,), (1389352828,), (1389352830,), (1389352836,), (1389352919,), (1389352921,), (1389352922,), (1389352925,), (1389352929,), (1389352954,), (1389352970,), (1389352974,), (1389352978,), (1389352982,), (1389353709,), (1389353718,), (1389353724,), (1389353748,), (1389353743,), (1389353746,), (1389353871,), (1389353874,), (1389353901,), (1389353906,), (1389354400,), (1389354892,), (1389354913,), (1389354927,), (1389355303,), (1389355354,), (1389355383,), (1389355400,), (1389355410,), (1389356075,), (1389356078,), (1389356081,), (1389356085,), (1389356088,), (1389356374,), (1389356422,), (1389356426,), (1389356431,), (1389356467,), (1389356473,), (1389356477,), (1389356494,), (1389356497,), (1389356512,), (1389356547,), (1389356551,), (1389356555,), (1389356568,), (1389356618,), (1389356620,), (1389356621,), (1389356695,), (1389356697,), (1389356698,), (1389356701,), (1389356704,), (1389356708,), (1389356739,), (1389356740,), (1389356741,), (1389356744,), (1389356779,), (1389356784,), (1389356791,), (1389356793,), (1389356797,), (1389356816,), (1389356817,), (1389356838,), (1389356847,), (1389356850,), (1389372207,), (1389371959,), (1389372200,), (1389372201,), (1389372202,), (1389372204,), (1389372223,), (1389372226,), (1389372229,), (1389372285,), (1389372315,), (1389372317,), (1389372318,), (1389372320,), (1389372323,), (1389372335,), (1389372339,), (1389372340,), (1389372347,), (1389372365,), (1389372378,), (1389372380,), (1389372381,), (1389372383,), (1389372400,), (1389372401,), (1389372414,), (1389372433,), (1389372472,), (1389372475,), (1389372476,), (1389372478,), (1389372481,), (1389372484,), (1389372506,), (1389372503,), (1389372504,), (1389372531,), (1389372534,), (1389372537,), (1389372602,), (1389372607,), (1389372608,), (1389372609,), (1389372615,), (1389372616,), (1389372638,), (1389372639,), (1389372641,), (1389372644,), (1389372647,), (1389372653,), (1389372673,), (1389372674,), (1389372675,), (1389372676,), (1389372677,), (1389372683,), (1389372687,), (1389372705,), (1389372707,), (1389372709,), (1389372711,), (1389372714,), (1389372764,), (1389372775,), (1389372779,), (1389372782,), (1389372785,), (1389372817,), (1389372820,), (1389372824,), (1389372830,), (1389372848,), (1389372849,), (1389372850,), (1389372892,), (1389372894,), (1389372895,), (1389372897,), (1389372974,), (1389373031,), (1389373032,), (1389373034,), (1389373037,), (1389373262,), (1389373264,), (1389373274,), (1389373276,), (1389373320,), (1389373329,), (1389373330,), (1389373433,), (1389373453,), (1389373458,), (1389373944,), (1389373946,), (1389373978,), (1389374047,), (1389374045,), (1389375617,), (1389375620,), (1389375650,), (1389375660,), (1389375672,), (1389375673,), (1389375674,), (1389375675,), (1389375677,), (1389375679,), (1389376143,), (1389375685,), (1389375695,), (1389375700,), (1389375705,), (1389376422,), (1389376467,), (1389376469,), (1389376509,), (1389376554,), (1389376555,), (1389376556,), (1389376614,), (1389376615,), (1389376836,), (1389377202,), (1389377206,), (1389377310,), (1389377431,), (1389377536,), (1389377540,), (1389377545,), (1389377549,), (1389377576,), (1389377586,), (1389377594,), (1389377616,), (1389377617,), (1389377619,), (1389377622,), (1389377626,), (1389377629,), (1389377675,), (1389377677,), (1389377678,), (1389377681,), (1389377685,), (1389377726,), (1389377727,), (1389377728,), (1389377762,), (1389377765,), (1389377766,), (1389377772,), (1389377878,), (1389377940,), (1389377947,), (1389377984,), (1389377990,), (1389377994,), (1389378001,), (1389378002,), (1389378004,), (1389378093,), (1389378102,), (1389378104,), (1389378106,), (1389378141,), (1389378151,), (1389378158,), (1389378159,), (1389378161,), (1389378164,), (1389378166,), (1389378170,), (1389378184,), (1389378189,), (1389378274,), (1389378260,), (1389378261,), (1389378262,), (1389378265,), (1389378270,), (1389378542,), (1389378545,), (1389378569,), (1389378571,), (1389378576,), (1389378825,), (1389378827,), (1389378828,), (1389378854,), (1389378857,), (1389378859,), (1389378862,), (1389378865,), (1389378868,), (1389378975,), (1389379002,), (1389379003,), (1389379021,), (1389379022,), (1389379044,), (1389379050,), (1389379054,), (1389379062,), (1389379474,), (1389379476,), (1389379521,), (1389379524,), (1389379656,), (1389379662,), (1389379665,), (1389379668,), (1389379739,), (1389379740,), (1389379743,), (1389379746,), (1389379749,), (1389379752,), (1389379760,), (1389379762,), (1389379768,), (1389379773,), (1389379786,), (1389379806,), (1389379808,), (1389379810,), (1389379833,), (1389379835,), (1389379837,), (1389379922,), (1389379949,), (1389379951,), (1389380000,), (1389380002,), (1389380003,), (1389380044,), (1389380023,), (1389380034,), (1389380036,), (1389380040,), (1389380058,), (1389380060,), (1389380061,), (1389380064,), (1389380078,), (1389380079,), (1389380080,), (1389380082,), (1389380087,), (1389380110,), (1389380216,), (1389380220,), (1389380252,), (1389380268,), (1389380269,), (1389380270,), (1389380272,), (1389380276,), (1389380291,), (1389380293,), (1389380312,), (1389380314,), (1389380337,), (1389380338,), (1389380340,), (1389380342,), (1389380355,), (1389380356,), (1389380358,), (1389380360,), (1389380397,), (1389380398,), (1389380399,), (1389380402,), (1389380407,), (1389380421,), (1389380423,), (1389380425,), (1389380429,), (1389380434,), (1389380456,), (1389380457,), (1389380460,), (1389380465,), (1389380468,), (1389380496,), (1389380497,), (1389380499,), (1389380503,), (1389380509,), (1389380513,), (1389380521,), (1389380525,), (1389380527,), (1389380532,), (1389380535,), (1389380539,), (1389380543,), (1389380545,), (1389380548,), (1389380557,), (1389380566,), (1389380570,), (1389380573,), (1389380591,), (1389380604,), (1389380621,), (1389380622,), (1389380623,), (1389380653,), (1389380654,), (1389380657,), (1389380660,), (1389380665,), (1389380680,), (1389380682,), (1389380693,), (1389380736,), (1389380737,), (1389380739,), (1389380741,), (1389380746,), (1389380749,), (1389380758,), (1389380760,), (1389380761,), (1389380764,), (1389380771,), (1389380797,), (1389380798,), (1389380799,), (1389380816,), (1389380818,), (1389380819,), (1389380839,), (1389380841,), (1389380843,), (1389380847,), (1389380888,), (1389380898,), (1389380899,), (1389380902,), (1389380924,), (1389380925,), (1389380927,), (1389380933,), (1389380943,), (1389380945,), (1389380946,), (1389380990,), (1389380991,), (1389380993,), (1389380996,), (1389381016,), (1389381022,), (1389381027,), (1389381030,), (1389381446,), (1389381451,), (1389381461,), (1389381480,), (1389381481,), (1389382497,), (1389382407,), (1389382443,), (1389382476,), (1389382493,), (1389382508,), (1389382510,), (1389382511,), (1389382774,), (1389382789,), (1389382794,), (1389384002,), (1389384004,), (1389384007,), (1389384304,), (1389384306,), (1389384372,), (1389384375,), (1389384465,), (1389384467,), (1389384469,), (1389384472,), (1389384485,), (1389384539,), (1389384543,), (1389384576,), (1389384579,), (1389384626,), (1389384627,), (1389384628,), (1389384665,), (1389384672,), (1389384677,), (1389384680,), (1389384683,), (1389384700,), (1389384701,), (1389384703,), (1389384742,), (1389384744,), (1389384745,), (1389384748,), (1389384781,), (1389399264,), (1389399263,), (1389399355,), (1389399357,), (1389399359,), (1389399385,), (1389399411,), (1389399414,), (1389399422,), (1389399426,), (1389399620,), (1389399631,), (1389399648,), (1389400055,), (1389400056,), (1389400066,), (1389400085,), (1389400204,), (1389400222,), (1389400224,), (1389400225,), (1389400227,), (1389400491,), (1389400495,), (1389400500,), (1389400575,), (1389400587,), (1389400591,), (1389400609,), (1389400662,), (1389400633,), (1389400635,), (1389400647,), (1389400657,), (1389400715,), (1389400736,), (1389400737,), (1389400740,), (1389400745,), (1389400765,), (1389400767,), (1389400768,), (1389400773,), (1389400779,), (1389400832,), (1389400836,), (1389400841,), (1389400850,), (1389400854,), (1389400857,), (1389400870,), (1389400871,), (1389400872,), (1389400875,), (1389400903,), (1389400904,), (1389400905,), (1389400909,), (1389400913,), (1389400919,), (1389400953,), (1389400954,), (1389400955,), (1389400972,), (1389400973,), (1389400975,), (1389400977,), (1389400985,), (1389400992,), (1389402104,), (1389402123,), (1389402124,), (1389402126,), (1389402129,), (1389402213,), (1389402576,), (1389402577,), (1389402579,), (1389402583,), (1389402586,), (1389402589,), (1389402594,), (1389402596,), (1389402597,), (1389402598,), (1389402600,), (1389402602,), (1389402604,), (1389402865,), (1389402915,), (1389402919,), (1389403217,), (1389403218,), (1389403299,), (1389403301,), (1389403333,), (1389403336,), (1389403503,), (1389403505,), (1389403507,), (1389403510,), (1389404172,), (1389404174,), (1389404178,), (1389404181,), (1389404185,), (1389404191,), (1389404192,), (1389404194,), (1389404252,), (1389404241,), (1389404244,), (1389404246,), (1389404248,), (1389404251,), (1389404349,), (1389404351,), (1389405246,), (1389405249,), (1389405252,), (1389405256,), (1389405257,), (1389405418,), (1389405459,), (1389405463,), (1389405624,), (1389405625,), (1389405626,), (1389405629,), (1389406332,), (1389406334,), (1389406337,), (1389406341,), (1389406489,), (1389406566,), (1389406613,), (1389406620,), (1389406661,), (1389407000,), (1389407003,), (1389407005,), (1389407010,), (1389407013,), (1389407127,), (1389407191,), (1389407192,), (1389407193,), (1389407327,), (1389407358,), (1389407361,), (1389407365,), (1389407369,), (1389407372,), (1389407374,), (1389407380,), (1389407382,), (1389407383,), (1389407385,), (1389407388,), (1389407418,), (1389407419,), (1389407421,), (1389407424,), (1389407437,), (1389407439,), (1389407440,), (1389407443,), (1389407446,), (1389407450,), (1389407473,), (1389407475,), (1389407476,), (1389407479,), (1389407495,), (1389407496,), (1389407497,), (1389407499,), (1389407503,), (1389407511,), (1389407536,), (1389407537,), (1389407540,), (1389407542,), (1389407557,), (1389407558,), (1389407562,), (1389407566,), (1389407574,), (1389407578,), (1389407590,), (1389407591,), (1389407601,), (1389407607,), (1389407617,), (1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,), (1389411225,), (1389411226,), (1389411227,), (1389411229,), (1389411257,), (1389411259,), (1389411260,), (1389411263,), (1389411266,), (1389411279,), (1389411280,), (1389411364,), (1389411365,), (1389411367,), (1389411370,), (1389411374,), (1389411376,), (1389411385,), (1389411387,), (1389411390,), (1389411394,), (1389411397,), (1389411400,), (1389411406,), (1389411408,), (1389411409,), (1389411410,), (1389411413,), (1389411417,), (1389411421,), (1389411424,), (1389411427,), (1389411430,), (1389411478,), (1389411480,), (1389411482,), (1389412284,), (1389412388,), (1389412390,), (1389412486,), (1389412490,), (1389412708,), (1389412711,), (1389412759,), (1389412760,), (1389412762,), (1389412790,), (1389412800,), (1389412805,), (1389412811,), (1389412829,), (1389412849,), (1389412851,), (1389412854,), (1389412861,), (1389412866,), (1389412868,), (1389412872,), (1389412914,), (1389412915,), (1389412916,), (1389412925,), (1389412919,), (1389412922,), (1389412937,), (1389412939,), (1389412943,), (1389412949,), (1389412961,), (1389412974,), (1389412975,), (1389412976,), (1389412979,), (1389412983,), (1389412986,), (1389413024,), (1389413025,), (1389413027,), (1389413029,), (1389413032,), (1389413044,), (1389413046,), (1389413067,), (1389413069,), (1389413071,), (1389413073,), (1389413077,), (1389413113,), (1389413114,), (1389413115,), (1389413676,), (1389413858,), (1389414315,), (1389414316,), (1389414317,), (1389414563,), (1389414587,), (1389414589,), (1389414592,), (1389414595,), (1389414603,), (1389414610,), (1389414808,), (1389414813,), (1389414837,), (1389414840,), (1389414903,), (1389414906,), (1389414913,), (1389414915,), (1389414919,), (1389414920,), (1389414923,), (1389414931,), (1389414932,), (1389414934,), (1389414935,), (1389414937,), (1389414938,), (1389414950,), (1389414951,), (1389414953,), (1389414954,), (1389414955,), (1389414956,), (1389414968,), (1389414971,), (1389414974,), (1389414977,), (1389414978,), (1389414979,), (1389415477,), (1389415608,), (1389416204,), (1389416228,), (1389416232,), (1389416235,), (1389416240,), (1389416242,), (1389416272,), (1389416274,), (1389416276,), (1389416611,), (1389416844,), (1389416846,), (1389416848,), (1389416850,), (1389416839,), (1389416842,), (1389417278,), (1389417316,), (1389417644,), (1389417654,), (1389417657,), (1389417660,), (1389417820,), (1389417823,), (1389417827,), (1389417830,), (1389417865,), (1389417866,), (1389417868,), (1389417871,), (1389417875,), (1389417878,), (1389417925,), (1389417927,), (1389417931,), (1389417937,), (1389417940,), (1389417944,), (1389417952,), (1389417954,), (1389417959,), (1389417963,), (1389417968,), (1389417970,), (1389417973,), (1389417975,), (1389417977,), (1389418009,), (1389418012,), (1389418018,), (1389418032,), (1389418049,), (1389418056,), (1389418095,), (1389418096,), (1389418162,), (1389418166,), (1389418168,), (1389418170,), (1389418232,), (1389418233,), (1389418235,), (1389418348,), (1389418349,), (1389418352,), (1389418356,), (1389418359,), (1389418363,), (1389418371,), (1389418372,), (1389418376,), (1389418390,), (1389418434,), (1389418510,), (1389418512,), (1389418514,), (1389418517,), (1389418522,), (1389418691,), (1389418736,), (1389418751,), (1389418756,), (1389418778,), (1389418781,), (1389418789,), (1389418795,), (1389418799,), (1389418802,), (1389418946,), (1389418950,), (1389418955,), (1389418960,), (1389418989,), (1389418991,), (1389419011,), (1389419170,), (1389419176,), (1389419177,), (1389419258,), (1389419261,), (1389418993,), (1389418998,), (1389418999,), (1389419002,), (1389419006,), (1389419286,), (1389419298,), (1389419308,), (1389419313,), (1389419315,), (1389419317,), (1389419319,), (1389419322,), (1389419444,), (1389419482,), (1389419644,), (1389419649,), (1389419675,), (1389419676,), (1389419678,), (1389419709,), (1389420024,), (1389420136,), (1389420163,), (1389420300,), (1389420301,), (1389420302,), (1389420305,), (1389420309,), (1389420312,), (1389420440,), (1389420478,), (1389420481,), (1389420484,), (1389420524,), (1389420526,), (1389420528,), (1389420530,), (1389420534,), (1389420539,), (1389420812,), (1389420816,), (1389420819,), (1389420844,), (1389420855,), (1389420858,), (1389420865,), (1389420866,), (1389420867,), (1389420869,), (1389420949,), (1389420950,), (1389420966,), (1389420967,), (1389420968,), (1389420970,), (1389420984,), (1389420985,), (1389421215,), (1389421220,), (1389421403,), (1389421404,), (1389421426,), (1389421427,), (1389421428,), (1389421429,), (1389421430,), (1389421431,), (1389421433,), (1389421606,), (1389421614,), (1389421654,), (1389421657,), (1389421660,), (1389421666,), (1389421670,), (1389421673,), (1389421675,), (1389422011,), (1389422027,), (1389422031,), (1389422033,), (1389422036,), (1389422092,), (1389422061,), (1389422087,), (1389422089,), (1389422091,), (1389422093,), (1389422094,), (1389422097,), (1389422102,), (1389422115,), (1389422117,), (1389422336,), (1389422388,), (1389422523,), (1389422532,), (1389422545,), (1389422550,), (1389422560,), (1389422566,), (1389422568,), (1389422569,), (1389422570,), (1389422573,), (1389422609,), (1389422618,), (1389422623,), (1389422631,), (1389422635,), (1389422692,), (1389422693,), (1389422849,), (1389422850,), (1389422873,), (1389422875,), (1389422876,), (1389423104,), (1389423105,), (1389423107,), (1389423111,), (1389423115,), (1389423199,), (1389423207,), (1389423217,), (1389423226,), (1389423229,), (1389423233,), (1389423240,), (1389423423,), (1389423433,), (1389423478,), (1389423463,), (1389423475,), (1389423528,), (1389423535,), (1389423542,), (1389423557,), (1389423564,), (1389423568,), (1389423588,), (1389423589,), (1389423590,), (1389423592,), (1389423597,), (1389423637,), (1389423639,), (1389423640,), (1389423643,), (1389423661,), (1389423662,), (1389423663,), (1389423666,), (1389423670,), (1389423687,), (1389423688,), (1389423689,), (1389423692,), (1389423697,), (1389423702,), (1389423724,), (1389423726,), (1389423728,), (1389423731,), (1389423855,), (1389423904,), (1389423927,), (1389424448,), (1389424675,), (1389424676,), (1389424678,), (1389424680,), (1389424682,), (1389424684,), (1389425146,), (1389425150,), (1389425155,), (1389425159,), (1389425163,), (1389425166,), (1389425277,), (1389425278,), (1389425280,), (1389425364,), (1389425391,), (1389425399,), (1389425820,), (1389425822,), (1389425824,), (1389425856,), (1389425858,), (1389425860,), (1389425870,), (1389425871,), (1389425873,), (1389425879,), (1389425969,), (1389426227,), (1389426231,), (1389426342,), (1389426885,), (1389427016,), (1389427017,), (1389427346,), (1389427353,), (1389427356,), (1389427360,), (1389427433,), (1389427427,), (1389427430,), (1389427449,), (1389427453,), (1389427455,), (1389427457,), (1389427461,), (1389427464,), (1389427700,), (1389427702,), (1389427768,), (1389428327,), (1389428918,), (1389428919,), (1389428920,), (1389428923,), (1389428927,), (1389428930,), (1389429148,), (1389429150,), (1389429152,), (1389429558,), (1389429636,), (1389429640,), (1389429650,), (1389429743,), (1389429745,), (1389429825,), (1389429828,), (1389429832,), (1389429836,), (1389429911,), (1389429912,), (1389429914,), (1389429916,), (1389429918,), (1389429921,), (1389430102,), (1389430229,), (1389430230,), (1389430252,), (1389430257,), (1389430405,), (1389430407,), (1389430577,), (1389430580,), (1389430584,), (1389430587,), (1389430643,), (1389430663,), (1389430673,), (1389430677,), (1389430680,), (1389430726,), (1389430727,), (1389430729,), (1389430731,), (1389430735,), (1389430769,), (1389430783,), (1389430789,), (1389430830,), (1389430832,), (1389430833,), (1389430835,), (1389430861,), (1389430862,), (1389430863,), (1389430875,), (1389430889,), (1389430891,), (1389430894,), (1389430900,), (1389430912,), (1389430917,), (1389430933,), (1389430936,), (1389430938,), (1389430966,), (1389430940,), (1389430942,), (1389430944,), (1389430947,), (1389430963,), (1389431021,), (1389431023,), (1389431024,), (1389431028,), (1389431052,), (1389431053,), (1389431056,), (1389431058,), (1389431065,), (1389431068,), (1389431089,), (1389431090,), (1389431092,), (1389431095,), (1389431098,), (1389431124,), (1389431126,), (1389431128,), (1389431131,), (1389431135,), (1389431144,), (1389431145,), (1389431146,), (1389431149,), (1389431155,), (1389431158,), (1389431187,), (1389431188,), (1389431189,), (1389431192,), (1389431196,), (1389431199,), (1389431215,), (1389431217,), (1389431219,), (1389432028,), (1389432050,), (1389432061,), (1389432064,), (1389432067,), (1389432070,), (1389432569,), (1389432682,), (1389432685,), (1389432690,), (1389432696,), (1389432699,), (1389432809,), (1389432811,), (1389432812,), (1389432813,), (1389432815,), (1389432818,), (1389432822,), (1389433161,), (1389433169,), (1389433172,), (1389433178,), (1389433179,), (1389433180,), (1389433182,), (1389433186,), (1389433225,), (1389433241,), (1389433243,), (1389433255,), (1389433262,), (1389433266,), (1389433275,), (1389433277,), (1389433278,), (1389433280,), (1389433303,), (1389433306,), (1389433308,), (1389433311,), (1389433316,), (1389433320,), (1389433368,), (1389433362,), (1389433363,), (1389433365,), (1389433384,), (1389433385,), (1389433386,), (1389433389,), (1389433394,), (1389433397,), (1389433406,), (1389433408,), (1389433409,), (1389433411,), (1389433415,), (1389433458,), (1389433459,), (1389433461,), (1389433465,), (1389433468,), (1389433482,), (1389433484,), (1389433488,), (1389433491,), (1389433494,), (1389433500,), (1389433511,), (1389433513,), (1389433514,), (1389433515,), (1389433518,), (1389433521,), (1389433525,), (1389433528,), (1389433531,), (1389433534,), (1389433598,), (1389433611,), (1389433623,), (1389433627,), (1389433657,), (1389433658,), (1389433659,), (1389433663,), (1389433667,), (1389433670,), (1389433775,), (1389433777,), (1389433778,), (1389433780,), (1389433783,), (1389433813,), (1389433814,), (1389433815,), (1389433817,), (1389433820,), (1389433831,), (1389435596,), (1389435589,), (1389435590,), (1389435591,), (1389435593,), (1389435607,), (1389435608,), (1389435609,), (1389435611,), (1389435615,), (1389435625,), (1389435638,), (1389435640,), (1389435671,), (1389435672,), (1389435673,), (1389435675,), (1389435679,), (1389435700,), (1389435702,), (1389435768,), (1389436017,), (1389436024,), (1389436052,), (1389436054,), (1389436392,), (1389436395,), (1389436398,), (1389436615,), (1389436621,), (1389436623,), (1389436628,), (1389436772,), (1389436776,), (1389436785,), (1389436786,), (1389436787,), (1389436790,), (1389436793,), (1389436817,), (1389436818,), (1389436820,), (1389436823,), (1389436829,), (1389436833,), (1389436868,), (1389436869,), (1389436871,), (1389436878,), (1389436882,), (1389436886,), (1389436896,), (1389436898,), (1389436899,), (1389436902,), (1389436903,), (1389437226,), (1389437680,), (1389437683,), (1389437686,), (1389437692,), (1389437693,), (1389437694,), (1389437697,), (1389437702,), (1389437706,), (1389438170,), (1389438171,), (1389438173,), (1389438176,), (1389438842,), (1389438849,), (1389438855,), (1389438860,), (1389438867,), (1389438872,), (1389439791,), (1389439804,), (1389439808,), (1389439812,), (1389439819,), (1389439825,), (1389440498,), (1389440504,), (1389440506,), (1389439831,), (1389439832,), (1389439837,), (1389440139,), (1389440495,), (1389440508,), (1389440510,), (1389441125,), (1389441135,), (1389441137,), (1389441380,), (1389441383,), (1389441386,), (1389441391,), (1389441394,), (1389441447,), (1389441449,), (1389441450,), (1389441453,), (1389441458,), (1389441462,), (1389441471,), (1389441473,), (1389441478,), (1389441481,), (1389441483,), (1389441486,), (1389441512,), (1389441513,), (1389441514,), (1389441516,), (1389441521,), (1389441524,), (1389441527,), (1389441564,), (1389441839,), (1389441844,), (1389441889,), (1389441894,), (1389441905,), (1389441908,), (1389441918,), (1389441939,), (1389441941,), (1389441942,), (1389441944,), (1389441948,), (1389441951,), (1389441962,), (1389441963,), (1389441965,), (1389441967,), (1389441971,), (1389442007,), (1389442009,), (1389442011,), (1389442024,), (1389442027,), (1389442092,), (1389442122,), (1389442126,), (1389442130,), (1389442137,), (1389442164,), (1389442166,), (1389442167,), (1389442170,), (1389442174,), (1389442177,), (1389442205,), (1389442211,), (1389442237,), (1389442269,), (1389442290,), (1389442292,), (1389442296,), (1389442331,), (1389442376,), (1389442739,), (1389442741,), (1389442761,), (1389442775,), (1389442786,), (1389442791,), (1389442811,), (1389442812,), (1389442813,), (1389442829,), (1389442971,), (1389442868,), (1389442871,), (1389442909,), (1389442913,), (1389442959,), (1389442996,), (1389443030,), (1389443033,), (1389443035,), (1389443806,), (1389444151,), (1389444152,), (1389444153,), (1389444164,), (1389444582,), (1389444591,), (1389444958,), (1389444966,), (1389445088,), (1389445091,), (1389445095,), (1389445111,), (1389445113,), (1389445114,), (1389445117,), (1389445121,), (1389445410,), (1389445462,), (1389445463,), (1389445466,), (1389445471,), (1389445481,), (1389445540,), (1389445542,), (1389445545,), (1389445583,), (1389445688,), (1389445706,), (1389445707,), (1389445710,), (1389445714,), (1389445717,), (1389445720,), (1389445739,), (1389445741,), (1389445743,), (1389445746,), (1389445750,), (1389445767,), (1389445775,), (1389445778,), (1389445807,), (1389445816,), (1389445828,), (1389445833,), (1389445862,), (1389445865,), (1389445866,), (1389445886,), (1389446011,), (1389446014,), (1389446019,), (1389446053,), (1389446395,), (1389446396,), (1389446397,), (1389446516,), (1389446540,), (1389446546,), (1389446548,), (1389446555,), (1389446567,), (1389446596,), (1389446597,), (1389446598,), (1389446601,), (1389446604,), (1389446675,), (1389452352,), (1389452660,), (1389452661,), (1389452662,), (1389452664,), (1389452717,), (1389452718,), (1389452721,), (1389452722,), (1389452725,), (1389452777,), (1389452943,), (1389452946,), (1389452949,), (1389452952,), (1389452955,), (1389453071,), (1389453129,), (1389453134,), (1389453136,), (1389453139,), (1389453144,), (1389453147,), (1389453150,), (1389453153,), (1389453179,), (1389453181,), (1389453182,), (1389453185,), (1389453277,), (1389453285,), (1389453322,), (1389453338,), (1389453376,), (1389453385,), (1389453386,), (1389453387,), (1389453428,), (1389453430,), (1389453431,), (1389453434,), (1389453438,), (1389453617,), (1389453659,), (1389453660,), (1389453693,), (1389453697,), (1389453704,), (1389454250,), (1389454255,), (1389454259,), (1389454262,), (1389454334,), (1389454322,), (1389454323,), (1389454325,), (1389454328,), (1389454331,), (1389454343,), (1389454487,), (1389454497,), (1389454915,), (1389454916,), (1389454917,), (1389454919,), (1389454923,), (1389454927,), (1389454936,), (1389454937,), (1389454938,), (1389454941,), (1389455133,), (1389455134,), (1389455156,), (1389455161,), (1389455165,), (1389455276,), (1389455285,), (1389455286,), (1389455288,), (1389455292,), (1389455294,), (1389455299,), (1389455319,), (1389455320,), (1389455321,), (1389455324,), (1389455494,), (1389455497,), (1389455499,), (1389455501,), (1389455505,), (1389455530,), (1389455531,), (1389455534,), (1389455537,), (1389455539,), (1389455553,), (1389455554,), (1389455555,), (1389455558,), (1389455562,), (1389455568,), (1389455591,), (1389455593,), (1389455708,), (1389455752,), (1389455901,), (1389455908,), (1389455912,), (1389455924,), (1389455927,), (1389455930,), (1389455944,), (1389455945,), (1389455947,), (1389456083,), (1389456127,), (1389456128,), (1389456130,), (1389456134,), (1389456137,), (1389456152,), (1389456155,), (1389456156,), (1389456159,), (1389456352,), (1389456188,), (1389456193,), (1389456293,), (1389456320,), (1389456470,), (1389456478,), (1389456486,), (1389456490,), (1389456493,), (1389456538,), (1389456920,), (1389456921,), (1389456922,), (1389456925,), (1389456929,), (1389456932,), (1389456947,), (1389456949,), (1389456952,), (1389456955,), (1389456959,), (1389456961,), (1389456977,), (1389456979,), (1389456981,), (1389456984,), (1389456986,), (1389456987,), (1389456993,), (1389456995,), (1389456997,), (1389456998,), (1389457002,), (1389457017,), (1389457021,), (1389457024,), (1389457028,), (1389457031,), (1389457034,), (1389457036,), (1389457610,), (1389457611,), (1389457771,), (1389457938,), (1389457947,), (1389458034,), (1389458045,), (1389458185,), (1389458187,), (1389458189,), (1389458191,), (1389458195,), (1389458515,), (1389458517,), (1389458520,), (1389458522,), (1389458526,), (1389458534,), (1389458536,), (1389458537,), (1389458538,), (1389458560,), (1389458565,), (1389458568,), (1389458571,), (1389458574,), (1389458577,), (1389458589,), (1389458591,), (1389458594,), (1389458596,), (1389458602,), (1389458605,), (1389459346,), (1389459348,), (1389459351,), (1389459354,), (1389459356,), (1389459692,), (1389459696,), (1389459699,), (1389459707,), (1389459716,), (1389459718,), (1389459971,), (1389459975,), (1389459976,), (1389459979,), (1389459980,), (1389459998,), (1389459986,), (1389459989,), (1389459992,), (1389459995,), (1389460109,), (1389460155,), (1389460171,), (1389460174,), (1389460176,), (1389460239,), (1389460269,), (1389460271,), (1389460273,), (1389460310,), (1389460312,), (1389460314,), (1389460318,), (1389460322,), (1389460331,), (1389460342,), (1389460344,), (1389460345,), (1389460348,), (1389460352,), (1389460676,), (1389460677,), (1389460679,), (1389460681,), (1389460798,), (1389460802,), (1389461014,), (1389461015,), (1389461016,), (1389461019,), (1389461100,), (1389461134,), (1389461143,), (1389461145,), (1389461187,), (1389461189,), (1389461202,), (1389461203,), (1389461205,), (1389461208,), (1389461230,), (1389461232,), (1389461234,), (1389461241,), (1389461244,), (1389461247,), (1389461252,), (1389461254,), (1389461255,), (1389461256,), (1389461259,), (1389461261,), (1389461264,), (1389461267,), (1389461616,), (1389461617,), (1389461618,), (1389461697,), (1389461702,), (1389461708,), (1389461732,), (1389461733,), (1389461735,), (1389461738,), (1389462627,), (1389463045,), (1389463048,), (1389463050,), (1389463054,), (1389463056,), (1389463882,), (1389464207,), (1389463254,), (1389463261,), (1389463513,), (1389463880,), (1389464139,), (1389464142,), (1389464182,), (1389464187,), (1389464188,), (1389464189,), (1389464193,), (1389464196,), (1389464199,), (1389464202,), (1389464205,), (1389464243,), (1389464245,), (1389464247,), (1389464250,), (1389464263,), (1389464265,), (1389464267,), (1389464271,), (1389464278,), (1389464307,), (1389464308,), (1389464310,), (1389464328,), (1389464338,), (1389464344,), (1389464347,), (1389464350,), (1389464448,), (1389464450,), (1389464451,), (1389464454,), (1389464487,), (1389464488,), (1389464492,), (1389464495,), (1389464497,), (1389464499,), (1389464528,), (1389464531,), (1389464535,), (1389464554,), (1389464556,), (1389464559,), (1389464564,), (1389464569,), (1389464573,), (1389464587,), (1389464588,), (1389464589,), (1389464591,), (1389464613,), (1389464614,), (1389464615,), (1389464617,), (1389464619,), (1389464622,), (1389464637,), (1389464639,), (1389464641,), (1389464647,), (1389464652,), (1389464655,), (1389464674,), (1389464676,), (1389464713,), (1389464760,), (1389464800,), (1389465184,), (1389465192,), (1389464974,), (1389464976,), (1389465089,), (1389465096,), (1389465137,), (1389465143,), (1389465269,), (1389465271,), (1389465272,), (1389465311,), (1389465325,), (1389465488,), (1389465931,), (1389465934,), (1389465935,), (1389465938,), (1389466031,), (1389466045,), (1389466047,), (1389466048,), (1389466051,), (1389466055,), (1389466058,), (1389466088,), (1389466090,), (1389466091,), (1389466096,), (1389466126,), (1389466127,), (1389466128,), (1389466131,), (1389466135,), (1389466138,), (1389466184,), (1389466490,), (1389466494,), (1389466500,), (1389466503,), (1389466514,), (1389466516,), (1389466517,), (1389466520,), (1389466542,), (1389466549,), (1389466554,), (1389466557,), (1389466561,), (1389466564,), (1389466585,), (1389466589,), (1389466593,), (1389466603,), (1389466608,), (1389466610,), (1389466620,), (1389466621,), (1389466622,), (1389466623,), (1389466626,), (1389466630,), (1389466633,), (1389466636,), (1389466639,), (1389466642,), (1389466648,), (1389466650,), (1389466652,), (1389466655,), (1389466658,), (1389466691,), (1389466696,), (1389466700,), (1389466705,), (1389466709,), (1389466711,), (1389466765,), (1389466767,), (1389466768,), (1389466770,), (1389466773,), (1389466806,), (1389466810,), (1389466811,), (1389466814,), (1389466817,), (1389466889,), (1389466873,), (1389466875,), (1389466876,), (1389466878,), (1389466882,), (1389466926,), (1389466927,), (1389466928,), (1389466930,), (1389466944,), (1389466945,), (1389466947,), (1389466951,), (1389466959,), (1389466963,), (1389466969,), (1389467008,), (1389467327,), (1389467337,), (1389467350,), (1389467465,), (1389467580,), (1389467584,), (1389467592,), (1389467600,), (1389467601,), (1389467603,), (1389467606,), (1389467609,), (1389467612,), (1389467621,), (1389467623,), (1389467625,), (1389467628,), (1389467631,), (1389467678,), (1389467680,), (1389467681,), (1389467684,), (1389467688,), (1389467691,), (1389467700,), (1389467701,), (1389467702,), (1389467704,), (1389467707,), (1389467735,), (1389467737,), (1389467738,), (1389467741,), (1389467745,), (1389467748,), (1389467814,), (1389467815,), (1389467821,), (1389467824,), (1389467905,), (1389467910,), (1389467911,), (1389467914,), (1389467918,), (1389467921,), (1389467971,), (1389467972,), (1389467973,), (1389468027,), (1389468028,), (1389468029,), (1389468033,), (1389468037,), (1389468040,), (1389468112,), (1389468113,), (1389468116,), (1389468119,), (1389468122,), (1389468348,), (1389468352,), (1389468353,), (1389468356,), (1389468736,), (1389468724,), (1389468725,), (1389468726,), (1389468729,), (1389468733,), (1389468744,), (1389468746,), (1389468748,), (1389468927,), (1389469096,), (1389469098,), (1389469100,), (1389469102,), (1389469125,), (1389469127,), (1389469128,), (1389469131,), (1389469135,), (1389469138,), (1389469284,), (1389469318,), (1389469319,), (1389469322,), (1389469347,), (1389469349,), (1389469395,), (1389469397,), (1389469428,), (1389469436,), (1389469437,), (1389469440,), (1389469445,), (1389469448,), (1389469457,), (1389469459,), (1389469461,), (1389469492,), (1389469493,), (1389469495,), (1389469498,), (1389469501,), (1389469504,), (1389469519,), (1389469521,), (1389469522,), (1389469565,), (1389469567,), (1389469569,), (1389469571,), (1389469572,), (1389469573,), (1389469581,), (1389469582,), (1389469586,), (1389469587,), (1389469590,), (1389469592,), (1389469594,), (1389469595,), (1389469597,), (1389469598,), (1389469599,), (1389469600,), (1389469604,), (1389469605,), (1389469608,), (1389469613,), (1389469616,), (1389469619,), (1389469634,), (1389469636,), (1389469637,), (1389469638,), (1389469785,), (1389471676,), (1389471682,), (1389471814,), (1389471818,), (1389472226,), (1389472220,), (1389472223,), (1389472225,), (1389472567,), (1389472572,), (1389472574,), (1389472577,), (1389472596,), (1389472597,), (1389472599,), (1389472602,), (1389472605,), (1389472641,), (1389472642,), (1389472644,), (1389472647,), (1389472650,), (1389472653,), (1389472658,), (1389472660,), (1389472661,), (1389472732,), (1389472735,), (1389472736,), (1389472739,), (1389472741,), (1389472742,), (1389472749,), (1389472752,), (1389472755,), (1389472758,), (1389472760,), (1389472797,), (1389472798,), (1389472799,), (1389472801,), (1389472818,), (1389472820,), (1389472822,), (1389472830,), (1389472843,), (1389472846,), (1389472885,), (1389472886,), (1389472887,), (1389472889,), (1389472892,), (1389472929,), (1389472931,), (1389472932,), (1389472942,), (1389472956,), (1389473009,), (1389473010,), (1389473014,), (1389473019,), (1389473022,), (1389473025,), (1389473029,), (1389473044,), (1389473053,), (1389473120,), (1389473121,), (1389473122,), (1389473125,), (1389473131,), (1389473135,), (1389473147,), (1389473148,), (1389473151,), (1389473155,), (1389473158,), (1389473161,), (1389473168,), (1389473170,), (1389473171,), (1389473172,), (1389473209,), (1389473210,), (1389473211,), (1389473213,), (1389473215,), (1389473216,), (1389473234,), (1389473236,), (1389473254,), (1389473264,), (1389473269,), (1389473222,), (1389473227,), (1389473229,), (1389473232,), (1389473239,), (1389473241,), (1389473245,), (1389473250,), (1389473284,), (1389473286,), (1389473287,), (1389473290,), (1389473294,), (1389473297,), (1389473327,), (1389473328,), (1389473329,), (1389473332,), (1389473349,), (1389473351,), (1389473353,), (1389473355,), (1389473359,), (1389473362,), (1389473370,), (1389473371,), (1389473373,), (1389473376,), (1389473379,), (1389473382,), (1389473406,), (1389473408,), (1389473410,), (1389473412,), (1389473437,), (1389473438,), (1389473439,), (1389473442,), (1389473448,), (1389473451,), (1389473463,), (1389473464,), (1389473466,), (1389473470,), (1389473473,), (1389473476,), (1389473490,), (1389473492,), (1389473499,), (1389473500,), (1389473501,), (1389473524,), (1389473526,), (1389473528,), (1389473531,), (1389473533,), (1389473536,), (1389473543,), (1389473545,), (1389473547,), (1389473549,), (1389473551,), (1389473562,), (1389473566,), (1389473567,), (1389473569,), (1389473571,), (1389473575,), (1389473582,), (1389473585,), (1389473597,), (1389473602,), (1389473608,), (1389473610,), (1389473611,), (1389473614,), (1389473618,), (1389473629,), (1389473631,), (1389473634,), (1389473638,), (1389473642,), (1389473659,), (1389473673,), (1389473676,), (1389473678,), (1389473681,), (1389473720,), (1389473705,), (1389473706,), (1389473709,), (1389473711,), (1389473714,), (1389473733,), (1389473735,), (1389473736,), (1389473739,), (1389473742,), (1389473745,), (1389473755,), (1389473756,), (1389473757,), (1389473759,), (1389473794,), (1389473795,), (1389473797,), (1389473800,), (1389473802,), (1389473805,), (1389473810,), (1389473812,), (1389473813,), (1389473814,), (1389473836,), (1389473842,), (1389473844,), (1389473847,), (1389473850,), (1389473853,), (1389473857,), (1389473859,), (1389473862,), (1389473874,), (1389473877,), (1389473880,), (1389473883,), (1389473889,), (1389473895,), (1389473897,), (1389473906,), (1389473908,), (1389473917,), (1389473920,), (1389473924,), (1389473971,), (1389473972,), (1389473976,), (1389473979,), (1389474022,), (1389474024,), (1389474025,), (1389474027,), (1389474066,), (1389478472,), (1389478945,), (1389478948,), (1389479271,), (1389479272,), (1389479273,), (1389479275,), (1389479306,), (1389479307,), (1389479308,), (1389479321,), (1389479324,), (1389479416,), (1389479424,), (1389479425,), (1389479427,), (1389479430,), (1389479439,), (1389479441,), (1389479442,), (1389479473,), (1389479474,), (1389479475,), (1389479477,), (1389479500,), (1389479541,), (1389479543,), (1389479546,), (1389479552,), (1389479555,), (1389479570,), (1389479572,), (1389479575,), (1389479578,), (1389479581,), (1389479584,), (1389479610,), (1389479625,), (1389479675,), (1389479850,), (1389479853,), (1389479854,), (1389479856,), (1389479897,), (1389479905,), (1389479950,), (1389479954,), (1389479957,), (1389479960,), (1389479962,), (1389480043,), (1389480044,), (1389480047,), (1389480051,), (1389480056,), (1389480067,), (1389480091,), (1389480097,), (1389480104,), (1389480106,), (1389480121,), (1389480140,), (1389480142,), (1389480145,), (1389480150,), (1389480276,), (1389480383,), (1389480384,), (1389480385,), (1389480400,), (1389480402,), (1389480403,), (1389480406,), (1389480410,), (1389480588,), (1389480737,), (1389480738,), (1389480740,), (1389480743,), (1389480746,), (1389480749,), (1389480754,), (1389480755,), (1389480756,), (1389480757,), (1389480759,), (1389480787,), (1389480791,), (1389480794,), (1389480796,), (1389480797,), (1389480799,), (1389480806,), (1389480810,), (1389480814,), (1389480826,), (1389480829,), (1389480831,), (1389480839,), (1389480841,), (1389480844,), (1389480847,), (1389480850,), (1389480853,), (1389480870,), (1389480871,), (1389480873,), (1389480875,), (1389480879,), (1389481009,), (1389481011,), (1389481013,), (1389481047,), (1389481048,), (1389481049,), (1389481052,), (1389481066,), (1389481068,), (1389481069,), (1389481071,), (1389481074,), (1389481077,), (1389481094,), (1389481095,), (1389481096,), (1389481098,), (1389481132,), (1389481134,), (1389481136,), (1389481157,), (1389481159,), (1389481162,), (1389481164,), (1389481166,), (1389481168,), (1389481171,), (1389481172,), (1389481173,), (1389481222,), (1389481224,), (1389481229,), (1389481232,), (1389481233,), (1389481250,), (1389481251,), (1389481242,), (1389481243,), (1389481247,), (1389481248,), (1389481255,), (1389481257,), (1389481259,), (1389481262,), (1389481266,), (1389481289,), (1389481290,), (1389481291,), (1389481293,), (1389481297,), (1389481316,), (1389481318,), (1389481320,), (1389481323,), (1389481326,), (1389481365,), (1389481366,), (1389481367,), (1389481370,), (1389481374,), (1389481382,), (1389481384,), (1389481386,), (1389481388,), (1389481392,), (1389481838,), (1389482002,), (1389482003,), (1389482066,), (1389482069,), (1389482072,), (1389482218,), (1389482220,), (1389482221,), (1389482247,), (1389482249,), (1389482251,), (1389482254,), (1389482257,), (1389482260,), (1389482278,), (1389482284,), (1389482289,), (1389482298,), (1389482302,), (1389482305,), (1389482313,), (1389482314,), (1389482315,), (1389482318,), (1389482329,), (1389482331,), (1389482332,), (1389482510,), (1389482514,), (1389482670,), (1389482671,), (1389482672,), (1389482674,), (1389483175,), (1389483314,), (1389483320,), (1389483385,), (1389483389,), (1389483392,), (1389483394,), (1389484016,), (1389483749,), (1389484262,), (1389484269,), (1389484314,), (1389484359,), (1389484361,), (1389484363,), (1389484366,), (1389484370,), (1389484438,), (1389484440,), (1389484442,), (1389484447,), (1389484452,), (1389484456,), (1389484463,), (1389484465,), (1389484466,), (1389484483,), (1389484488,), (1389484489,), (1389484491,), (1389484493,), (1389484494,), (1389484500,), (1389484504,), (1389484507,), (1389484510,), (1389484523,), (1389484529,), (1389484530,), (1389484531,), (1389484533,), (1389484536,), (1389484539,), (1389484558,), (1389484566,), (1389484569,), (1389484572,), (1389484575,), (1389484590,), (1389484591,), (1389484593,), (1389485120,), (1389485292,), (1389485300,), (1389485337,), (1389485340,), (1389485388,), (1389485389,), (1389485390,), (1389485392,), (1389485395,), (1389485423,), (1389485425,), (1389485426,), (1389485430,), (1389485470,), (1389485471,), (1389485472,), (1389485475,), (1389485481,), (1389485497,), (1389485498,), (1389485501,), (1389485505,), (1389485508,), (1389485511,), (1389485515,), (1389485517,), (1389485518,), (1389485519,), (1389485543,), (1389485549,), (1389485550,), (1389485552,), (1389485554,), (1389485555,), (1389485564,), (1389485565,), (1389485566,), (1389485567,), (1389485568,), (1389485569,), (1389485570,), (1389485571,), (1389485560,), (1389485561,), (1389485562,), (1389485563,), (1389485573,), (1389485574,), (1389485575,), (1389485577,), (1389485579,), (1389485580,), (1389485585,), (1389485587,), (1389485729,), (1389485732,), (1389485734,), (1389485736,), (1389485739,), (1389485742,), (1389485750,), (1389485751,), (1389485752,), (1389485776,), (1389485777,), (1389485779,), (1389485782,), (1389485785,), (1389485788,), (1389485815,), (1389485827,), (1389485829,), (1389485843,), (1389485851,), (1389485852,), (1389485854,), (1389485856,), (1389485858,), (1389485866,), (1389485868,), (1389485871,), (1389485874,), (1389485876,), (1389485878,), (1389485879,), (1389486294,), (1389486298,), (1389486301,), (1389486304,), (1389486422,), (1389486437,), (1389487228,), (1389487224,), (1389487225,), (1389487226,), (1389487550,), (1389487552,), (1389487555,), (1389487580,), (1389487581,), (1389487582,), (1389487585,), (1389487589,), (1389487595,), (1389488169,), (1389488170,), (1389488318,), (1389488352,), (1389488376,), (1389488378,), (1389488426,), (1389488427,), (1389488429,), (1389488431,), (1389488433,), (1389488434,), (1389488456,), (1389488459,), (1389488462,), (1389488466,), (1389488628,), (1389488921,), (1389488928,), (1389488932,), (1389488935,), (1389488948,), (1389489021,), (1389489101,), (1389489171,), (1389489175,), (1389489176,), (1389489179,), (1389489183,), (1389489189,), (1389489217,), (1389489219,), (1389489220,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14102025': {'nb_upload': 45, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27814899]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] map_info['map_portfolio_photo'] : {27814899: [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928, 1389488921, 1389488628, 1389488466, 1389488462, 1389488459, 1389488456, 1389488434, 1389488433, 1389488431, 1389488429, 1389488427, 1389488426, 1389488378, 1389488376, 1389488352, 1389488318, 1389488170, 1389488169, 1389487595, 1389487589, 1389487585, 1389487582, 1389487581, 1389487580, 1389487555, 1389487552, 1389487550, 1389487226, 1389487225, 1389487224]} final : True mtd_id 4302 list_pids : [1389489220, 1389489219, 1389489217, 1389489189, 1389489183, 1389489179, 1389489176, 1389489175, 1389489171, 1389489101, 1389489021, 1389488948, 1389488935, 1389488932, 1389488928] Looping around the photos to save general results len do output : 1 /27814899Didn'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, '3943259') ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259') ('4302', None, None, None, None, None, None, None, '3943259') ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '27814899', 'None', None, None, None, None, '3943259'), ('4302', '27814899', '1389489220', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489219', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489217', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489189', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489183', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489179', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489176', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489175', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489171', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489101', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389489021', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488948', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488935', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488932', None, None, None, None, None, '3943259'), ('4302', '27814899', '1389488928', None, None, None, None, None, '3943259')] time used for this insertion : 0.03760576248168945 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.625717401504517 time spend to save output : 0.03790926933288574 total time spend for step 5 : 13.663626670837402 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 (3943259) 2.26user 2.57system 0:26.90elapsed 18%CPU (0avgtext+0avgdata 161076maxresident)k 352inputs+13480outputs (1major+75023minor)pagefaults 0swaps