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 : 3709888 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 (4004817) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4004817) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220731 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4004817'] with mtr_portfolio_ids : ['28220731'] and first list_photo_ids : [] new path : /proc/3709888/ Name: python3 Umask: 0002 State: R (running) Tgid: 3709888 Ngid: 0 Pid: 3709888 PPid: 3709887 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3709888 NSpid: 3709888 NSpgid: 3708479 NSsid: 3708479 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98104 kB VmRSS: 98104 kB RssAnon: 59904 kB RssFile: 38200 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 42 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3709888', 'Ngid': '0', 'Pid': '3709888', 'PPid': '3709887', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3709888', 'NSpid': '3709888', 'NSpgid': '3708479', 'NSsid': '3708479', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98104 kB', 'VmRSS': '98104 kB', 'RssAnon': '59904 kB', 'RssFile': '38200 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '42', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3709888', '1106908', '0', '1106884', '865636', '98104', b'', 'marlene', '4004817') 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 (28220731) 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 (4004817 ) ) 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 (28220731) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392795183, 'portfolio_id': 28220731}, {'photo_id': 1392795147, 'portfolio_id': 28220731}, {'photo_id': 1392795133, 'portfolio_id': 28220731}, {'photo_id': 1392795059, 'portfolio_id': 28220731}, {'photo_id': 1392795057, 'portfolio_id': 28220731}, {'photo_id': 1392795056, 'portfolio_id': 28220731}, {'photo_id': 1392795047, 'portfolio_id': 28220731}, {'photo_id': 1392795031, 'portfolio_id': 28220731}, {'photo_id': 1392794996, 'portfolio_id': 28220731}, {'photo_id': 1392794991, 'portfolio_id': 28220731}, {'photo_id': 1392794986, 'portfolio_id': 28220731}, {'photo_id': 1392794983, 'portfolio_id': 28220731}, {'photo_id': 1392794980, 'portfolio_id': 28220731}, {'photo_id': 1392794976, 'portfolio_id': 28220731}, {'photo_id': 1392794889, 'portfolio_id': 28220731}, {'photo_id': 1392794887, 'portfolio_id': 28220731}, {'photo_id': 1392794699, 'portfolio_id': 28220731}, {'photo_id': 1392794697, 'portfolio_id': 28220731}, {'photo_id': 1392794696, 'portfolio_id': 28220731}, {'photo_id': 1392794692, 'portfolio_id': 28220731}, {'photo_id': 1392794652, 'portfolio_id': 28220731}, {'photo_id': 1392794649, 'portfolio_id': 28220731}, {'photo_id': 1392794642, 'portfolio_id': 28220731}, {'photo_id': 1392794602, 'portfolio_id': 28220731}, {'photo_id': 1392794600, 'portfolio_id': 28220731}, {'photo_id': 1392794598, 'portfolio_id': 28220731}, {'photo_id': 1392794597, 'portfolio_id': 28220731}, {'photo_id': 1392794596, 'portfolio_id': 28220731}, {'photo_id': 1392794516, 'portfolio_id': 28220731}, {'photo_id': 1392794511, 'portfolio_id': 28220731}, {'photo_id': 1392794506, 'portfolio_id': 28220731}, {'photo_id': 1392794417, 'portfolio_id': 28220731}, {'photo_id': 1392794416, 'portfolio_id': 28220731}, {'photo_id': 1392794407, 'portfolio_id': 28220731}, {'photo_id': 1392794331, 'portfolio_id': 28220731}, {'photo_id': 1392794303, 'portfolio_id': 28220731}, {'photo_id': 1392794296, 'portfolio_id': 28220731}, {'photo_id': 1392793953, 'portfolio_id': 28220731}, {'photo_id': 1392793936, 'portfolio_id': 28220731}, {'photo_id': 1392793783, 'portfolio_id': 28220731}, {'photo_id': 1392793744, 'portfolio_id': 28220731}, {'photo_id': 1392793712, 'portfolio_id': 28220731}, {'photo_id': 1392793679, 'portfolio_id': 28220731}, {'photo_id': 1392793646, 'portfolio_id': 28220731}, {'photo_id': 1392793179, 'portfolio_id': 28220731}, {'photo_id': 1392793140, 'portfolio_id': 28220731}] map_portfolio_id_photo_id: {28220731: [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976, 1392794889, 1392794887, 1392794699, 1392794697, 1392794696, 1392794692, 1392794652, 1392794649, 1392794642, 1392794602, 1392794600, 1392794598, 1392794597, 1392794596, 1392794516, 1392794511, 1392794506, 1392794417, 1392794416, 1392794407, 1392794331, 1392794303, 1392794296, 1392793953, 1392793936, 1392793783, 1392793744, 1392793712, 1392793679, 1392793646, 1392793179, 1392793140]} ##### 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.01623702049255371 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 5 18:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28220731) 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 : 28220731 get user id for portfolio 28220731 get sub ptf for main ptf 28220731, type 3726 and hashtags ['mal_croppe', 'Carton_brun', 'kraft', 'papier', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'Carton_gris', 'environnement', 'metal', 'flou', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28220731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','kraft','papier','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28220731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','kraft','papier','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28220731, 'sub_port_id': 28220738, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090623, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'flou': {'main_port_id': 28220731, 'sub_port_id': 28220739, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090624, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'mal_croppe': {'main_port_id': 28220731, 'sub_port_id': 28220740, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090625, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'Carton_gris': {'main_port_id': 28220731, 'sub_port_id': 28220741, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090626, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'autre_refus': {'main_port_id': 28220731, 'sub_port_id': 28220742, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090627, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'metal': {'main_port_id': 28220731, 'sub_port_id': 28220743, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090628, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'papier': {'main_port_id': 28220731, 'sub_port_id': 28220744, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090629, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'plastique': {'main_port_id': 28220731, 'sub_port_id': 28220745, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090630, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'Carton_brun': {'main_port_id': 28220731, 'sub_port_id': 28220746, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090631, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 28220731, 'sub_port_id': 28220747, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090632, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'cartonnette': {'main_port_id': 28220731, 'sub_port_id': 28220748, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090633, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}, 'environnement': {'main_port_id': 28220731, 'sub_port_id': 28220749, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090634, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220738 , 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=28220731 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 (28220738) result : ((1392794253,), (1392794444,), (1392794523,), (1392794524,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220739 , 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=28220731 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 (28220739) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220740 , 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=28220731 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 (28220740) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220741 , 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=28220731 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 (28220741) result : ((1392794245,), (1392794437,), (1392794438,), (1392794439,), (1392794473,), (1392794680,), (1392794681,), (1392794682,), (1392795101,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220742 , 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=28220731 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 (28220742) result : ((1392794435,), (1392794679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220743 , 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=28220731 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 (28220743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220744 , 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=28220731 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 (28220744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220745 , 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=28220731 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 (28220745) result : ((1392794442,), (1392794474,), (1392794569,), (1392794903,), (1392794904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220746 , 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=28220731 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 (28220746) result : ((1392794249,), (1392794250,), (1392794251,), (1392794441,), (1392794659,), (1392794660,), (1392794686,), (1392794687,), (1392794688,), (1392794689,), (1392795103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220747 , 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=28220731 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 (28220747) result : ((1392794470,), (1392794471,), (1392794676,), (1392794677,), (1392794900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220748 , 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=28220731 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 (28220748) result : ((1392794247,), (1392794248,), (1392794684,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28220749 , 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=28220731 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 (28220749) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28220731) result : ((1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) 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 (1392794600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28220731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','kraft','papier','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28220731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','kraft','papier','Teint_Dans_La_Masse','cartonnette','plastique','Carton_gris','environnement','metal','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28220731, 'sub_port_id': 28220750, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090635, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'flou': {'main_port_id': 28220731, 'sub_port_id': 28220751, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090636, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'mal_croppe': {'main_port_id': 28220731, 'sub_port_id': 28220752, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090637, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'Carton_gris': {'main_port_id': 28220731, 'sub_port_id': 28220753, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090638, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'autre_refus': {'main_port_id': 28220731, 'sub_port_id': 28220754, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090639, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'metal': {'main_port_id': 28220731, 'sub_port_id': 28220755, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090640, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'papier': {'main_port_id': 28220731, 'sub_port_id': 28220756, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090641, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'plastique': {'main_port_id': 28220731, 'sub_port_id': 28220757, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090642, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'Carton_brun': {'main_port_id': 28220731, 'sub_port_id': 28220758, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090643, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 28220731, 'sub_port_id': 28220759, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090644, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'cartonnette': {'main_port_id': 28220731, 'sub_port_id': 28220760, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090645, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}, 'environnement': {'main_port_id': 28220731, 'sub_port_id': 28220761, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19090646, 'last_updated_at': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 18, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 18, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28220761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28220749 lien utilise dans velours : https://marlene.fotonower.com/velours/28220750,28220751,28220752,28220753,28220754,28220755,28220756,28220757,28220758,28220759,28220760,28220761?tags=kraft,flou,mal_croppe,Carton_gris,autre_refus,metal,papier,plastique,Carton_brun,Teint_Dans_La_Masse,cartonnette,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28220731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] map_info['map_portfolio_photo'] : {28220731: [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976, 1392794889, 1392794887, 1392794699, 1392794697, 1392794696, 1392794692, 1392794652, 1392794649, 1392794642, 1392794602, 1392794600, 1392794598, 1392794597, 1392794596, 1392794516, 1392794511, 1392794506, 1392794417, 1392794416, 1392794407, 1392794331, 1392794303, 1392794296, 1392793953, 1392793936, 1392793783, 1392793744, 1392793712, 1392793679, 1392793646, 1392793179, 1392793140]} final : False mtd_id 4302 list_pids : [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] Looping around the photos to save general results len do output : 1 /28220731. 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, '4004817') ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817') 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', None, '28220731', "{'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749}", None, None, None, None, '4004817'), ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817')] time used for this insertion : 0.01973104476928711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4678349494934082 time spend to save output : 0.020069599151611328 total time spend for step 1 : 0.48790454864501953 step2:final Wed Nov 5 18:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (28220731) 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 28220731 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392793179,1392793140,1392793783,1392793744,1392793712,1392793679,1392793646,1392793953,1392793936,1392794331,1392794303,1392794296,1392794417,1392794416,1392794407,1392794516,1392794511,1392794506,1392794602,1392794600,1392794598,1392794597,1392794596,1392794652,1392794649,1392794642,1392794699,1392794697,1392794696,1392794692,1392794889,1392794887,1392794996,1392794991,1392794986,1392794983,1392794980,1392794976,1392795059,1392795057,1392795056,1392795047,1392795031,1392795183,1392795147,1392795133); 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([28220731]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} new output for save of step final : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] map_info['map_portfolio_photo'] : {28220731: [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976, 1392794889, 1392794887, 1392794699, 1392794697, 1392794696, 1392794692, 1392794652, 1392794649, 1392794642, 1392794602, 1392794600, 1392794598, 1392794597, 1392794596, 1392794516, 1392794511, 1392794506, 1392794417, 1392794416, 1392794407, 1392794331, 1392794303, 1392794296, 1392793953, 1392793936, 1392793783, 1392793744, 1392793712, 1392793679, 1392793646, 1392793179, 1392793140]} final : False mtd_id 4302 list_pids : [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] Looping around the photos to save general results len do output : 14 /1392795183.Didn't retrieve data . /1392795147.Didn't retrieve data . /1392795133.Didn't retrieve data . /1392795059.Didn't retrieve data . /1392795057.Didn't retrieve data . /1392795056.Didn't retrieve data . /1392795047.Didn't retrieve data . /1392795031.Didn't retrieve data . /1392794996.Didn't retrieve data . /1392794991.Didn't retrieve data . /1392794986.Didn't retrieve data . /1392794983.Didn't retrieve data . /1392794980.Didn't retrieve data . /1392794976.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, '4004817') ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '28220731', '1392795183', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795147', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795133', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795059', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795057', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795056', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795047', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392795031', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794996', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794991', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794986', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794983', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794980', '0.05183064362903692', None, None, None, None, '4004817'), ('4302', '28220731', '1392794976', '0.05183064362903692', None, None, None, None, '4004817')] time used for this insertion : 0.01446986198425293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06960177421569824 time spend to save output : 0.015110015869140625 total time spend for step 2 : 0.08471179008483887 step3:velours_tree Wed Nov 5 18:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {28220731: [{'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749}]} input_args_next_step : {28220731: ()} output_args : {28220731: [{'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749}]} args : 28220731 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 : ({'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28220731) 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([28220731]) 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.31127238273620605 time spend to save output : 5.698204040527344e-05 total time spend for step 3 : 0.31132936477661133 step4:send_mail_cod Wed Nov 5 18:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} input_args_next_step : {1392795183: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795183 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795147 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795133 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795059 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795057 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795056 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795047 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392795031 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794996 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794991 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794986 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794983 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794980 depend.output_id : 0 input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ()} output_args : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',)} args : 1392794976 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 : {28220731: [{'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749}]} input_args_next_step : {1392795183: ('0.05183064362903692',), 1392795147: ('0.05183064362903692',), 1392795133: ('0.05183064362903692',), 1392795059: ('0.05183064362903692',), 1392795057: ('0.05183064362903692',), 1392795056: ('0.05183064362903692',), 1392795047: ('0.05183064362903692',), 1392795031: ('0.05183064362903692',), 1392794996: ('0.05183064362903692',), 1392794991: ('0.05183064362903692',), 1392794986: ('0.05183064362903692',), 1392794983: ('0.05183064362903692',), 1392794980: ('0.05183064362903692',), 1392794976: ('0.05183064362903692',), 28220731: ()} output_args : {28220731: [{'kraft': 28220738, 'flou': 28220739, 'mal_croppe': 28220740, 'Carton_gris': 28220741, 'autre_refus': 28220742, 'metal': 28220743, 'papier': 28220744, 'plastique': 28220745, 'Carton_brun': 28220746, 'Teint_Dans_La_Masse': 28220747, 'cartonnette': 28220748, 'environnement': 28220749}]} args : 28220731 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 :15, first value : ('0.05183064362903692',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28220731) 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 (1392795183,1392795147,1392795133,1392795059,1392795057,1392795056,1392795047,1392795031,1392794996,1392794991,1392794986,1392794983,1392794980,1392794976) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392794976 begin to download photo : 1392794986 begin to download photo : 1392795031 begin to download photo : 1392795057 begin to download photo : 1392795147 download finish for photo 1392794986 begin to download photo : 1392794991 download finish for photo 1392795057 begin to download photo : 1392795059 download finish for photo 1392795147 begin to download photo : 1392795183 download finish for photo 1392794976 begin to download photo : 1392794980 download finish for photo 1392795183 download finish for photo 1392795059 begin to download photo : 1392795133 download finish for photo 1392794991 begin to download photo : 1392794996 download finish for photo 1392795031 begin to download photo : 1392795047 download finish for photo 1392794980 begin to download photo : 1392794983 download finish for photo 1392794996 download finish for photo 1392795133 download finish for photo 1392795047 begin to download photo : 1392795056 download finish for photo 1392794983 download finish for photo 1392795056 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P28220731_05-11-2025_18_14_58.pdf 28220738 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=28220738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794253: '1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252452_0.png', 1392794444: '1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252736_0.png', 1392794523: '1762362425_3240351_1392793953_fbdc442302b1d8b3ced94a6fa6627b1d_rle_crop_4022255638_0.png', 1392794524: '1762362425_3240351_1392793953_fbdc442302b1d8b3ced94a6fa6627b1d_rle_crop_4022255639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/86e064a39c657a281ad5103b511adeee_27473196.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/77c438937992cec4d0d7a589efb6cb52_94602167.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9d326d46e271ecfc9e07a810fdd5a716_45778532.png change filename to text .imagette282207381762362898/ imagette282207381762362898/1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252452_0.png.png imagette282207381762362898/1762362425_3240351_1392793953_fbdc442302b1d8b3ced94a6fa6627b1d_rle_crop_4022255639_0.png.png imagette282207381762362898/1762362425_3240351_1392793953_fbdc442302b1d8b3ced94a6fa6627b1d_rle_crop_4022255638_0.png.png imagette282207381762362898/1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252736_0.png.png imagette282207391762362898/ imagette282207401762362898/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/7059237d4e4dbb83c8e197c0ac12c0b0_17618996.png imagette282207381762362898 28220739 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=28220739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282207391762362898 28220740 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=28220740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282207401762362898 28220742 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=28220742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794435: '1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252714_0.png', 1392794679: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258278_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4019b54b1a0d64e5e3d25088056708b3_16450787.png change filename to text .imagette282207421762362898/ imagette282207421762362898/1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252714_0.png.png imagette282207421762362898/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258278_0.png.png imagette282207431762362898/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9b48568399da5b1504d0c3a8407ec1eb_46188624.png imagette282207421762362898 28220743 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=28220743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282207431762362898 28220745 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=28220745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794442: '1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252723_0.png', 1392794474: '1762362326_3234479_1392794296_10743a2412c247eaaa62cdd7246f5971_rle_crop_4022252796_0.png', 1392794569: '1762362444_3241080_1392794407_646f045ed8697a1f9c43cc9fed350dfb_rle_crop_4022256239_0.png', 1392794903: '1762362667_3253239_1392794649_f7d82c1c3b482f594108f39760f76328_rle_crop_4022260488_0.png', 1392794904: '1762362667_3253239_1392794642_9c189709f2fafb888098f810524b8ad9_rle_crop_4022260509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/ad29e9cda8fe7d7a925576d5d8d55071_17968938.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/bb79f6af2483645b40f01a40bd0a25b5_80677312.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a1b7d679132e326bb18ad39a8ee055af_15111212.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8e8292630c170baa97e986d0abe9592a_50415459.png change filename to text .imagette282207451762362898/ imagette282207451762362898/1762362326_3234479_1392794296_10743a2412c247eaaa62cdd7246f5971_rle_crop_4022252796_0.png.png imagette282207451762362898/1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252723_0.png.png imagette282207451762362898/1762362667_3253239_1392794642_9c189709f2fafb888098f810524b8ad9_rle_crop_4022260509_0.png.png imagette282207451762362898/1762362444_3241080_1392794407_646f045ed8697a1f9c43cc9fed350dfb_rle_crop_4022256239_0.png.png imagette282207451762362898/1762362667_3253239_1392794649_f7d82c1c3b482f594108f39760f76328_rle_crop_4022260488_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f6fd6577d4861168522543c57ae19e8c_10741816.png imagette282207451762362898 28220748 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=28220748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794247: '1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252431_0.png', 1392794248: '1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252436_0.png', 1392794684: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258281_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3c4a0ff73bfd0ff86086b1a4b8efb14d_31657450.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/490f825ad0f8c5c8ec6b4b244b7e4bcc_1264139.png change filename to text .imagette282207481762362899/ imagette282207481762362899/1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252431_0.png.png imagette282207481762362899/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258281_0.png.png imagette282207481762362899/1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252436_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/5bd1cd991b138d1e8ca970fe02658e7f_53885109.png imagette282207481762362899 28220741 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=28220741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794245: '1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252453_0.png', 1392794437: '1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252715_0.png', 1392794438: '1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252734_0.png', 1392794439: '1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252735_0.png', 1392794473: '1762362326_3234479_1392794303_8a32d88684fbddcfa775af815cc19391_rle_crop_4022252787_0.png', 1392794680: '1762362566_3246751_1392794600_0e5b856f3512689fc100dda7898674a4_rle_crop_4022258271_0.png', 1392794681: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258280_0.png', 1392794682: '1762362566_3246751_1392794596_842aaa40855d75f42c28003ef9e6f074_rle_crop_4022258305_0.png', 1392795101: '1762362785_3260886_1392794506_58bf776023443be1b9603d21389444c8_rle_crop_4022262312_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2cf61356a7fbed3845e11c363d17f77d_3152185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2a4aaf61646e51ed100902e4b78be8a1_49689913.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/91bfaaa543f985ae41d6a569d45840ba_16369854.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6dd05dbf2dba1c30b09c77b09f81c8ec_57595219.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f6340755d7b491e860b565feaad31e59_16835806.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0826eb88ed98cfce3107724a5731c9ca_62192493.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/62ab8e614eff067fc492d7365cd69718_9531469.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/49b6819e9931b58b55db8392dc333749_60919728.png change filename to text .imagette282207411762362899/ imagette282207411762362899/1762362566_3246751_1392794600_0e5b856f3512689fc100dda7898674a4_rle_crop_4022258271_0.png.png imagette282207411762362899/1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252735_0.png.png imagette282207411762362899/1762362306_3234096_1392793936_800fad0d1d1e3a20992e8fe1c48f4119_rle_crop_4022252734_0.png.png imagette282207411762362899/1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252453_0.png.png imagette282207411762362899/1762362785_3260886_1392794506_58bf776023443be1b9603d21389444c8_rle_crop_4022262312_0.png.png imagette282207411762362899/1762362566_3246751_1392794596_842aaa40855d75f42c28003ef9e6f074_rle_crop_4022258305_0.png.png imagette282207411762362899/1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252715_0.png.png imagette282207411762362899/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258280_0.png.png imagette282207411762362899/1762362326_3234479_1392794303_8a32d88684fbddcfa775af815cc19391_rle_crop_4022252787_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/fd1f4ad125d84142ba444c3b81e4aae1_33015.png imagette282207411762362899 28220746 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=28220746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794249: '1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252443_0.png', 1392794250: '1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252455_0.png', 1392794251: '1762362207_3227575_1392793679_65896d99b481e3e667ef356264386f8b_rle_crop_4022252475_0.png', 1392794441: '1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252721_0.png', 1392794659: '1762362545_3246383_1392793783_89e6337a55035000efc6ca1b4844b893_rle_crop_4022258100_0.png', 1392794660: '1762362545_3246383_1392793783_89e6337a55035000efc6ca1b4844b893_rle_crop_4022258096_0.png', 1392794686: '1762362566_3246751_1392794600_0e5b856f3512689fc100dda7898674a4_rle_crop_4022258269_0.png', 1392794687: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258283_0.png', 1392794688: '1762362566_3246751_1392794597_69724826b0d16fd6bbbc498100a25b45_rle_crop_4022258294_0.png', 1392794689: '1762362566_3246751_1392794596_842aaa40855d75f42c28003ef9e6f074_rle_crop_4022258307_0.png', 1392795103: '1762362785_3260886_1392794602_c72f76e867df333543df8696de4d8de9_rle_crop_4022262244_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/002635f803bf937b86cffcc86f299500_74344989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/80537b65994b56e9aa4c535e5ccbc93c_87266140.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9ed64aa1a430c955beb811b7074ed450_35834207.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/36866b10d9b3e4759f54c28293f16a09_93648000.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1335048e7df9a45ff6c9a4181b047042_77347187.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/73e7e722dc19d19d35f1bfe3ed7b2ca0_2492941.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/80b10ab66d917f3b5f98584eb85706e1_71185495.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/ca28db902effa9f1d80a361258118569_30601229.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f26344fbad35a906781c93b719004c88_82596041.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/708469f179231952a75988bab77aa595_67370455.png change filename to text .imagette282207461762362900/ imagette282207461762362900/1762362785_3260886_1392794602_c72f76e867df333543df8696de4d8de9_rle_crop_4022262244_0.png.png imagette282207461762362900/1762362566_3246751_1392794596_842aaa40855d75f42c28003ef9e6f074_rle_crop_4022258307_0.png.png imagette282207461762362900/1762362566_3246751_1392794597_69724826b0d16fd6bbbc498100a25b45_rle_crop_4022258294_0.png.png imagette282207461762362900/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258283_0.png.png imagette282207461762362900/1762362545_3246383_1392793783_89e6337a55035000efc6ca1b4844b893_rle_crop_4022258096_0.png.png imagette282207461762362900/1762362207_3227575_1392793679_65896d99b481e3e667ef356264386f8b_rle_crop_4022252475_0.png.png imagette282207461762362900/1762362207_3227575_1392793712_48d744b95cd427f0297a419dac6656eb_rle_crop_4022252455_0.png.png imagette282207461762362900/1762362306_3234096_1392794331_5180ec2eabd9f4e25561ceaf624ea45e_rle_crop_4022252721_0.png.png imagette282207461762362900/1762362566_3246751_1392794600_0e5b856f3512689fc100dda7898674a4_rle_crop_4022258269_0.png.png imagette282207461762362900/1762362207_3227575_1392793744_398a53433a6b91bc72259241ec7f5369_rle_crop_4022252443_0.png.png imagette282207461762362900/1762362545_3246383_1392793783_89e6337a55035000efc6ca1b4844b893_rle_crop_4022258100_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9b8662c5e55237262a281afd8635508d_24165497.png imagette282207461762362900 28220747 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=28220747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392794470: '1762362326_3234479_1392794303_8a32d88684fbddcfa775af815cc19391_rle_crop_4022252792_0.png', 1392794471: '1762362326_3234479_1392794296_10743a2412c247eaaa62cdd7246f5971_rle_crop_4022252800_0.png', 1392794676: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258287_0.png', 1392794677: '1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258284_0.png', 1392794900: '1762362667_3253239_1392794699_de97c4afc07b8cada1f50ea0c54858e8_rle_crop_4022260467_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/12f91a6d76df839330a036b77ac59ceb_68922123.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/15c6dc89c04c8d7b3eb4c4c627a05920_70193030.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f208606cd3d4d21858f5cae677df8814_24199483.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e6e48c4478b96d7b163ebe4fbf8716b9_3166436.png change filename to text .imagette282207471762362900/ imagette282207471762362900/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258287_0.png.png imagette282207471762362900/1762362566_3246751_1392794598_d0bf7d6d47f165e9b437cdd1f1f7bfef_rle_crop_4022258284_0.png.png imagette282207471762362900/1762362667_3253239_1392794699_de97c4afc07b8cada1f50ea0c54858e8_rle_crop_4022260467_0.png.png imagette282207471762362900/1762362326_3234479_1392794296_10743a2412c247eaaa62cdd7246f5971_rle_crop_4022252800_0.png.png imagette282207471762362900/1762362326_3234479_1392794303_8a32d88684fbddcfa775af815cc19391_rle_crop_4022252792_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9fff7d8968927281815533865466b3d4_29086221.png imagette282207471762362900 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28220731 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28220750,28220751,28220752,28220753,28220754,28220755,28220756,28220757,28220758,28220759,28220760,28220761?tags=kraft,flou,mal_croppe,Carton_gris,autre_refus,metal,papier,plastique,Carton_brun,Teint_Dans_La_Masse,cartonnette,environnement your option no_mail is active, we will not send the real mail to your client args[1392795183] : ('0.05183064362903692',) no score found for photo 1392795183 We are sending mail with results at report@fotonower.com args[1392795147] : ('0.05183064362903692',) no score found for photo 1392795147 We are sending mail with results at report@fotonower.com args[1392795133] : ('0.05183064362903692',) no score found for photo 1392795133 We are sending mail with results at report@fotonower.com args[1392795059] : ('0.05183064362903692',) no score found for photo 1392795059 We are sending mail with results at report@fotonower.com args[1392795057] : ('0.05183064362903692',) no score found for photo 1392795057 We are sending mail with results at report@fotonower.com args[1392795056] : ('0.05183064362903692',) no score found for photo 1392795056 We are sending mail with results at report@fotonower.com args[1392795047] : ('0.05183064362903692',) no score found for photo 1392795047 We are sending mail with results at report@fotonower.com args[1392795031] : ('0.05183064362903692',) no score found for photo 1392795031 We are sending mail with results at report@fotonower.com args[1392794996] : ('0.05183064362903692',) no score found for photo 1392794996 We are sending mail with results at report@fotonower.com args[1392794991] : ('0.05183064362903692',) no score found for photo 1392794991 We are sending mail with results at report@fotonower.com args[1392794986] : ('0.05183064362903692',) no score found for photo 1392794986 We are sending mail with results at report@fotonower.com args[1392794983] : ('0.05183064362903692',) no score found for photo 1392794983 We are sending mail with results at report@fotonower.com args[1392794980] : ('0.05183064362903692',) no score found for photo 1392794980 We are sending mail with results at report@fotonower.com args[1392794976] : ('0.05183064362903692',) no score found for photo 1392794976 We are sending mail with results at report@fotonower.com refus_total : 0.05183064362903692 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=28220731 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_P28220731_05-11-2025_18_14_58.pdf results_Auto_P28220731_05-11-2025_18_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_14_58.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','28220731','results_Auto_P28220731_05-11-2025_18_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_14_58.pdf','pdf','','0.25','0.05183064362903692') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28220731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] map_info['map_portfolio_photo'] : {28220731: [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976, 1392794889, 1392794887, 1392794699, 1392794697, 1392794696, 1392794692, 1392794652, 1392794649, 1392794642, 1392794602, 1392794600, 1392794598, 1392794597, 1392794596, 1392794516, 1392794511, 1392794506, 1392794417, 1392794416, 1392794407, 1392794331, 1392794303, 1392794296, 1392793953, 1392793936, 1392793783, 1392793744, 1392793712, 1392793679, 1392793646, 1392793179, 1392793140]} final : False mtd_id 4302 list_pids : [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] 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, '4004817') ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '28220731', '1392795183', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817')] time used for this insertion : 0.014691829681396484 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.796398639678955 time spend to save output : 0.0149993896484375 total time spend for step 4 : 4.811398029327393 step5:split_time_score Wed Nov 5 18:15:02 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 : ['28220731'] 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 : [('28220731',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28220731) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392795147: {'path': 'temp/1762362897_3709888_1392795147_0f7ccf27a3ed0a93ed445c7c784e060c.jpg', 'extension': 'jpg'}, 1392795183: {'path': 'temp/1762362897_3709888_1392795183_684341af8414c1d557e95bc8f708ffea.jpg', 'extension': 'jpg'}, 1392794986: {'path': 'temp/1762362897_3709888_1392794986_e6c6bc189a032f882060f4b50005c6b7.jpg', 'extension': 'jpg'}, 1392794991: {'path': 'temp/1762362897_3709888_1392794991_b84e924af37a5c3d9bc9212af8ba86f5.jpg', 'extension': 'jpg'}, 1392794996: {'path': 'temp/1762362897_3709888_1392794996_88069d0f6711f0a2bd09c10917740836.jpg', 'extension': 'jpg'}, 1392795057: {'path': 'temp/1762362897_3709888_1392795057_cefcb5a9d8e933f4a522f56fb762c7cf.jpg', 'extension': 'jpg'}, 1392795059: {'path': 'temp/1762362897_3709888_1392795059_1fcffd5efcf8e1864c4eb5cb073d69a7.jpg', 'extension': 'jpg'}, 1392795133: {'path': 'temp/1762362897_3709888_1392795133_5a8edf6c5e3405394dfbf985e51e6d83.jpg', 'extension': 'jpg'}, 1392794976: {'path': 'temp/1762362897_3709888_1392794976_6f1a72b0c04cd8eab2886f9aac900c80.jpg', 'extension': 'jpg'}, 1392794980: {'path': 'temp/1762362897_3709888_1392794980_d9a776056da2dfe976798e97c584a1fc.jpg', 'extension': 'jpg'}, 1392794983: {'path': 'temp/1762362897_3709888_1392794983_cbbab0885ea9f2434b21a99c4823ab55.jpg', 'extension': 'jpg'}, 1392795031: {'path': 'temp/1762362897_3709888_1392795031_57d7a6f5265c9971275e2ad0d9719888.jpg', 'extension': 'jpg'}, 1392795047: {'path': 'temp/1762362897_3709888_1392795047_128900c6035457152b20b25d05744d18.jpg', 'extension': 'jpg'}, 1392795056: {'path': 'temp/1762362897_3709888_1392795056_0357b787dc9bbb4c7e3d2fa0a6b46e50.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 = 28220731; (('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 = 28220731 group by h (('18', 46),) 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=28220731 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 (28220731) 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 (28220731) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05112025 28220731 Nombre de photos uploadées : 46 / 23040 (0%) 05112025 28220731 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 05112025 28220731 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1392793179, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6464f8119a5f5c396da68613a29e2490.jpg', 'username': None, 'uploaded_at': 1762362067, 'text': 'image_05112025_18_00_33_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392793140, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/ef6492b6f243a2be8086893c9f46d504.jpg', 'username': None, 'uploaded_at': 1762362067, 'text': 'image_05112025_18_00_43_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392793783, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/89e6337a55035000efc6ca1b4844b893.jpg', 'username': None, 'uploaded_at': 1762362127, 'text': 'image_05112025_18_00_53_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392793744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/398a53433a6b91bc72259241ec7f5369.jpg', 'username': None, 'uploaded_at': 1762362127, 'text': 'image_05112025_18_01_03_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002031087875366211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28220731, '2025-11-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2512508,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2103419303894043 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2512508 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28186038, 'dashboard_result_id': 16858224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28186394, 'dashboard_result_id': 16858225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28187294, 'dashboard_result_id': 16858226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28188183, 'dashboard_result_id': 16858227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28189317, 'dashboard_result_id': 16858228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28189664, 'dashboard_result_id': 16858229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28189717, 'dashboard_result_id': 16858230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28190150, 'dashboard_result_id': 16858231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28190820, 'dashboard_result_id': 16858232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28191207, 'dashboard_result_id': 16858233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28191692, 'dashboard_result_id': 16858234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28192332, 'dashboard_result_id': 16858235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28193155, 'dashboard_result_id': 16858236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28193965, 'dashboard_result_id': 16858237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28194584, 'dashboard_result_id': 16858238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28195092, 'dashboard_result_id': 16858239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28195794, 'dashboard_result_id': 16858240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28196359, 'dashboard_result_id': 16858242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28197077, 'dashboard_result_id': 16858244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28199380, 'dashboard_result_id': 16858245, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28200141, 'dashboard_result_id': 16858247, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28200911, 'dashboard_result_id': 16858248, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28201755, 'dashboard_result_id': 16858249, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28202496, 'dashboard_result_id': 16858250, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28203318, 'dashboard_result_id': 16858251, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28204048, 'dashboard_result_id': 16858252, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28204978, 'dashboard_result_id': 16858253, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28205788, 'dashboard_result_id': 16858254, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28206586, 'dashboard_result_id': 16858255, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28207204, 'dashboard_result_id': 16858256, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28209787, 'dashboard_result_id': 16858257, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28210210, 'dashboard_result_id': 16858258, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28210637, 'dashboard_result_id': 16858259, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28211264, 'dashboard_result_id': 16858260, '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_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28211794, 'dashboard_result_id': 16858261, '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_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28212443, 'dashboard_result_id': 16858262, '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_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28212998, 'dashboard_result_id': 16858263, '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_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28213738, 'dashboard_result_id': 16858264, '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_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28214278, 'dashboard_result_id': 16858265, '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_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28214922, 'dashboard_result_id': 16858266, '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_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28215549, 'dashboard_result_id': 16858267, '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_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28216421, 'dashboard_result_id': 16858268, '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_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28216994, 'dashboard_result_id': 16858269, '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_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28217620, 'dashboard_result_id': 16858270, '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_P28217620_05-11-2025_16_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28218375, 'dashboard_result_id': 16858271, '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_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28219362, 'dashboard_result_id': 16858272, '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_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28220262, 'dashboard_result_id': 16858273, '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_P28220262_05-11-2025_17_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220281, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526449, 'mtr_portfolio_id': 28220731, 'dashboard_result_id': 16858274, '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_P28220731_05-11-2025_18_12_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28186038 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4000969, 'mtr_portfolio_id': 28186038, 'created_at': datetime.datetime(2025, 11, 5, 6, 14, 30), 'result': '0.10490548635916874', 'result_long': None, 'result_double': None}] Qualite : 0.10490548635916874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186038 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}" where mtr_portfolio_id = 28186038 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28186038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858224, 0.10490548635916874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28186394 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4000970, 'mtr_portfolio_id': 28186394, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 29), 'result': '0.05826149300923193', 'result_long': None, 'result_double': None}] Qualite : 0.05826149300923193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186394 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}" where mtr_portfolio_id = 28186394 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28186394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858225, 0.05826149300923193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28187294 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4000971, 'mtr_portfolio_id': 28187294, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 59), 'result': '0.0931771878060378', 'result_long': None, 'result_double': None}] Qualite : 0.0931771878060378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28187294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28187294 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}" where mtr_portfolio_id = 28187294 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28187294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858226, 0.0931771878060378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28188183 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4000972, 'mtr_portfolio_id': 28188183, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 11), 'result': '0.05647843102246723', 'result_long': None, 'result_double': None}] Qualite : 0.05647843102246723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28188183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28188183 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}" where mtr_portfolio_id = 28188183 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28188183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858227, 0.05647843102246723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4000974, 'mtr_portfolio_id': 28189317, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 28), 'result': '0.05720052889085852', 'result_long': None, 'result_double': None}] Qualite : 0.05720052889085852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}" where mtr_portfolio_id = 28189317 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28189317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858228, 0.05720052889085852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28189664 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189664 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}" where mtr_portfolio_id = 28189664 and dashboard_run_id = 2526449 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189717 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001040, 'mtr_portfolio_id': 28189717, 'created_at': datetime.datetime(2025, 11, 5, 6, 3, 29), 'result': '0.054422044536203015', 'result_long': None, 'result_double': None}] Qualite : 0.054422044536203015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189717 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}" where mtr_portfolio_id = 28189717 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28189717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858230, 0.054422044536203015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28190150 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001101, 'mtr_portfolio_id': 28190150, 'created_at': datetime.datetime(2025, 11, 5, 6, 18, 59), 'result': '0.04157195791823398', 'result_long': None, 'result_double': None}] Qualite : 0.04157195791823398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190150 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}" where mtr_portfolio_id = 28190150 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28190150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858231, 0.04157195791823398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28190820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001155, 'mtr_portfolio_id': 28190820, 'created_at': datetime.datetime(2025, 11, 5, 6, 33, 32), 'result': '0.04567810037376079', 'result_long': None, 'result_double': None}] Qualite : 0.04567810037376079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}" where mtr_portfolio_id = 28190820 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28190820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858232, 0.04567810037376079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28191207 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001208, 'mtr_portfolio_id': 28191207, 'created_at': datetime.datetime(2025, 11, 5, 6, 46, 58), 'result': '0.042140180101018006', 'result_long': None, 'result_double': None}] Qualite : 0.042140180101018006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191207 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}" where mtr_portfolio_id = 28191207 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28191207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858233, 0.042140180101018006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28191692 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001271, 'mtr_portfolio_id': 28191692, 'created_at': datetime.datetime(2025, 11, 5, 7, 3, 28), 'result': '0.040699860032621174', 'result_long': None, 'result_double': None}] Qualite : 0.040699860032621174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191692 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}" where mtr_portfolio_id = 28191692 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28191692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858234, 0.040699860032621174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28192332 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001368, 'mtr_portfolio_id': 28192332, 'created_at': datetime.datetime(2025, 11, 5, 7, 18, 33), 'result': '0.04510552243820985', 'result_long': None, 'result_double': None}] Qualite : 0.04510552243820985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28192332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28192332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}" where mtr_portfolio_id = 28192332 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28192332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858235, 0.04510552243820985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28193155 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001469, 'mtr_portfolio_id': 28193155, 'created_at': datetime.datetime(2025, 11, 5, 7, 35, 30), 'result': '0.035344376976183166', 'result_long': None, 'result_double': None}] Qualite : 0.035344376976183166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193155 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}" where mtr_portfolio_id = 28193155 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28193155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858236, 0.035344376976183166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28193965 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001542, 'mtr_portfolio_id': 28193965, 'created_at': datetime.datetime(2025, 11, 5, 7, 51, 28), 'result': '0.03492442550408627', 'result_long': None, 'result_double': None}] Qualite : 0.03492442550408627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193965 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}" where mtr_portfolio_id = 28193965 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28193965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858237, 0.03492442550408627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28194584 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001615, 'mtr_portfolio_id': 28194584, 'created_at': datetime.datetime(2025, 11, 5, 8, 4, 31), 'result': '0.06689196525731245', 'result_long': None, 'result_double': None}] Qualite : 0.06689196525731245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28194584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28194584 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}" where mtr_portfolio_id = 28194584 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28194584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858238, 0.06689196525731245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28195092 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001698, 'mtr_portfolio_id': 28195092, 'created_at': datetime.datetime(2025, 11, 5, 8, 19, 59), 'result': '0.060181082762552726', 'result_long': None, 'result_double': None}] Qualite : 0.060181082762552726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195092 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}" where mtr_portfolio_id = 28195092 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28195092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858239, 0.060181082762552726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28195794 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001779, 'mtr_portfolio_id': 28195794, 'created_at': datetime.datetime(2025, 11, 5, 8, 32, 57), 'result': '0.06818243271873463', 'result_long': None, 'result_double': None}] Qualite : 0.06818243271873463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195794 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}" where mtr_portfolio_id = 28195794 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28195794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858240, 0.06818243271873463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28196359 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001848, 'mtr_portfolio_id': 28196359, 'created_at': datetime.datetime(2025, 11, 5, 8, 47), 'result': '0.04766140661514155', 'result_long': None, 'result_double': None}] Qualite : 0.04766140661514155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28196359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28196359 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}" where mtr_portfolio_id = 28196359 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28196359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858242, 0.04766140661514155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28197077 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4001928, 'mtr_portfolio_id': 28197077, 'created_at': datetime.datetime(2025, 11, 5, 9, 33), 'result': '0.04900076404033409', 'result_long': None, 'result_double': None}] Qualite : 0.04900076404033409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28197077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28197077 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}" where mtr_portfolio_id = 28197077 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28197077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858244, 0.04900076404033409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28199380 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002230, 'mtr_portfolio_id': 28199380, 'created_at': datetime.datetime(2025, 11, 5, 9, 46, 58), 'result': '0.06389193113328451', 'result_long': None, 'result_double': None}] Qualite : 0.06389193113328451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28199380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28199380 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}" where mtr_portfolio_id = 28199380 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28199380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858245, 0.06389193113328451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28200141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002290, 'mtr_portfolio_id': 28200141, 'created_at': datetime.datetime(2025, 11, 5, 10, 2, 59), 'result': '0.047759217419174355', 'result_long': None, 'result_double': None}] Qualite : 0.047759217419174355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}" where mtr_portfolio_id = 28200141 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28200141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858247, 0.047759217419174355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28200911 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002365, 'mtr_portfolio_id': 28200911, 'created_at': datetime.datetime(2025, 11, 5, 10, 17, 31), 'result': '0.07736636406923199', 'result_long': None, 'result_double': None}] Qualite : 0.07736636406923199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200911 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}" where mtr_portfolio_id = 28200911 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28200911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858248, 0.07736636406923199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28201755 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002455, 'mtr_portfolio_id': 28201755, 'created_at': datetime.datetime(2025, 11, 5, 10, 34, 59), 'result': '0.06977429419581858', 'result_long': None, 'result_double': None}] Qualite : 0.06977429419581858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28201755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28201755 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}" where mtr_portfolio_id = 28201755 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28201755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858249, 0.06977429419581858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28202496 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002545, 'mtr_portfolio_id': 28202496, 'created_at': datetime.datetime(2025, 11, 5, 10, 46, 57), 'result': '0.06273645055601144', 'result_long': None, 'result_double': None}] Qualite : 0.06273645055601144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28202496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28202496 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}" where mtr_portfolio_id = 28202496 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28202496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858250, 0.06273645055601144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28203318 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002649, 'mtr_portfolio_id': 28203318, 'created_at': datetime.datetime(2025, 11, 5, 11, 2, 57), 'result': '0.06200466522443431', 'result_long': None, 'result_double': None}] Qualite : 0.06200466522443431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28203318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28203318 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}" where mtr_portfolio_id = 28203318 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28203318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858251, 0.06200466522443431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28204048 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002744, 'mtr_portfolio_id': 28204048, 'created_at': datetime.datetime(2025, 11, 5, 11, 18, 58), 'result': '0.055167291575319986', 'result_long': None, 'result_double': None}] Qualite : 0.055167291575319986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204048 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}" where mtr_portfolio_id = 28204048 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28204048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858252, 0.055167291575319986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28204978 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002860, 'mtr_portfolio_id': 28204978, 'created_at': datetime.datetime(2025, 11, 5, 11, 33, 31), 'result': '0.05608669758419398', 'result_long': None, 'result_double': None}] Qualite : 0.05608669758419398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204978 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}" where mtr_portfolio_id = 28204978 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28204978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858253, 0.05608669758419398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28205788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4002950, 'mtr_portfolio_id': 28205788, 'created_at': datetime.datetime(2025, 11, 5, 11, 46, 59), 'result': '0.05978757272622658', 'result_long': None, 'result_double': None}] Qualite : 0.05978757272622658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28205788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28205788 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}" where mtr_portfolio_id = 28205788 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28205788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858254, 0.05978757272622658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28206586 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4003046, 'mtr_portfolio_id': 28206586, 'created_at': datetime.datetime(2025, 11, 5, 12, 2, 57), 'result': '0.06556309268297209', 'result_long': None, 'result_double': None}] Qualite : 0.06556309268297209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28206586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28206586 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}" where mtr_portfolio_id = 28206586 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28206586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858255, 0.06556309268297209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28207204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4003140, 'mtr_portfolio_id': 28207204, 'created_at': datetime.datetime(2025, 11, 5, 14, 1, 7), 'result': '0.05999779201294223', 'result_long': None, 'result_double': None}] Qualite : 0.05999779201294223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28207204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28207204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}" where mtr_portfolio_id = 28207204 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28207204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858256, 0.05999779201294223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28209787 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4003408, 'mtr_portfolio_id': 28209787, 'created_at': datetime.datetime(2025, 11, 5, 13, 48, 57), 'result': '0.04388339640451604', 'result_long': None, 'result_double': None}] Qualite : 0.04388339640451604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28209787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28209787 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}" where mtr_portfolio_id = 28209787 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28209787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858257, 0.04388339640451604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28210210 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4003444, 'mtr_portfolio_id': 28210210, 'created_at': datetime.datetime(2025, 11, 5, 14, 2, 57), 'result': '0.039891574117670414', 'result_long': None, 'result_double': None}] Qualite : 0.039891574117670414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210210 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}" where mtr_portfolio_id = 28210210 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28210210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858258, 0.039891574117670414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28210637 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4003511, 'mtr_portfolio_id': 28210637, 'created_at': datetime.datetime(2025, 11, 5, 14, 17), 'result': '0.06360827107620658', 'result_long': None, 'result_double': None}] Qualite : 0.06360827107620658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210637 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}" where mtr_portfolio_id = 28210637 and dashboard_run_id = 2526449 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28210637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858259, 0.06360827107620658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28211264 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': 4003580, 'mtr_portfolio_id': 28211264, 'created_at': datetime.datetime(2025, 11, 5, 14, 32, 59), 'result': '0.06469576483377656', 'result_long': None, 'result_double': None}] Qualite : 0.06469576483377656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28211264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211264_05-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28211264 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_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, 'pht': 3726}}" where mtr_portfolio_id = 28211264 and dashboard_run_id = 2526449 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`=28211264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858260, 0.06469576483377656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, '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 = 28211794 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': 4003648, 'mtr_portfolio_id': 28211794, 'created_at': datetime.datetime(2025, 11, 5, 14, 48, 58), 'result': '0.05009544826027698', 'result_long': None, 'result_double': None}] Qualite : 0.05009544826027698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28211794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211794_05-11-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28211794 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_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, 'pht': 3726}}" where mtr_portfolio_id = 28211794 and dashboard_run_id = 2526449 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`=28211794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858261, 0.05009544826027698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, '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 = 28212443 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': 4003729, 'mtr_portfolio_id': 28212443, 'created_at': datetime.datetime(2025, 11, 5, 15, 4, 59), 'result': '0.038332499650363', 'result_long': None, 'result_double': None}] Qualite : 0.038332499650363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28212443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212443_05-11-2025_15_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28212443 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_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, 'pht': 3726}}" where mtr_portfolio_id = 28212443 and dashboard_run_id = 2526449 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`=28212443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858262, 0.038332499650363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, '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 = 28212998 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': 4003819, 'mtr_portfolio_id': 28212998, 'created_at': datetime.datetime(2025, 11, 5, 15, 18, 59), 'result': '0.0455181923059883', 'result_long': None, 'result_double': None}] Qualite : 0.0455181923059883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28212998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212998_05-11-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28212998 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_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, 'pht': 3726}}" where mtr_portfolio_id = 28212998 and dashboard_run_id = 2526449 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`=28212998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858263, 0.0455181923059883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, '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 = 28213738 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': 4003893, 'mtr_portfolio_id': 28213738, 'created_at': datetime.datetime(2025, 11, 5, 15, 32, 59), 'result': '0.0473460051251911', 'result_long': None, 'result_double': None}] Qualite : 0.0473460051251911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28213738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28213738_05-11-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28213738 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_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, 'pht': 3726}}" where mtr_portfolio_id = 28213738 and dashboard_run_id = 2526449 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`=28213738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858264, 0.0473460051251911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, '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 = 28214278 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': 4003976, 'mtr_portfolio_id': 28214278, 'created_at': datetime.datetime(2025, 11, 5, 15, 47, 29), 'result': '0.047710640374471744', 'result_long': None, 'result_double': None}] Qualite : 0.047710640374471744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28214278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214278_05-11-2025_15_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28214278 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_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, 'pht': 3726}}" where mtr_portfolio_id = 28214278 and dashboard_run_id = 2526449 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`=28214278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858265, 0.047710640374471744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, '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 = 28214922 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': 4004071, 'mtr_portfolio_id': 28214922, 'created_at': datetime.datetime(2025, 11, 5, 16, 2, 58), 'result': '0.05686795952779704', 'result_long': None, 'result_double': None}] Qualite : 0.05686795952779704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28214922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214922_05-11-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28214922 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_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, 'pht': 3726}}" where mtr_portfolio_id = 28214922 and dashboard_run_id = 2526449 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`=28214922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858266, 0.05686795952779704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, '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 = 28215549 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': 4004181, 'mtr_portfolio_id': 28215549, 'created_at': datetime.datetime(2025, 11, 5, 16, 18, 59), 'result': '0.05285963189133066', 'result_long': None, 'result_double': None}] Qualite : 0.05285963189133066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28215549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28215549_05-11-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28215549 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_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, 'pht': 3726}}" where mtr_portfolio_id = 28215549 and dashboard_run_id = 2526449 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`=28215549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858267, 0.05285963189133066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, '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 = 28216421 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': 4004273, 'mtr_portfolio_id': 28216421, 'created_at': datetime.datetime(2025, 11, 5, 16, 33, 1), 'result': '0.049864512858578694', 'result_long': None, 'result_double': None}] Qualite : 0.049864512858578694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28216421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216421_05-11-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28216421 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_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, 'pht': 3726}}" where mtr_portfolio_id = 28216421 and dashboard_run_id = 2526449 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`=28216421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858268, 0.049864512858578694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, '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 = 28216994 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': 4004351, 'mtr_portfolio_id': 28216994, 'created_at': datetime.datetime(2025, 11, 5, 16, 46, 57), 'result': '0.07113347209809891', 'result_long': None, 'result_double': None}] Qualite : 0.07113347209809891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28216994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216994_05-11-2025_16_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28216994 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_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, 'pht': 3726}}" where mtr_portfolio_id = 28216994 and dashboard_run_id = 2526449 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`=28216994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858269, 0.07113347209809891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, '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 = 28217620 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': 4004428, 'mtr_portfolio_id': 28217620, 'created_at': datetime.datetime(2025, 11, 5, 16, 58, 59), 'result': '0.033261136573658506', 'result_long': None, 'result_double': None}] Qualite : 0.033261136573658506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28217620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28217620_05-11-2025_16_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28217620 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_P28217620_05-11-2025_16_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, 'pht': 3726}}" where mtr_portfolio_id = 28217620 and dashboard_run_id = 2526449 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`=28217620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858270, 0.033261136573658506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28217620_05-11-2025_16_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, '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 = 28218375 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': 4004530, 'mtr_portfolio_id': 28218375, 'created_at': datetime.datetime(2025, 11, 5, 17, 18, 58), 'result': '0.039419260927787185', 'result_long': None, 'result_double': None}] Qualite : 0.039419260927787185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28218375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28218375_05-11-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28218375 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_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, 'pht': 3726}}" where mtr_portfolio_id = 28218375 and dashboard_run_id = 2526449 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`=28218375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858271, 0.039419260927787185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, '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 = 28219362 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': 4004645, 'mtr_portfolio_id': 28219362, 'created_at': datetime.datetime(2025, 11, 5, 18, 3, 29), 'result': '0.04992920046402664', 'result_long': None, 'result_double': None}] Qualite : 0.04992920046402664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28219362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28219362_05-11-2025_18_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28219362 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_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, 'pht': 3726}}" where mtr_portfolio_id = 28219362 and dashboard_run_id = 2526449 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`=28219362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858272, 0.04992920046402664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, '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 = 28220262 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28220262 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28220262 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28220262 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28220262 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28220262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220262_05-11-2025_17_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28220262 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_P28220262_05-11-2025_17_41_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220277, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220281, 'pht': 3726}}" where mtr_portfolio_id = 28220262 and dashboard_run_id = 2526449 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 = 28220731 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': 4004817, 'mtr_portfolio_id': 28220731, 'created_at': datetime.datetime(2025, 11, 5, 18, 14, 57), 'result': '0.05183064362903692', 'result_long': None, 'result_double': None}] Qualite : 0.05183064362903692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28220731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28220731 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_P28220731_05-11-2025_18_14_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, 'pht': 3726}}" where mtr_portfolio_id = 28220731 and dashboard_run_id = 2526449 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`=28220731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16858274, 0.05183064362903692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_14_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28186038,28186394,28187294,28188183,28189317,28189664,28189717,28190150,28190820,28191207,28191692,28192332,28193155,28193965,28194584,28195092,28195794,28196359,28197077,28199380,28200141,28200911,28201755,28202496,28203318,28204048,28204978,28205788,28206586,28207204,28209787,28210210,28210637,28211264,28211794,28212443,28212998,28213738,28214278,28214922,28215549,28216421,28216994,28217620,28218375,28219362,28220262,28220731) result : ((1392617853,), (1392617859,), (1392617861,), (1392618834,), (1392619427,), (1392619646,), (1392619652,), (1392619664,), (1392619771,), (1392619776,), (1392619794,), (1392622575,), (1392624099,), (1392624159,), (1392624315,), (1392624846,), (1392625280,), (1392625705,), (1392625734,), (1392626088,), (1392626189,), (1392626193,), (1392626304,), (1392633920,), (1392636440,), (1392637712,), (1392637787,), (1392638973,), (1392639353,), (1392639501,), (1392639504,), (1392639569,), (1392639809,), (1392646293,), (1392646343,), (1392646492,), (1392646587,), (1392646612,), (1392646668,), (1392646671,), (1392646674,), (1392646746,), (1392656752,), (1392656757,), (1392656803,), (1392656829,), (1392656831,), (1392656855,), (1392656858,), (1392656860,), (1392656957,), (1392656964,), (1392656970,), (1392656978,), (1392657044,), (1392657051,), (1392657054,), (1392657057,), (1392657073,), (1392657076,), (1392657079,), (1392657114,), (1392657116,), (1392657118,), (1392657121,), (1392657140,), (1392657143,), (1392657144,), (1392657145,), (1392657249,), (1392657251,), (1392657252,), (1392657255,), (1392657258,), (1392657262,), (1392657280,), (1392657284,), (1392657286,), (1392657288,), (1392657339,), (1392657343,), (1392657919,), (1392657614,), (1392657918,), (1392657958,), (1392657959,), (1392657963,), (1392657965,), (1392657967,), (1392657970,), (1392657999,), (1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,), (1392658456,), (1392658458,), (1392658460,), (1392658462,), (1392658466,), (1392658470,), (1392658483,), (1392658485,), (1392658486,), (1392658488,), (1392658624,), (1392658627,), (1392658630,), (1392658632,), (1392658634,), (1392658665,), (1392658671,), (1392659587,), (1392659409,), (1392659453,), (1392659501,), (1392659543,), (1392660113,), (1392660121,), (1392660123,), (1392660125,), (1392660128,), (1392660191,), (1392660226,), (1392660262,), (1392660294,), (1392660681,), (1392660718,), (1392660768,), (1392660799,), (1392660832,), (1392661208,), (1392661210,), (1392661213,), (1392661218,), (1392661224,), (1392661231,), (1392661441,), (1392661458,), (1392661503,), (1392661505,), (1392661656,), (1392661658,), (1392661659,), (1392661660,), (1392661662,), (1392661663,), (1392661701,), (1392661702,), (1392661703,), (1392661705,), (1392661721,), (1392661723,), (1392661725,), (1392661766,), (1392661772,), (1392661779,), (1392661789,), (1392661792,), (1392661795,), (1392661848,), (1392661851,), (1392661854,), (1392661855,), (1392661858,), (1392661922,), (1392661925,), (1392661926,), (1392661929,), (1392661933,), (1392661936,), (1392661949,), (1392661952,), (1392661954,), (1392661958,), (1392661962,), (1392662015,), (1392662002,), (1392662006,), (1392662010,), (1392662033,), (1392662035,), (1392662037,), (1392662139,), (1392662144,), (1392662176,), (1392662178,), (1392662255,), (1392662257,), (1392662258,), (1392662308,), (1392662313,), (1392662392,), (1392662403,), (1392662405,), (1392662408,), (1392662414,), (1392662416,), (1392662433,), (1392662437,), (1392662441,), (1392662445,), (1392662449,), (1392662451,), (1392662456,), (1392662457,), (1392662459,), (1392662468,), (1392662470,), (1392662472,), (1392662475,), (1392662482,), (1392662485,), (1392662510,), (1392662512,), (1392662513,), (1392662514,), (1392662515,), (1392662518,), (1392662537,), (1392662539,), (1392662541,), (1392662615,), (1392662618,), (1392662622,), (1392662627,), (1392662631,), (1392662633,), (1392662646,), (1392662648,), (1392662649,), (1392662650,), (1392662687,), (1392662689,), (1392662692,), (1392662694,), (1392662753,), (1392662756,), (1392662759,), (1392662771,), (1392662774,), (1392662749,), (1392662750,), (1392662751,), (1392662795,), (1392662798,), (1392662800,), (1392662802,), (1392662806,), (1392662878,), (1392662887,), (1392662889,), (1392662892,), (1392662895,), (1392662899,), (1392662908,), (1392662909,), (1392662910,), (1392662916,), (1392662919,), (1392662921,), (1392662943,), (1392662944,), (1392662945,), (1392662947,), (1392662980,), (1392662982,), (1392662984,), (1392662986,), (1392663012,), (1392663014,), (1392663016,), (1392663020,), (1392663032,), (1392663043,), (1392663097,), (1392663104,), (1392663112,), (1392663126,), (1392663131,), (1392663162,), (1392663165,), (1392663180,), (1392663186,), (1392663189,), (1392663222,), (1392663224,), (1392663225,), (1392663227,), (1392663229,), (1392663252,), (1392663254,), (1392663280,), (1392663282,), (1392663284,), (1392663287,), (1392663291,), (1392663360,), (1392663363,), (1392663366,), (1392663390,), (1392663395,), (1392663400,), (1392663444,), (1392663447,), (1392663450,), (1392663507,), (1392663498,), (1392663500,), (1392663502,), (1392663505,), (1392663539,), (1392663543,), (1392663545,), (1392663549,), (1392663618,), (1392663620,), (1392663622,), (1392663650,), (1392663653,), (1392663658,), (1392663664,), (1392663688,), (1392663691,), (1392663719,), (1392663721,), (1392663723,), (1392663725,), (1392663759,), (1392664014,), (1392664017,), (1392664134,), (1392664137,), (1392664228,), (1392664263,), (1392664297,), (1392664603,), (1392664567,), (1392665032,), (1392665063,), (1392665098,), (1392665129,), (1392665168,), (1392665462,), (1392665469,), (1392665475,), (1392665487,), (1392665522,), (1392665553,), (1392665690,), (1392665692,), (1392665714,), (1392665716,), (1392665719,), (1392665723,), (1392665761,), (1392665774,), (1392665776,), (1392665778,), (1392665780,), (1392666020,), (1392666052,), (1392666597,), (1392666636,), (1392666669,), (1392666701,), (1392667065,), (1392667078,), (1392667081,), (1392667084,), (1392667111,), (1392667113,), (1392667124,), (1392667154,), (1392667187,), (1392667234,), (1392667564,), (1392667586,), (1392667605,), (1392667607,), (1392667618,), (1392667655,), (1392667794,), (1392667796,), (1392667805,), (1392667946,), (1392667950,), (1392667954,), (1392667957,), (1392667961,), (1392668003,), (1392668026,), (1392668057,), (1392668067,), (1392668070,), (1392668228,), (1392668245,), (1392668249,), (1392668252,), (1392668287,), (1392668284,), (1392668285,), (1392668286,), (1392668338,), (1392668342,), (1392668345,), (1392668350,), (1392668815,), (1392668951,), (1392669167,), (1392669168,), (1392669245,), (1392669248,), (1392669250,), (1392669253,), (1392669291,), (1392669294,), (1392669331,), (1392669335,), (1392669337,), (1392669347,), (1392669364,), (1392669626,), (1392669660,), (1392669661,), (1392669694,), (1392669704,), (1392669715,), (1392669719,), (1392669723,), (1392669925,), (1392669928,), (1392669930,), (1392669933,), (1392669946,), (1392669952,), (1392669851,), (1392669904,), (1392670012,), (1392670183,), (1392670186,), (1392670277,), (1392670423,), (1392670556,), (1392670560,), (1392670677,), (1392670680,), (1392670796,), (1392670797,), (1392670800,), (1392670831,), (1392670834,), (1392670843,), (1392671004,), (1392671035,), (1392671039,), (1392671041,), (1392671066,), (1392671068,), (1392671070,), (1392671080,), (1392671600,), (1392671602,), (1392671667,), (1392671748,), (1392671751,), (1392671978,), (1392671992,), (1392672165,), (1392672166,), (1392672168,), (1392672170,), (1392672196,), (1392672199,), (1392672202,), (1392672205,), (1392672210,), (1392672214,), (1392672236,), (1392672238,), (1392672241,), (1392672278,), (1392672280,), (1392672284,), (1392672287,), (1392672291,), (1392672334,), (1392672337,), (1392672372,), (1392672406,), (1392672443,), (1392672623,), (1392672681,), (1392672695,), (1392672704,), (1392672741,), (1392672743,), (1392672746,), (1392672777,), (1392672779,), (1392672781,), (1392672784,), (1392672814,), (1392672818,), (1392672822,), (1392673003,), (1392673008,), (1392673012,), (1392673167,), (1392673171,), (1392673302,), (1392673321,), (1392673323,), (1392673326,), (1392673329,), (1392673284,), (1392673292,), (1392673299,), (1392673348,), (1392673351,), (1392673353,), (1392673360,), (1392673367,), (1392673369,), (1392673482,), (1392673496,), (1392673500,), (1392673503,), (1392673538,), (1392673541,), (1392673544,), (1392673547,), (1392673552,), (1392673557,), (1392673581,), (1392673584,), (1392673586,), (1392673588,), (1392673591,), (1392673890,), (1392673922,), (1392673961,), (1392673999,), (1392674422,), (1392674455,), (1392674473,), (1392674478,), (1392674481,), (1392674490,), (1392674857,), (1392674893,), (1392674962,), (1392675034,), (1392675113,), (1392675180,), (1392675506,), (1392675510,), (1392675533,), (1392676427,), (1392676431,), (1392676446,), (1392676458,), (1392676593,), (1392676596,), (1392676605,), (1392676611,), (1392676692,), (1392676697,), (1392676702,), (1392676708,), (1392676762,), (1392676750,), (1392676757,), (1392676759,), (1392676896,), (1392676902,), (1392676909,), (1392676918,), (1392676924,), (1392676927,), (1392676955,), (1392676956,), (1392676957,), (1392676958,), (1392676961,), (1392676964,), (1392677009,), (1392677014,), (1392677036,), (1392677139,), (1392677180,), (1392677222,), (1392677255,), (1392677290,), (1392677420,), (1392677428,), (1392677429,), (1392677433,), (1392677706,), (1392677709,), (1392677712,), (1392677716,), (1392677721,), (1392677726,), (1392677763,), (1392677767,), (1392677770,), (1392677773,), (1392677778,), (1392677784,), (1392677801,), (1392677804,), (1392677806,), (1392678162,), (1392678163,), (1392678164,), (1392678167,), (1392678213,), (1392678219,), (1392678221,), (1392678223,), (1392678227,), (1392678299,), (1392678301,), (1392678302,), (1392678304,), (1392678335,), (1392678336,), (1392678337,), (1392678344,), (1392678488,), (1392678491,), (1392678494,), (1392678496,), (1392678498,), (1392678501,), (1392678555,), (1392678557,), (1392678571,), (1392678573,), (1392678576,), (1392678584,), (1392678588,), (1392678547,), (1392678549,), (1392678550,), (1392678552,), (1392678609,), (1392678624,), (1392678636,), (1392678640,), (1392678642,), (1392678652,), (1392678683,), (1392678685,), (1392678687,), (1392678690,), (1392678729,), (1392678732,), (1392678735,), (1392678736,), (1392678738,), (1392678776,), (1392678779,), (1392678781,), (1392678783,), (1392678786,), (1392678788,), (1392678812,), (1392678824,), (1392678839,), (1392678850,), (1392678858,), (1392678973,), (1392678977,), (1392679001,), (1392679013,), (1392679015,), (1392679106,), (1392679125,), (1392679176,), (1392679213,), (1392679271,), (1392679308,), (1392679527,), (1392679530,), (1392679533,), (1392679611,), (1392679614,), (1392679618,), (1392679621,), (1392679625,), (1392679629,), (1392679727,), (1392679744,), (1392679755,), (1392679769,), (1392679797,), (1392679806,), (1392679811,), (1392679814,), (1392679899,), (1392679903,), (1392679920,), (1392679931,), (1392679954,), (1392680114,), (1392680146,), (1392680202,), (1392680252,), (1392680256,), (1392680363,), (1392680402,), (1392680422,), (1392680559,), (1392680546,), (1392680552,), (1392680556,), (1392680623,), (1392680627,), (1392680628,), (1392680630,), (1392680633,), (1392680817,), (1392680856,), (1392680891,), (1392681042,), (1392681044,), (1392681047,), (1392681049,), (1392681054,), (1392681058,), (1392681174,), (1392681196,), (1392681198,), (1392681201,), (1392681204,), (1392681236,), (1392681237,), (1392681239,), (1392681241,), (1392681247,), (1392681251,), (1392681307,), (1392681328,), (1392681332,), (1392681504,), (1392681543,), (1392681591,), (1392681621,), (1392681655,), (1392681691,), (1392681814,), (1392681828,), (1392681836,), (1392681843,), (1392681861,), (1392682003,), (1392682010,), (1392682012,), (1392682016,), (1392682052,), (1392682056,), (1392682059,), (1392682061,), (1392682065,), (1392682086,), (1392682187,), (1392682190,), (1392682192,), (1392682374,), (1392682408,), (1392682437,), (1392682458,), (1392682491,), (1392682525,), (1392682827,), (1392682884,), (1392682934,), (1392682980,), (1392683014,), (1392683047,), (1392683234,), (1392683337,), (1392683407,), (1392683462,), (1392683962,), (1392683994,), (1392684020,), (1392684055,), (1392693860,), (1392694241,), (1392694269,), (1392694419,), (1392694421,), (1392694423,), (1392694433,), (1392694438,), (1392694774,), (1392694795,), (1392694837,), (1392695017,), (1392695043,), (1392695066,), (1392695980,), (1392696059,), (1392696121,), (1392696170,), (1392696205,), (1392696397,), (1392696398,), (1392696399,), (1392696403,), (1392696405,), (1392696408,), (1392696552,), (1392696594,), (1392696645,), (1392696704,), (1392696928,), (1392696934,), (1392696970,), (1392697009,), (1392697066,), (1392697223,), (1392697226,), (1392697229,), (1392697238,), (1392697788,), (1392697790,), (1392697791,), (1392697793,), (1392697796,), (1392697902,), (1392697904,), (1392697933,), (1392697943,), (1392697947,), (1392698005,), (1392698008,), (1392698019,), (1392698075,), (1392698077,), (1392698079,), (1392698081,), (1392698100,), (1392698108,), (1392698126,), (1392698128,), (1392698129,), (1392698137,), (1392698142,), (1392698161,), (1392698386,), (1392698389,), (1392698391,), (1392698807,), (1392698768,), (1392698789,), (1392698932,), (1392698934,), (1392698937,), (1392698998,), (1392699146,), (1392699188,), (1392699680,), (1392699681,), (1392699683,), (1392699911,), (1392699942,), (1392699982,), (1392700015,), (1392700048,), (1392700087,), (1392700719,), (1392700753,), (1392701025,), (1392701087,), (1392701125,), (1392701158,), (1392701387,), (1392701422,), (1392701441,), (1392701872,), (1392701886,), (1392701983,), (1392701986,), (1392701988,), (1392701991,), (1392701994,), (1392701997,), (1392702073,), (1392702078,), (1392702081,), (1392702243,), (1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,), (1392707412,), (1392707433,), (1392707436,), (1392707448,), (1392707594,), (1392707588,), (1392707590,), (1392707592,), (1392707982,), (1392708024,), (1392708027,), (1392708234,), (1392708237,), (1392708238,), (1392708242,), (1392708248,), (1392708253,), (1392708336,), (1392708358,), (1392708397,), (1392708403,), (1392708428,), (1392708429,), (1392708432,), (1392708438,), (1392708464,), (1392708505,), (1392708507,), (1392708518,), (1392708524,), (1392708567,), (1392708571,), (1392708575,), (1392708579,), (1392708789,), (1392708836,), (1392708906,), (1392708969,), (1392709194,), (1392709196,), (1392709198,), (1392709201,), (1392709230,), (1392709234,), (1392709238,), (1392709242,), (1392709246,), (1392709328,), (1392709371,), (1392709386,), (1392709390,), (1392709394,), (1392709630,), (1392709651,), (1392710100,), (1392710103,), (1392710149,), (1392710188,), (1392710303,), (1392710308,), (1392710312,), (1392710314,), (1392710316,), (1392710417,), (1392710598,), (1392710639,), (1392710642,), (1392710644,), (1392710648,), (1392710866,), (1392710871,), (1392710874,), (1392710902,), (1392710911,), (1392710943,), (1392710830,), (1392710857,), (1392710861,), (1392710891,), (1392710894,), (1392710895,), (1392710900,), (1392710971,), (1392710974,), (1392710976,), (1392711000,), (1392711035,), (1392711068,), (1392711360,), (1392711365,), (1392711367,), (1392711370,), (1392711579,), (1392711582,), (1392711605,), (1392711647,), (1392711832,), (1392711868,), (1392712144,), (1392712187,), (1392712206,), (1392712212,), (1392712389,), (1392712392,), (1392712397,), (1392712417,), (1392712447,), (1392712481,), (1392712626,), (1392712628,), (1392712634,), (1392712697,), (1392712732,), (1392712767,), (1392712805,), (1392712843,), (1392712880,), (1392712987,), (1392712992,), (1392713002,), (1392713006,), (1392713012,), (1392713019,), (1392713024,), (1392713095,), (1392713107,), (1392713110,), (1392713124,), (1392713136,), (1392713139,), (1392713181,), (1392713189,), (1392713216,), (1392713255,), (1392713625,), (1392713652,), (1392713671,), (1392713687,), (1392713693,), (1392713749,), (1392713751,), (1392713762,), (1392714423,), (1392714327,), (1392714365,), (1392714993,), (1392715055,), (1392715462,), (1392715465,), (1392715469,), (1392715474,), (1392715646,), (1392715679,), (1392715710,), (1392715741,), (1392715776,), (1392717036,), (1392717101,), (1392717148,), (1392717178,), (1392717322,), (1392717356,), (1392717389,), (1392717425,), (1392717566,), (1392717568,), (1392717738,), (1392717781,), (1392717836,), (1392717843,), (1392717871,), (1392717991,), (1392717993,), (1392717994,), (1392718023,), (1392718025,), (1392718028,), (1392718114,), (1392718148,), (1392718163,), (1392718166,), (1392718196,), (1392718206,), (1392718321,), (1392718322,), (1392718443,), (1392718448,), (1392718453,), (1392718456,), (1392718461,), (1392718486,), (1392718490,), (1392718495,), (1392718500,), (1392718564,), (1392718557,), (1392718560,), (1392718616,), (1392718652,), (1392718685,), (1392718720,), (1392718757,), (1392719435,), (1392719498,), (1392719568,), (1392719635,), (1392719703,), (1392720327,), (1392720364,), (1392720419,), (1392720483,), (1392720519,), (1392721275,), (1392721359,), (1392721449,), (1392722359,), (1392722395,), (1392722431,), (1392722471,), (1392722965,), (1392723072,), (1392723086,), (1392723090,), (1392723092,), (1392723128,), (1392723141,), (1392723176,), (1392723441,), (1392723443,), (1392723446,), (1392723449,), (1392723481,), (1392723483,), (1392723485,), (1392723487,), (1392723490,), (1392723494,), (1392723596,), (1392723598,), (1392723599,), (1392723721,), (1392723730,), (1392723737,), (1392723739,), (1392723741,), (1392723743,), (1392723772,), (1392723774,), (1392723776,), (1392723778,), (1392723782,), (1392723785,), (1392723843,), (1392723888,), (1392723933,), (1392723975,), (1392724137,), (1392724140,), (1392724143,), (1392724145,), (1392724223,), (1392724207,), (1392724209,), (1392724212,), (1392724215,), (1392724219,), (1392724260,), (1392724262,), (1392724294,), (1392724329,), (1392724365,), (1392724630,), (1392724685,), (1392724947,), (1392725130,), (1392725132,), (1392725133,), (1392725134,), (1392725145,), (1392725188,), (1392725679,), (1392725688,), (1392725694,), (1392725716,), (1392725755,), (1392725781,), (1392725859,), (1392725862,), (1392725866,), (1392725871,), (1392726296,), (1392726339,), (1392726393,), (1392726418,), (1392726427,), (1392726705,), (1392726711,), (1392726764,), (1392726804,), (1392726820,), (1392726824,), (1392726958,), (1392726968,), (1392726971,), (1392726974,), (1392727056,), (1392727091,), (1392727124,), (1392727148,), (1392727181,), (1392727329,), (1392727332,), (1392727335,), (1392727339,), (1392727345,), (1392727422,), (1392727423,), (1392727613,), (1392727627,), (1392727631,), (1392727661,), (1392727665,), (1392727675,), (1392727815,), (1392727847,), (1392727878,), (1392728129,), (1392728126,), (1392728127,), (1392728128,), (1392728425,), (1392728462,), (1392728507,), (1392728536,), (1392728725,), (1392728741,), (1392728744,), (1392728746,), (1392728773,), (1392728775,), (1392728776,), (1392728779,), (1392728848,), (1392728887,), (1392728906,), (1392729063,), (1392729066,), (1392729068,), (1392729070,), (1392729104,), (1392729105,), (1392729106,), (1392729108,), (1392729111,), (1392729169,), (1392729172,), (1392729177,), (1392729180,), (1392729184,), (1392729186,), (1392729381,), (1392729383,), (1392729385,), (1392729391,), (1392729456,), (1392729457,), (1392729459,), (1392729478,), (1392729482,), (1392729484,), (1392729587,), (1392729602,), (1392729604,), (1392729606,), (1392729610,), (1392729614,), (1392729623,), (1392729625,), (1392729630,), (1392729636,), (1392729638,), (1392729641,), (1392729647,), (1392729652,), (1392729657,), (1392729734,), (1392729735,), (1392729736,), (1392729964,), (1392730013,), (1392730034,), (1392730037,), (1392730065,), (1392730080,), (1392730293,), (1392730312,), (1392730354,), (1392730429,), (1392730420,), (1392730423,), (1392730426,), (1392730492,), (1392730495,), (1392730497,), (1392730564,), (1392730567,), (1392730569,), (1392730576,), (1392730580,), (1392730583,), (1392730631,), (1392730633,), (1392730634,), (1392730637,), (1392730641,), (1392730677,), (1392730691,), (1392730693,), (1392730696,), (1392730700,), (1392730943,), (1392730979,), (1392730989,), (1392730991,), (1392731001,), (1392731004,), (1392731031,), (1392731032,), (1392731044,), (1392731056,), (1392731167,), (1392731206,), (1392731240,), (1392731274,), (1392731309,), (1392731341,), (1392731413,), (1392731427,), (1392731428,), (1392731430,), (1392731518,), (1392731521,), (1392731524,), (1392731526,), (1392731529,), (1392731550,), (1392731552,), (1392731555,), (1392731558,), (1392731566,), (1392731599,), (1392731602,), (1392731604,), (1392731605,), (1392731693,), (1392731706,), (1392731708,), (1392731711,), (1392731715,), (1392731718,), (1392731750,), (1392731756,), (1392731761,), (1392731766,), (1392732222,), (1392732125,), (1392732161,), (1392732192,), (1392732650,), (1392732687,), (1392732692,), (1392733279,), (1392733418,), (1392733545,), (1392733677,), (1392734702,), (1392734770,), (1392734833,), (1392734900,), (1392734960,), (1392735050,), (1392735530,), (1392735693,), (1392735761,), (1392735831,), (1392735901,), (1392735969,), (1392736324,), (1392736343,), (1392736387,), (1392736395,), (1392736447,), (1392736619,), (1392736638,), (1392736697,), (1392736699,), (1392736701,), (1392736703,), (1392736706,), (1392736873,), (1392736910,), (1392749273,), (1392749271,), (1392749286,), (1392749288,), (1392749332,), (1392749353,), (1392749451,), (1392749454,), (1392749517,), (1392749519,), (1392749521,), (1392749524,), (1392749543,), (1392749599,), (1392749600,), (1392749601,), (1392749619,), (1392749622,), (1392749625,), (1392749628,), (1392749674,), (1392749675,), (1392749727,), (1392749732,), (1392749766,), (1392749950,), (1392749955,), (1392749958,), (1392749962,), (1392749965,), (1392750108,), (1392750095,), (1392750098,), (1392750101,), (1392750103,), (1392750106,), (1392750127,), (1392750130,), (1392750132,), (1392750135,), (1392750139,), (1392750197,), (1392750202,), (1392750203,), (1392750205,), (1392750206,), (1392750220,), (1392750221,), (1392750222,), (1392750223,), (1392750225,), (1392750226,), (1392750242,), (1392750244,), (1392750246,), (1392750404,), (1392750420,), (1392750426,), (1392750593,), (1392750594,), (1392750595,), (1392750596,), (1392750613,), (1392750784,), (1392750786,), (1392750789,), (1392750845,), (1392750847,), (1392750849,), (1392750884,), (1392750888,), (1392750891,), (1392751045,), (1392751046,), (1392751047,), (1392751067,), (1392751623,), (1392751660,), (1392751695,), (1392751729,), (1392751762,), (1392751784,), (1392752042,), (1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,), (1392755879,), (1392755909,), (1392755940,), (1392755973,), (1392756012,), (1392756040,), (1392756176,), (1392756192,), (1392756194,), (1392756196,), (1392756201,), (1392756204,), (1392756234,), (1392756237,), (1392756239,), (1392756242,), (1392756350,), (1392756353,), (1392756354,), (1392756355,), (1392756359,), (1392756434,), (1392756437,), (1392756439,), (1392756441,), (1392756446,), (1392756472,), (1392756474,), (1392756476,), (1392756478,), (1392756482,), (1392756585,), (1392756577,), (1392756580,), (1392756582,), (1392756645,), (1392756647,), (1392756649,), (1392756651,), (1392756655,), (1392756672,), (1392756914,), (1392756916,), (1392756918,), (1392756920,), (1392757078,), (1392757118,), (1392757147,), (1392757149,), (1392757153,), (1392757196,), (1392757198,), (1392757200,), (1392758026,), (1392758020,), (1392758022,), (1392758024,), (1392758051,), (1392758054,), (1392758056,), (1392758291,), (1392758300,), (1392758304,), (1392758393,), (1392758395,), (1392758398,), (1392758401,), (1392758406,), (1392758431,), (1392758435,), (1392758439,), (1392758442,), (1392758500,), (1392758503,), (1392758506,), (1392758610,), (1392758614,), (1392758618,), (1392758620,), (1392758628,), (1392758633,), (1392758674,), (1392758678,), (1392758703,), (1392758800,), (1392758803,), (1392758805,), (1392758808,), (1392758844,), (1392758849,), (1392758852,), (1392758857,), (1392758966,), (1392758975,), (1392758978,), (1392758982,), (1392759055,), (1392759057,), (1392759058,), (1392759061,), (1392759070,), (1392759255,), (1392759264,), (1392759285,), (1392759295,), (1392759326,), (1392759339,), (1392759401,), (1392759515,), (1392759504,), (1392759506,), (1392759508,), (1392759510,), (1392759599,), (1392759600,), (1392759601,), (1392759847,), (1392759857,), (1392759865,), (1392759888,), (1392759891,), (1392759893,), (1392759895,), (1392759899,), (1392759947,), (1392759948,), (1392759949,), (1392759951,), (1392759956,), (1392760252,), (1392760257,), (1392760261,), (1392760267,), (1392760271,), (1392760446,), (1392760448,), (1392760449,), (1392760451,), (1392760455,), (1392760457,), (1392760538,), (1392760551,), (1392760555,), (1392760559,), (1392760639,), (1392760643,), (1392760660,), (1392760662,), (1392760667,), (1392760673,), (1392760918,), (1392760926,), (1392760927,), (1392760928,), (1392760939,), (1392760961,), (1392761003,), (1392761111,), (1392761122,), (1392761139,), (1392761417,), (1392761460,), (1392761512,), (1392761555,), (1392761596,), (1392761613,), (1392761732,), (1392761737,), (1392761740,), (1392761744,), (1392761746,), (1392761749,), (1392761955,), (1392761961,), (1392761965,), (1392761981,), (1392762159,), (1392762161,), (1392762225,), (1392762226,), (1392762273,), (1392762280,), (1392762305,), (1392762312,), (1392763049,), (1392763227,), (1392763582,), (1392763663,), (1392763740,), (1392762815,), (1392762848,), (1392762911,), (1392762976,), (1392763424,), (1392763464,), (1392763509,), (1392765479,), (1392765522,), (1392765561,), (1392765616,), (1392765682,), (1392765720,), (1392766041,), (1392766046,), (1392766050,), (1392766053,), (1392766064,), (1392766132,), (1392766481,), (1392766518,), (1392766549,), (1392766578,), (1392766821,), (1392766839,), (1392766874,), (1392766890,), (1392766895,), (1392767152,), (1392767155,), (1392767157,), (1392767160,), (1392767164,), (1392767167,), (1392767203,), (1392767206,), (1392767209,), (1392767215,), (1392767241,), (1392767244,), (1392767247,), (1392767251,), (1392767256,), (1392767312,), (1392767314,), (1392767316,), (1392767318,), (1392767321,), (1392767426,), (1392767428,), (1392767430,), (1392767551,), (1392767555,), (1392767559,), (1392767566,), (1392767572,), (1392767576,), (1392767622,), (1392767628,), (1392767630,), (1392767631,), (1392767632,), (1392767635,), (1392767664,), (1392767665,), (1392767668,), (1392767671,), (1392767814,), (1392767845,), (1392767853,), (1392767859,), (1392767888,), (1392767747,), (1392767778,), (1392767906,), (1392767908,), (1392767917,), (1392767927,), (1392767932,), (1392768002,), (1392768005,), (1392768008,), (1392768011,), (1392768014,), (1392768019,), (1392768052,), (1392768054,), (1392768057,), (1392768060,), (1392768066,), (1392768095,), (1392768098,), (1392768101,), (1392768104,), (1392768108,), (1392768113,), (1392768140,), (1392768143,), (1392768144,), (1392768145,), (1392768148,), (1392768150,), (1392768179,), (1392768187,), (1392768191,), (1392768193,), (1392768272,), (1392768275,), (1392768277,), (1392768280,), (1392768284,), (1392768316,), (1392768318,), (1392768319,), (1392768320,), (1392768357,), (1392768359,), (1392768361,), (1392768372,), (1392768378,), (1392768449,), (1392768453,), (1392768457,), (1392768461,), (1392768465,), (1392768668,), (1392768678,), (1392768680,), (1392768683,), (1392768884,), (1392768910,), (1392768913,), (1392768917,), (1392768922,), (1392768926,), (1392768994,), (1392768998,), (1392769001,), (1392769006,), (1392769011,), (1392769048,), (1392769050,), (1392769051,), (1392769053,), (1392769057,), (1392769158,), (1392769196,), (1392769198,), (1392769201,), (1392769211,), (1392769215,), (1392769096,), (1392769100,), (1392769105,), (1392769119,), (1392769123,), (1392769234,), (1392769241,), (1392769254,), (1392769330,), (1392769338,), (1392769340,), (1392769341,), (1392769343,), (1392769346,), (1392769386,), (1392769388,), (1392769391,), (1392769394,), (1392769414,), (1392769417,), (1392769420,), (1392769424,), (1392769426,), (1392769525,), (1392769530,), (1392769534,), (1392769552,), (1392769560,), (1392769565,), (1392769621,), (1392769630,), (1392769642,), (1392769697,), (1392769699,), (1392769702,), (1392769704,), (1392769800,), (1392769810,), (1392769817,), (1392769822,), (1392769832,), (1392769836,), (1392769861,), (1392769870,), (1392769901,), (1392769905,), (1392769963,), (1392769970,), (1392770042,), (1392770043,), (1392770044,), (1392770047,), (1392770052,), (1392770267,), (1392770277,), (1392770283,), (1392770468,), (1392770476,), (1392770482,), (1392770489,), (1392770493,), (1392770540,), (1392770528,), (1392770530,), (1392770531,), (1392770618,), (1392770652,), (1392770685,), (1392770716,), (1392770749,), (1392770798,), (1392770912,), (1392770942,), (1392770974,), (1392771006,), (1392771108,), (1392771111,), (1392771114,), (1392771117,), (1392771122,), (1392771153,), (1392771155,), (1392771156,), (1392771158,), (1392771161,), (1392771163,), (1392771213,), (1392771215,), (1392771217,), (1392771270,), (1392771276,), (1392771281,), (1392771286,), (1392771291,), (1392771296,), (1392771440,), (1392771474,), (1392771505,), (1392771542,), (1392771580,), (1392771841,), (1392771848,), (1392771899,), (1392771901,), (1392771903,), (1392771906,), (1392771910,), (1392771912,), (1392771936,), (1392771938,), (1392771940,), (1392771942,), (1392771944,), (1392771971,), (1392771972,), (1392772257,), (1392772262,), (1392772266,), (1392772527,), (1392772461,), (1392773721,), (1392773790,), (1392773853,), (1392773916,), (1392773983,), (1392774059,), (1392774677,), (1392774716,), (1392774781,), (1392774884,), (1392774956,), (1392775000,), (1392775214,), (1392775238,), (1392775532,), (1392775567,), (1392775601,), (1392775637,), (1392775668,), (1392775706,), (1392776002,), (1392776018,), (1392776021,), (1392776025,), (1392776030,), (1392776048,), (1392776238,), (1392776246,), (1392776248,), (1392776263,), (1392776350,), (1392776352,), (1392776384,), (1392776419,), (1392776451,), (1392776553,), (1392776644,), (1392776655,), (1392776661,), (1392776671,), (1392776674,), (1392776708,), (1392776710,), (1392776711,), (1392776830,), (1392776832,), (1392776850,), (1392776858,), (1392776864,), (1392776978,), (1392777011,), (1392777043,), (1392777079,), (1392777370,), (1392777375,), (1392777378,), (1392777380,), (1392777383,), (1392777386,), (1392777419,), (1392777427,), (1392777430,), (1392777454,), (1392777458,), (1392777462,), (1392777465,), (1392777469,), (1392777542,), (1392777518,), (1392777520,), (1392777522,), (1392777538,), (1392777540,), (1392777666,), (1392777674,), (1392777678,), (1392777688,), (1392777816,), (1392777818,), (1392777820,), (1392777822,), (1392777825,), (1392777827,), (1392777871,), (1392777905,), (1392777941,), (1392777975,), (1392778185,), (1392778187,), (1392778214,), (1392778227,), (1392778231,), (1392778235,), (1392778382,), (1392778416,), (1392778447,), (1392778471,), (1392778475,), (1392778479,), (1392778555,), (1392778564,), (1392778575,), (1392778578,), (1392778608,), (1392778610,), (1392778613,), (1392778618,), (1392778623,), (1392778626,), (1392778639,), (1392778641,), (1392778643,), (1392778714,), (1392778716,), (1392778726,), (1392778728,), (1392778731,), (1392778735,), (1392778764,), (1392778770,), (1392778773,), (1392778776,), (1392778807,), (1392778809,), (1392778811,), (1392778819,), (1392778827,), (1392778839,), (1392778948,), (1392778958,), (1392778960,), (1392778964,), (1392779109,), (1392779111,), (1392779114,), (1392779118,), (1392779121,), (1392779156,), (1392779160,), (1392779164,), (1392779166,), (1392779168,), (1392779235,), (1392779238,), (1392779240,), (1392779242,), (1392779251,), (1392779254,), (1392779231,), (1392779233,), (1392779268,), (1392779271,), (1392779272,), (1392779273,), (1392779275,), (1392779284,), (1392779339,), (1392779340,), (1392779342,), (1392779345,), (1392779349,), (1392779354,), (1392779408,), (1392779413,), (1392779417,), (1392779421,), (1392779481,), (1392779483,), (1392779484,), (1392779486,), (1392779502,), (1392779536,), (1392779676,), (1392779682,), (1392779683,), (1392779685,), (1392779688,), (1392779773,), (1392779777,), (1392779784,), (1392779787,), (1392779881,), (1392779884,), (1392779886,), (1392779888,), (1392779891,), (1392779894,), (1392779928,), (1392779930,), (1392779941,), (1392779959,), (1392780065,), (1392780066,), (1392780067,), (1392780069,), (1392780089,), (1392780092,), (1392780097,), (1392780100,), (1392780103,), (1392780107,), (1392780128,), (1392780130,), (1392780133,), (1392780142,), (1392780152,), (1392780249,), (1392780251,), (1392780252,), (1392780258,), (1392780272,), (1392780453,), (1392780458,), (1392780461,), (1392780464,), (1392780468,), (1392780471,), (1392780493,), (1392780498,), (1392780500,), (1392780508,), (1392780511,), (1392780576,), (1392780566,), (1392780568,), (1392780570,), (1392780603,), (1392780604,), (1392780606,), (1392780609,), (1392780613,), (1392780927,), (1392780939,), (1392780948,), (1392780986,), (1392781002,), (1392781063,), (1392781068,), (1392781077,), (1392781369,), (1392781379,), (1392781380,), (1392781382,), (1392781383,), (1392781385,), (1392781430,), (1392781432,), (1392781434,), (1392781518,), (1392781524,), (1392781824,), (1392781862,), (1392781895,), (1392782143,), (1392782145,), (1392782183,), (1392782219,), (1392782260,), (1392782296,), (1392782677,), (1392782725,), (1392782756,), (1392783070,), (1392783073,), (1392783077,), (1392783080,), (1392783219,), (1392783221,), (1392783223,), (1392783225,), (1392783229,), (1392783272,), (1392783279,), (1392783286,), (1392783288,), (1392783300,), (1392783693,), (1392783728,), (1392783731,), (1392783735,), (1392783739,), (1392783743,), (1392784058,), (1392784066,), (1392784099,), (1392784166,), (1392784169,), (1392784182,), (1392784191,), (1392784258,), (1392784260,), (1392784281,), (1392784284,), (1392784287,), (1392784352,), (1392784240,), (1392784241,), (1392784244,), (1392784245,), (1392784247,), (1392784250,), (1392784251,), (1392784253,), (1392784255,), (1392784257,), (1392784273,), (1392784275,), (1392784278,), (1392784569,), (1392784600,), (1392784630,), (1392784665,), (1392784702,), (1392784738,), (1392785080,), (1392785124,), (1392785156,), (1392785192,), (1392785226,), (1392785291,), (1392785295,), (1392785302,), (1392785304,), (1392785327,), (1392785330,), (1392785693,), (1392785736,), (1392785772,), (1392786323,), (1392786353,), (1392786382,), (1392786415,), (1392786452,), (1392787413,), (1392787440,), (1392787441,), (1392787454,), (1392787820,), (1392787873,), (1392787903,), (1392787935,), (1392787966,), (1392788101,), (1392788103,), (1392788106,), (1392788108,), (1392788129,), (1392788137,), (1392788212,), (1392788215,), (1392788217,), (1392788290,), (1392788298,), (1392788302,), (1392788306,), (1392788311,), (1392788314,), (1392788455,), (1392788488,), (1392788523,), (1392788554,), (1392788587,), (1392788741,), (1392788743,), (1392788745,), (1392788774,), (1392788831,), (1392788821,), (1392788823,), (1392788825,), (1392788827,), (1392788875,), (1392788878,), (1392788911,), (1392788935,), (1392788957,), (1392788969,), (1392789042,), (1392789045,), (1392789046,), (1392789049,), (1392789051,), (1392789055,), (1392789277,), (1392789281,), (1392789283,), (1392789285,), (1392789398,), (1392789431,), (1392789455,), (1392789456,), (1392789574,), (1392789609,), (1392789659,), (1392789695,), (1392789732,), (1392789771,), (1392789875,), (1392789888,), (1392789891,), (1392789894,), (1392789896,), (1392789948,), (1392789950,), (1392789953,), (1392789956,), (1392789960,), (1392789963,), (1392790026,), (1392790029,), (1392790033,), (1392790070,), (1392790072,), (1392790074,), (1392790076,), (1392790079,), (1392790107,), (1392790109,), (1392790111,), (1392790113,), (1392790117,), (1392790120,), (1392790152,), (1392790155,), (1392790157,), (1392790221,), (1392790225,), (1392790228,), (1392790231,), (1392790235,), (1392790306,), (1392790309,), (1392790311,), (1392790343,), (1392790347,), (1392790350,), (1392790354,), (1392790357,), (1392790405,), (1392790424,), (1392790429,), (1392790434,), (1392790438,), (1392793229,), (1392790403,), (1392791158,), (1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05112025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28220731]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] map_info['map_portfolio_photo'] : {28220731: [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976, 1392794889, 1392794887, 1392794699, 1392794697, 1392794696, 1392794692, 1392794652, 1392794649, 1392794642, 1392794602, 1392794600, 1392794598, 1392794597, 1392794596, 1392794516, 1392794511, 1392794506, 1392794417, 1392794416, 1392794407, 1392794331, 1392794303, 1392794296, 1392793953, 1392793936, 1392793783, 1392793744, 1392793712, 1392793679, 1392793646, 1392793179, 1392793140]} final : True mtd_id 4302 list_pids : [1392795183, 1392795147, 1392795133, 1392795059, 1392795057, 1392795056, 1392795047, 1392795031, 1392794996, 1392794991, 1392794986, 1392794983, 1392794980, 1392794976] Looping around the photos to save general results len do output : 1 /28220731Didn'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, '4004817') ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817') ('4302', None, None, None, None, None, None, None, '4004817') ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817') 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', None, '28220731', 'None', None, None, None, None, '4004817'), ('4302', '28220731', '1392795183', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795147', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795133', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795059', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795057', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795056', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795047', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392795031', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794996', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794991', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794986', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794983', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794980', None, None, None, None, None, '4004817'), ('4302', '28220731', '1392794976', None, None, None, None, None, '4004817')] time used for this insertion : 0.01433706283569336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0142853260040283 time spend to save output : 0.014560699462890625 total time spend for step 5 : 3.028846025466919 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 (4004817) 2.35user 2.67system 0:10.49elapsed 47%CPU (0avgtext+0avgdata 159996maxresident)k 1600inputs+15632outputs (36major+76015minor)pagefaults 0swaps