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 : 54721 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 (3375413) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3375413) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414644 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3375413'] with mtr_portfolio_ids : ['25414644'] and first list_photo_ids : [] new path : /proc/54721/ Name: python3 Umask: 0002 State: R (running) Tgid: 54721 Ngid: 0 Pid: 54721 PPid: 54720 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 54721 NSpid: 54721 NSpgid: 53439 NSsid: 53439 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97336 kB VmRSS: 97336 kB RssAnon: 59820 kB RssFile: 37516 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 93 nonvoluntary_ctxt_switches: 131 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '54721', 'Ngid': '0', 'Pid': '54721', 'PPid': '54720', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '54721', 'NSpid': '54721', 'NSpgid': '53439', 'NSsid': '53439', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97336 kB', 'VmRSS': '97336 kB', 'RssAnon': '59820 kB', 'RssFile': '37516 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '93', 'nonvoluntary_ctxt_switches': '131'} ('datou_batch_current', '54721', '1106964', '0', '1106964', '865716', '97336', b'', 'marlene', '3375413') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25414644) 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 (3375413 ) ) 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 (25414644) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374185984, 'portfolio_id': 25414644}, {'photo_id': 1374185973, 'portfolio_id': 25414644}, {'photo_id': 1374185970, 'portfolio_id': 25414644}, {'photo_id': 1374185968, 'portfolio_id': 25414644}, {'photo_id': 1374185966, 'portfolio_id': 25414644}, {'photo_id': 1374185956, 'portfolio_id': 25414644}, {'photo_id': 1374185948, 'portfolio_id': 25414644}, {'photo_id': 1374185933, 'portfolio_id': 25414644}, {'photo_id': 1374185926, 'portfolio_id': 25414644}, {'photo_id': 1374185896, 'portfolio_id': 25414644}, {'photo_id': 1374185895, 'portfolio_id': 25414644}, {'photo_id': 1374185894, 'portfolio_id': 25414644}, {'photo_id': 1374185892, 'portfolio_id': 25414644}, {'photo_id': 1374185849, 'portfolio_id': 25414644}, {'photo_id': 1374185845, 'portfolio_id': 25414644}, {'photo_id': 1374185843, 'portfolio_id': 25414644}, {'photo_id': 1374185833, 'portfolio_id': 25414644}, {'photo_id': 1374185823, 'portfolio_id': 25414644}, {'photo_id': 1374185819, 'portfolio_id': 25414644}, {'photo_id': 1374185805, 'portfolio_id': 25414644}, {'photo_id': 1374185801, 'portfolio_id': 25414644}, {'photo_id': 1374185799, 'portfolio_id': 25414644}, {'photo_id': 1374185766, 'portfolio_id': 25414644}, {'photo_id': 1374185736, 'portfolio_id': 25414644}, {'photo_id': 1374185699, 'portfolio_id': 25414644}, {'photo_id': 1374185611, 'portfolio_id': 25414644}, {'photo_id': 1374185590, 'portfolio_id': 25414644}, {'photo_id': 1374185588, 'portfolio_id': 25414644}, {'photo_id': 1374185577, 'portfolio_id': 25414644}, {'photo_id': 1374185561, 'portfolio_id': 25414644}, {'photo_id': 1374185524, 'portfolio_id': 25414644}, {'photo_id': 1374185438, 'portfolio_id': 25414644}, {'photo_id': 1374185431, 'portfolio_id': 25414644}, {'photo_id': 1374185429, 'portfolio_id': 25414644}, {'photo_id': 1374185428, 'portfolio_id': 25414644}, {'photo_id': 1374185426, 'portfolio_id': 25414644}, {'photo_id': 1374185424, 'portfolio_id': 25414644}, {'photo_id': 1374185409, 'portfolio_id': 25414644}, {'photo_id': 1374185404, 'portfolio_id': 25414644}, {'photo_id': 1374185402, 'portfolio_id': 25414644}, {'photo_id': 1374185391, 'portfolio_id': 25414644}, {'photo_id': 1374185383, 'portfolio_id': 25414644}, {'photo_id': 1374185381, 'portfolio_id': 25414644}, {'photo_id': 1374185347, 'portfolio_id': 25414644}, {'photo_id': 1374185252, 'portfolio_id': 25414644}, {'photo_id': 1374185248, 'portfolio_id': 25414644}, {'photo_id': 1374185223, 'portfolio_id': 25414644}, {'photo_id': 1374185194, 'portfolio_id': 25414644}, {'photo_id': 1374185166, 'portfolio_id': 25414644}, {'photo_id': 1374185155, 'portfolio_id': 25414644}, {'photo_id': 1374185101, 'portfolio_id': 25414644}, {'photo_id': 1374185097, 'portfolio_id': 25414644}, {'photo_id': 1374185094, 'portfolio_id': 25414644}, {'photo_id': 1374185092, 'portfolio_id': 25414644}, {'photo_id': 1374185089, 'portfolio_id': 25414644}, {'photo_id': 1374185087, 'portfolio_id': 25414644}, {'photo_id': 1374185074, 'portfolio_id': 25414644}, {'photo_id': 1374185071, 'portfolio_id': 25414644}, {'photo_id': 1374185069, 'portfolio_id': 25414644}, {'photo_id': 1374185068, 'portfolio_id': 25414644}, {'photo_id': 1374185067, 'portfolio_id': 25414644}, {'photo_id': 1374185065, 'portfolio_id': 25414644}, {'photo_id': 1374185043, 'portfolio_id': 25414644}, {'photo_id': 1374185040, 'portfolio_id': 25414644}, {'photo_id': 1374185004, 'portfolio_id': 25414644}, {'photo_id': 1374185002, 'portfolio_id': 25414644}, {'photo_id': 1374184999, 'portfolio_id': 25414644}, {'photo_id': 1374184997, 'portfolio_id': 25414644}, {'photo_id': 1374184926, 'portfolio_id': 25414644}, {'photo_id': 1374184923, 'portfolio_id': 25414644}, {'photo_id': 1374184921, 'portfolio_id': 25414644}, {'photo_id': 1374184919, 'portfolio_id': 25414644}, {'photo_id': 1374184907, 'portfolio_id': 25414644}, {'photo_id': 1374184874, 'portfolio_id': 25414644}] map_portfolio_id_photo_id: {25414644: [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948, 1374185933, 1374185926, 1374185896, 1374185895, 1374185894, 1374185892, 1374185849, 1374185845, 1374185843, 1374185833, 1374185823, 1374185819, 1374185805, 1374185801, 1374185799, 1374185766, 1374185736, 1374185699, 1374185611, 1374185590, 1374185588, 1374185577, 1374185561, 1374185524, 1374185438, 1374185431, 1374185429, 1374185428, 1374185426, 1374185424, 1374185409, 1374185404, 1374185402, 1374185391, 1374185383, 1374185381, 1374185347, 1374185252, 1374185248, 1374185223, 1374185194, 1374185166, 1374185155, 1374185101, 1374185097, 1374185094, 1374185092, 1374185089, 1374185087, 1374185074, 1374185071, 1374185069, 1374185068, 1374185067, 1374185065, 1374185043, 1374185040, 1374185004, 1374185002, 1374184999, 1374184997, 1374184926, 1374184923, 1374184921, 1374184919, 1374184907, 1374184874]} ##### 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.015852928161621094 #### 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 Mon Jul 28 17:46:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25414644) 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 : 25414644 get user id for portfolio 25414644 get sub ptf for main ptf 25414644, type 3726 and hashtags ['environnement', 'autre_refus', 'papier', 'plastique', 'flou', 'cartonnette', 'kraft', 'Carton_brun', 'metal', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25414644 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','plastique','flou','cartonnette','kraft','Carton_brun','metal','mal_croppe','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25414644 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','plastique','flou','cartonnette','kraft','Carton_brun','metal','mal_croppe','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25414644, 'sub_port_id': 25414676, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138242, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'environnement': {'main_port_id': 25414644, 'sub_port_id': 25414677, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138243, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'cartonnette': {'main_port_id': 25414644, 'sub_port_id': 25414678, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138244, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'Carton_brun': {'main_port_id': 25414644, 'sub_port_id': 25414679, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138245, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'papier': {'main_port_id': 25414644, 'sub_port_id': 25414680, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138246, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25414644, 'sub_port_id': 25414681, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138247, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'Carton_gris': {'main_port_id': 25414644, 'sub_port_id': 25414682, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138248, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'autre_refus': {'main_port_id': 25414644, 'sub_port_id': 25414683, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138249, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'kraft': {'main_port_id': 25414644, 'sub_port_id': 25414684, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138250, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'metal': {'main_port_id': 25414644, 'sub_port_id': 25414685, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138251, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'flou': {'main_port_id': 25414644, 'sub_port_id': 25414686, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138252, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}, 'mal_croppe': {'main_port_id': 25414644, 'sub_port_id': 25414687, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138253, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414676 , 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=25414644 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 (25414676) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414677 , 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=25414644 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 (25414677) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414678 , 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=25414644 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 (25414678) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414679 , 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=25414644 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 (25414679) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414680 , 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=25414644 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 (25414680) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414681 , 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=25414644 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 (25414681) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414682 , 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=25414644 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 (25414682) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414683 , 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=25414644 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 (25414683) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414684 , 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=25414644 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 (25414684) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414685 , 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=25414644 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 (25414685) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414686 , 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=25414644 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 (25414686) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25414687 , 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=25414644 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 (25414687) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25414644) result : ((1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25414644 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','plastique','flou','cartonnette','kraft','Carton_brun','metal','mal_croppe','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25414644 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','papier','plastique','flou','cartonnette','kraft','Carton_brun','metal','mal_croppe','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25414644, 'sub_port_id': 25414690, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138254, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'environnement': {'main_port_id': 25414644, 'sub_port_id': 25414691, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138255, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'cartonnette': {'main_port_id': 25414644, 'sub_port_id': 25414692, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138256, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'Carton_brun': {'main_port_id': 25414644, 'sub_port_id': 25414693, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138257, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'papier': {'main_port_id': 25414644, 'sub_port_id': 25414694, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138258, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 25414644, 'sub_port_id': 25414695, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138259, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'Carton_gris': {'main_port_id': 25414644, 'sub_port_id': 25414696, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138260, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'autre_refus': {'main_port_id': 25414644, 'sub_port_id': 25414697, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138261, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'kraft': {'main_port_id': 25414644, 'sub_port_id': 25414698, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138262, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'metal': {'main_port_id': 25414644, 'sub_port_id': 25414699, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138263, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'flou': {'main_port_id': 25414644, 'sub_port_id': 25414700, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138264, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 33, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}, 'mal_croppe': {'main_port_id': 25414644, 'sub_port_id': 25414701, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17138265, 'last_updated_at': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 17, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 17, 33, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414677 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414692,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414693,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414679 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414694,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414680 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414695,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414681 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414696,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414682 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414683 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414684 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25414701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25414687 lien utilise dans velours : https://www.fotonower.com/velours/25414690,25414691,25414692,25414693,25414694,25414695,25414696,25414697,25414698,25414699,25414700,25414701?tags=plastique,environnement,cartonnette,Carton_brun,papier,Teint_Dans_La_Masse,Carton_gris,autre_refus,kraft,metal,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25414644]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] map_info['map_portfolio_photo'] : {25414644: [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948, 1374185933, 1374185926, 1374185896, 1374185895, 1374185894, 1374185892, 1374185849, 1374185845, 1374185843, 1374185833, 1374185823, 1374185819, 1374185805, 1374185801, 1374185799, 1374185766, 1374185736, 1374185699, 1374185611, 1374185590, 1374185588, 1374185577, 1374185561, 1374185524, 1374185438, 1374185431, 1374185429, 1374185428, 1374185426, 1374185424, 1374185409, 1374185404, 1374185402, 1374185391, 1374185383, 1374185381, 1374185347, 1374185252, 1374185248, 1374185223, 1374185194, 1374185166, 1374185155, 1374185101, 1374185097, 1374185094, 1374185092, 1374185089, 1374185087, 1374185074, 1374185071, 1374185069, 1374185068, 1374185067, 1374185065, 1374185043, 1374185040, 1374185004, 1374185002, 1374184999, 1374184997, 1374184926, 1374184923, 1374184921, 1374184919, 1374184907, 1374184874]} final : False mtd_id 4302 list_pids : [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] Looping around the photos to save general results len do output : 1 /25414644. 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, '3375413') ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25414644', "{'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687}", None, None, None, None, '3375413'), ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413')] time used for this insertion : 0.015857696533203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4972779750823975 time spend to save output : 0.016135454177856445 total time spend for step 1 : 1.513413429260254 step2:final Mon Jul 28 17:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (25414644) 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 25414644 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374184926,1374184923,1374184921,1374184919,1374184907,1374184874,1374185043,1374185040,1374185004,1374185002,1374184999,1374184997,1374185074,1374185071,1374185069,1374185068,1374185067,1374185065,1374185101,1374185097,1374185094,1374185092,1374185089,1374185087,1374185252,1374185248,1374185223,1374185194,1374185166,1374185155,1374185347,1374185409,1374185404,1374185402,1374185391,1374185383,1374185381,1374185438,1374185431,1374185429,1374185428,1374185426,1374185424,1374185611,1374185590,1374185588,1374185577,1374185561,1374185524,1374185805,1374185801,1374185799,1374185766,1374185736,1374185699,1374185849,1374185845,1374185843,1374185833,1374185823,1374185819,1374185933,1374185926,1374185896,1374185895,1374185894,1374185892,1374185973,1374185970,1374185968,1374185966,1374185956,1374185948,1374185984); 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([25414644]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} new output for save of step final : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] map_info['map_portfolio_photo'] : {25414644: [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948, 1374185933, 1374185926, 1374185896, 1374185895, 1374185894, 1374185892, 1374185849, 1374185845, 1374185843, 1374185833, 1374185823, 1374185819, 1374185805, 1374185801, 1374185799, 1374185766, 1374185736, 1374185699, 1374185611, 1374185590, 1374185588, 1374185577, 1374185561, 1374185524, 1374185438, 1374185431, 1374185429, 1374185428, 1374185426, 1374185424, 1374185409, 1374185404, 1374185402, 1374185391, 1374185383, 1374185381, 1374185347, 1374185252, 1374185248, 1374185223, 1374185194, 1374185166, 1374185155, 1374185101, 1374185097, 1374185094, 1374185092, 1374185089, 1374185087, 1374185074, 1374185071, 1374185069, 1374185068, 1374185067, 1374185065, 1374185043, 1374185040, 1374185004, 1374185002, 1374184999, 1374184997, 1374184926, 1374184923, 1374184921, 1374184919, 1374184907, 1374184874]} final : False mtd_id 4302 list_pids : [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] Looping around the photos to save general results len do output : 7 /1374185984.Didn't retrieve data . /1374185973.Didn't retrieve data . /1374185970.Didn't retrieve data . /1374185968.Didn't retrieve data . /1374185966.Didn't retrieve data . /1374185956.Didn't retrieve data . /1374185948.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, '3375413') ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '25414644', '1374185984', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185973', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185970', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185968', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185966', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185956', '0.11542394077202513', None, None, None, None, '3375413'), ('4302', '25414644', '1374185948', '0.11542394077202513', None, None, None, None, '3375413')] time used for this insertion : 0.015821456909179688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06113767623901367 time spend to save output : 0.01628899574279785 total time spend for step 2 : 0.07742667198181152 step3:velours_tree Mon Jul 28 17:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {25414644: [{'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687}]} input_args_next_step : {25414644: ()} output_args : {25414644: [{'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687}]} args : 25414644 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 : ({'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25414644) 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([25414644]) 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.32036685943603516 time spend to save output : 5.245208740234375e-05 total time spend for step 3 : 0.3204193115234375 step4:send_mail_cod Mon Jul 28 17:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} input_args_next_step : {1374185984: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185984 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185973 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185970 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185968 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185966 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185956 depend.output_id : 0 input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ()} output_args : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',)} args : 1374185948 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 : {25414644: [{'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687}]} input_args_next_step : {1374185984: ('0.11542394077202513',), 1374185973: ('0.11542394077202513',), 1374185970: ('0.11542394077202513',), 1374185968: ('0.11542394077202513',), 1374185966: ('0.11542394077202513',), 1374185956: ('0.11542394077202513',), 1374185948: ('0.11542394077202513',), 25414644: ()} output_args : {25414644: [{'plastique': 25414676, 'environnement': 25414677, 'cartonnette': 25414678, 'Carton_brun': 25414679, 'papier': 25414680, 'Teint_Dans_La_Masse': 25414681, 'Carton_gris': 25414682, 'autre_refus': 25414683, 'kraft': 25414684, 'metal': 25414685, 'flou': 25414686, 'mal_croppe': 25414687}]} args : 25414644 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 :8, first value : ('0.11542394077202513',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25414644) 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 ph WHERE photo_id IN (1374185984,1374185973,1374185970,1374185968,1374185966,1374185956,1374185948) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374185948 begin to download photo : 1374185966 begin to download photo : 1374185970 begin to download photo : 1374185984 download finish for photo 1374185948 begin to download photo : 1374185956 download finish for photo 1374185984 download finish for photo 1374185970 download finish for photo 1374185966 begin to download photo : 1374185973 begin to download photo : 1374185968 download finish for photo 1374185956 download finish for photo 1374185973 download finish for photo 1374185968 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette254146761753717619/ imagette254146781753717619/ imagette254146831753717619/ imagette254146841753717619/ imagette254146851753717619/ imagette254146861753717619/ imagette254146871753717619/ imagette254146791753717619/ imagette254146811753717619/ imagette254146821753717619/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P25414644_28-07-2025_17_46_59.pdf 25414676 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146761753717619 25414678 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146781753717619 25414683 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414683 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146831753717619 25414684 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414684 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146841753717619 25414685 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414685 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146851753717619 25414686 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146861753717619 25414687 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146871753717619 25414679 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146791753717619 25414681 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414681 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146811753717619 25414682 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414682 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254146821753717619 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25414644 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25414690,25414691,25414692,25414693,25414694,25414695,25414696,25414697,25414698,25414699,25414700,25414701?tags=plastique,environnement,cartonnette,Carton_brun,papier,Teint_Dans_La_Masse,Carton_gris,autre_refus,kraft,metal,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1374185984] : ('0.11542394077202513',) no score found for photo 1374185984 We are sending mail with results at report@fotonower.com args[1374185973] : ('0.11542394077202513',) no score found for photo 1374185973 We are sending mail with results at report@fotonower.com args[1374185970] : ('0.11542394077202513',) no score found for photo 1374185970 We are sending mail with results at report@fotonower.com args[1374185968] : ('0.11542394077202513',) no score found for photo 1374185968 We are sending mail with results at report@fotonower.com args[1374185966] : ('0.11542394077202513',) no score found for photo 1374185966 We are sending mail with results at report@fotonower.com args[1374185956] : ('0.11542394077202513',) no score found for photo 1374185956 We are sending mail with results at report@fotonower.com args[1374185948] : ('0.11542394077202513',) no score found for photo 1374185948 We are sending mail with results at report@fotonower.com refus_total : 0.11542394077202513 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414644 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_P25414644_28-07-2025_17_46_59.pdf results_Auto_P25414644_28-07-2025_17_46_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414644_28-07-2025_17_46_59.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','25414644','results_Auto_P25414644_28-07-2025_17_46_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414644_28-07-2025_17_46_59.pdf','pdf','','0.07','0.11542394077202513') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25414644]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] map_info['map_portfolio_photo'] : {25414644: [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948, 1374185933, 1374185926, 1374185896, 1374185895, 1374185894, 1374185892, 1374185849, 1374185845, 1374185843, 1374185833, 1374185823, 1374185819, 1374185805, 1374185801, 1374185799, 1374185766, 1374185736, 1374185699, 1374185611, 1374185590, 1374185588, 1374185577, 1374185561, 1374185524, 1374185438, 1374185431, 1374185429, 1374185428, 1374185426, 1374185424, 1374185409, 1374185404, 1374185402, 1374185391, 1374185383, 1374185381, 1374185347, 1374185252, 1374185248, 1374185223, 1374185194, 1374185166, 1374185155, 1374185101, 1374185097, 1374185094, 1374185092, 1374185089, 1374185087, 1374185074, 1374185071, 1374185069, 1374185068, 1374185067, 1374185065, 1374185043, 1374185040, 1374185004, 1374185002, 1374184999, 1374184997, 1374184926, 1374184923, 1374184921, 1374184919, 1374184907, 1374184874]} final : False mtd_id 4302 list_pids : [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] 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, '3375413') ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '25414644', '1374185984', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413')] time used for this insertion : 0.013153553009033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5040912628173828 time spend to save output : 0.013424158096313477 total time spend for step 4 : 1.5175154209136963 step5:split_time_score Mon Jul 28 17:47:01 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 : ['25414644'] 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 : [('25414644',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25414644) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374185984: {'path': 'temp/1753717619_54721_1374185984_7d35eafebea197737e4074ba43a25f01.jpg', 'extension': 'jpg'}, 1374185948: {'path': 'temp/1753717619_54721_1374185948_47c12e64a2bca932165baad4c62a169f.jpg', 'extension': 'jpg'}, 1374185956: {'path': 'temp/1753717619_54721_1374185956_9a9135b0de23d358ab49c8c36d041e80.jpg', 'extension': 'jpg'}, 1374185970: {'path': 'temp/1753717619_54721_1374185970_59e510c1ceb330d9008f3ffeed73c5ad.jpg', 'extension': 'jpg'}, 1374185973: {'path': 'temp/1753717619_54721_1374185973_b1a3d03b68d496382dd8713960ad133b.jpg', 'extension': 'jpg'}, 1374185966: {'path': 'temp/1753717619_54721_1374185966_e9349e47e25925b65c1c0ff21e7d1bab.jpg', 'extension': 'jpg'}, 1374185968: {'path': 'temp/1753717619_54721_1374185968_968f2612da56aea0a4bb47ed3f01d026.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 = 25414644; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25414644 group by h (('17', 74),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25414644 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 (25414644) 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 (25414644) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28072025 25414644 Nombre de photos uploadées : 74 / 23040 (0%) 28072025 25414644 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 28072025 25414644 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1374184926, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/b23e5c97d07a0b00be724b320d5dc03c.jpg', 'username': None, 'uploaded_at': 1753716722, 'text': 'image_28072025_17_31_05_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374184923, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e72d39375019f824c427d817cd9b92dd.jpg', 'username': None, 'uploaded_at': 1753716722, 'text': 'image_28072025_17_31_15_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374184921, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/20f5ec1cbd3c2e96c7fa0d89fbb75798.jpg', 'username': None, 'uploaded_at': 1753716722, 'text': 'image_28072025_17_31_24_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374184919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/2800ff3ec95c214ef57d470e60ffb28a.jpg', 'username': None, 'uploaded_at': 1753716722, 'text': 'image_28072025_17_31_34_010145m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004230499267578125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25414644, '2025-07-28' ) 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-07-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2013825,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21899986267089844 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= 2013825 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25384876, 'dashboard_result_id': 13228013, '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_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25385066, 'dashboard_result_id': 13228014, '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_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25385391, 'dashboard_result_id': 13228015, '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_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25385661, 'dashboard_result_id': 13228016, '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_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25385913, 'dashboard_result_id': 13228017, '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_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25386460, 'dashboard_result_id': 13228018, '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_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25387009, 'dashboard_result_id': 13228019, '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_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25387406, 'dashboard_result_id': 13228020, '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_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25387937, 'dashboard_result_id': 13228021, '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_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25388457, 'dashboard_result_id': 13228022, '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_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25389085, 'dashboard_result_id': 13228023, '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_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25389722, 'dashboard_result_id': 13228024, '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_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25390356, 'dashboard_result_id': 13228025, '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_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25390918, 'dashboard_result_id': 13228026, '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_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25391543, 'dashboard_result_id': 13228027, '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_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25392092, 'dashboard_result_id': 13228028, '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_P25392092_28-07-2025_09_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25392870, 'dashboard_result_id': 13228029, '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_P25392870_28-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392895, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25393597, 'dashboard_result_id': 13228030, '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_P25393597_28-07-2025_09_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25393609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25393610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25393611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25393612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25393613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25393614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25393615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25393616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25393617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25393618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25393619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25393620, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25394218, 'dashboard_result_id': 13228031, '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_P25394218_28-07-2025_09_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394264, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25394839, 'dashboard_result_id': 13228032, '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_P25394839_28-07-2025_10_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394953, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25395703, 'dashboard_result_id': 13228033, '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_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25396124, 'dashboard_result_id': 13228034, '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_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25396715, 'dashboard_result_id': 13228035, '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_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25397211, 'dashboard_result_id': 13228036, '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_P25397211_28-07-2025_11_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25397866, 'dashboard_result_id': 13228037, '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_P25397866_28-07-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25397884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397892, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25398502, 'dashboard_result_id': 13228038, '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_P25398502_28-07-2025_12_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25398523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25398524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25398525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25398526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25398527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25398528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25398529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25398530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25398531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25398532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25398533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25398534, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25399148, 'dashboard_result_id': 13228039, '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_P25399148_28-07-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25399183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399194, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25399890, 'dashboard_result_id': 13228040, '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_P25399890_28-07-2025_12_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25399905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399910, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25400579, 'dashboard_result_id': 13228041, '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_P25400579_28-07-2025_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25400604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25400605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25400607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25400608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25400609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25400610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25400611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25400612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25400613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25400614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25400615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25400616, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25401283, 'dashboard_result_id': 13228042, '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_P25401283_28-07-2025_12_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401316, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25401924, 'dashboard_result_id': 13228043, '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_P25401924_28-07-2025_12_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401970, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25402517, 'dashboard_result_id': 13228044, '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_P25402517_28-07-2025_13_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25402562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25402563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25402564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25402565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25402566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25402567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25402568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25402569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25402570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25402571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25402572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25402573, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25403150, 'dashboard_result_id': 13228045, '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_P25403150_28-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25403196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403208, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25403757, 'dashboard_result_id': 13228046, '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_P25403757_28-07-2025_13_31_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25403819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403824, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403828, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25404400, 'dashboard_result_id': 13228047, '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_P25404400_28-07-2025_13_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25404414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25404415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25404416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25404417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25404418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25404419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25404420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25404421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25404422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25404423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25404424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25404425, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25405008, 'dashboard_result_id': 13228048, '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_P25405008_28-07-2025_14_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405063, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25405568, 'dashboard_result_id': 13228049, '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_P25405568_28-07-2025_14_16_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405593, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25406257, 'dashboard_result_id': 13228050, '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_P25406257_28-07-2025_14_31_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406309, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25406884, 'dashboard_result_id': 13228051, '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_P25406884_28-07-2025_14_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406911, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25407515, 'dashboard_result_id': 13228052, '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_P25407515_28-07-2025_15_00_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25407560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25407561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25407562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25407563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25407564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25407565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25407566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25407567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25407568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25407569, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25407571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25407572, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25408316, 'dashboard_result_id': 13228053, '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_P25408316_28-07-2025_15_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25408334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25408335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25408336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25408337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25408338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25408339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25408340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25408341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25408342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25408343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25408344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25408345, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25409094, 'dashboard_result_id': 13228054, '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_P25409094_28-07-2025_15_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409132, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25409600, 'dashboard_result_id': 13228055, '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_P25409600_28-07-2025_15_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409623, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25410188, 'dashboard_result_id': 13228056, '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_P25410188_28-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410224, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25410783, 'dashboard_result_id': 13228057, '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_P25410783_28-07-2025_16_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410818, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25411408, 'dashboard_result_id': 13228058, '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_P25411408_28-07-2025_16_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25411443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25411444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25411445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25411446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25411447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25411448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25411449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25411450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25411451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25411452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25411453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25411454, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25412097, 'dashboard_result_id': 13228059, '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_P25412097_28-07-2025_16_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25412109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25412110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25412111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25412112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25412113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25412114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25412115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25412116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25412118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25412119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25412120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25412121, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25412569, 'dashboard_result_id': 13228060, '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_P25412569_28-07-2025_17_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25412595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25412596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25412597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25412598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25412599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25412600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25412601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25412602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25412603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25412604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25412605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25412606, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25413259, 'dashboard_result_id': 13228061, '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_P25413259_28-07-2025_17_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25413272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25413273, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25413274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25413275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25413276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25413277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25413278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25413279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25413280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25413281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25413283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25413284, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25414037, 'dashboard_result_id': 13228062, '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_P25414037_28-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414053, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2025449, 'mtr_portfolio_id': 25414644, 'dashboard_result_id': 13228063, '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_P25414644_28-07-2025_17_44_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414687, '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 = 25384876 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': 3365715, 'mtr_portfolio_id': 25384876, 'created_at': datetime.datetime(2025, 7, 28, 5, 16, 57), 'result': '0.1173604949788806', 'result_long': None, 'result_double': None}] Qualite : 0.1173604949788806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25384876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25384876 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_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, 'pht': 3726}}" where mtr_portfolio_id = 25384876 and dashboard_run_id = 2025449 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`=25384876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228013, 0.1173604949788806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, '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 = 25385066 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': 3365745, 'mtr_portfolio_id': 25385066, 'created_at': datetime.datetime(2025, 7, 28, 5, 30, 57), 'result': '0.11097435655929282', 'result_long': None, 'result_double': None}] Qualite : 0.11097435655929282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385066_28-07-2025_05_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385066 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_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, 'pht': 3726}}" where mtr_portfolio_id = 25385066 and dashboard_run_id = 2025449 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`=25385066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228014, 0.11097435655929282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, '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 = 25385391 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': 3365819, 'mtr_portfolio_id': 25385391, 'created_at': datetime.datetime(2025, 7, 28, 5, 47, 32), 'result': '0.11314513100975243', 'result_long': None, 'result_double': None}] Qualite : 0.11314513100975243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385391_28-07-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385391 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_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, 'pht': 3726}}" where mtr_portfolio_id = 25385391 and dashboard_run_id = 2025449 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`=25385391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228015, 0.11314513100975243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, '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 = 25385661 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': 3365908, 'mtr_portfolio_id': 25385661, 'created_at': datetime.datetime(2025, 7, 28, 6, 0, 57), 'result': '0.090633587082022', 'result_long': None, 'result_double': None}] Qualite : 0.090633587082022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_06_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385661 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_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, 'pht': 3726}}" where mtr_portfolio_id = 25385661 and dashboard_run_id = 2025449 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`=25385661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228016, 0.090633587082022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, '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 = 25385913 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': 3366007, 'mtr_portfolio_id': 25385913, 'created_at': datetime.datetime(2025, 7, 28, 6, 16, 59), 'result': '0.05071365889584217', 'result_long': None, 'result_double': None}] Qualite : 0.05071365889584217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385913_28-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385913 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_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, 'pht': 3726}}" where mtr_portfolio_id = 25385913 and dashboard_run_id = 2025449 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`=25385913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228017, 0.05071365889584217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, '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 = 25386460 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': 3366149, 'mtr_portfolio_id': 25386460, 'created_at': datetime.datetime(2025, 7, 28, 6, 33), 'result': '0.04742389937600771', 'result_long': None, 'result_double': None}] Qualite : 0.04742389937600771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25386460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25386460_28-07-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25386460 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_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, 'pht': 3726}}" where mtr_portfolio_id = 25386460 and dashboard_run_id = 2025449 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`=25386460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228018, 0.04742389937600771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, '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 = 25387009 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': 3366289, 'mtr_portfolio_id': 25387009, 'created_at': datetime.datetime(2025, 7, 28, 6, 47), 'result': '0.055752465574467995', 'result_long': None, 'result_double': None}] Qualite : 0.055752465574467995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387009_28-07-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387009 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_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, 'pht': 3726}}" where mtr_portfolio_id = 25387009 and dashboard_run_id = 2025449 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`=25387009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228019, 0.055752465574467995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, '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 = 25387406 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': 3366392, 'mtr_portfolio_id': 25387406, 'created_at': datetime.datetime(2025, 7, 28, 7, 1, 1), 'result': '0.06725359579357054', 'result_long': None, 'result_double': None}] Qualite : 0.06725359579357054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387406_28-07-2025_07_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387406 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_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, 'pht': 3726}}" where mtr_portfolio_id = 25387406 and dashboard_run_id = 2025449 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`=25387406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228020, 0.06725359579357054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, '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 = 25387937 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': 3366561, 'mtr_portfolio_id': 25387937, 'created_at': datetime.datetime(2025, 7, 28, 7, 16, 59), 'result': '0.04415644506976258', 'result_long': None, 'result_double': None}] Qualite : 0.04415644506976258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387937_28-07-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387937 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_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, 'pht': 3726}}" where mtr_portfolio_id = 25387937 and dashboard_run_id = 2025449 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`=25387937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228021, 0.04415644506976258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, '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 = 25388457 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': 3366663, 'mtr_portfolio_id': 25388457, 'created_at': datetime.datetime(2025, 7, 28, 7, 30, 59), 'result': '0.031648934476376386', 'result_long': None, 'result_double': None}] Qualite : 0.031648934476376386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25388457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25388457_28-07-2025_07_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25388457 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_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, 'pht': 3726}}" where mtr_portfolio_id = 25388457 and dashboard_run_id = 2025449 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`=25388457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228022, 0.031648934476376386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, '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 = 25389085 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': 3366829, 'mtr_portfolio_id': 25389085, 'created_at': datetime.datetime(2025, 7, 28, 7, 46, 59), 'result': '0.03735173297738689', 'result_long': None, 'result_double': None}] Qualite : 0.03735173297738689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25389085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389085_28-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25389085 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_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, 'pht': 3726}}" where mtr_portfolio_id = 25389085 and dashboard_run_id = 2025449 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`=25389085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228023, 0.03735173297738689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, '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 = 25389722 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': 3366969, 'mtr_portfolio_id': 25389722, 'created_at': datetime.datetime(2025, 7, 28, 8, 3), 'result': '0.04315689843808117', 'result_long': None, 'result_double': None}] Qualite : 0.04315689843808117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25389722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389722_28-07-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25389722 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_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, 'pht': 3726}}" where mtr_portfolio_id = 25389722 and dashboard_run_id = 2025449 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`=25389722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228024, 0.04315689843808117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, '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 = 25390356 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': 3367148, 'mtr_portfolio_id': 25390356, 'created_at': datetime.datetime(2025, 7, 28, 8, 16, 59), 'result': '0.03434362512438191', 'result_long': None, 'result_double': None}] Qualite : 0.03434362512438191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25390356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390356_28-07-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25390356 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_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, 'pht': 3726}}" where mtr_portfolio_id = 25390356 and dashboard_run_id = 2025449 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`=25390356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228025, 0.03434362512438191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, '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 = 25390918 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': 3367327, 'mtr_portfolio_id': 25390918, 'created_at': datetime.datetime(2025, 7, 28, 8, 32, 58), 'result': '0.026287391554805105', 'result_long': None, 'result_double': None}] Qualite : 0.026287391554805105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25390918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390918_28-07-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25390918 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_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, 'pht': 3726}}" where mtr_portfolio_id = 25390918 and dashboard_run_id = 2025449 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`=25390918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228026, 0.026287391554805105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, '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 = 25391543 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': 3367574, 'mtr_portfolio_id': 25391543, 'created_at': datetime.datetime(2025, 7, 28, 8, 46, 59), 'result': '0.033731292225415994', 'result_long': None, 'result_double': None}] Qualite : 0.033731292225415994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25391543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25391543_28-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25391543 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_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, 'pht': 3726}}" where mtr_portfolio_id = 25391543 and dashboard_run_id = 2025449 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`=25391543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228027, 0.033731292225415994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, '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 = 25392092 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': 3367823, 'mtr_portfolio_id': 25392092, 'created_at': datetime.datetime(2025, 7, 28, 9, 1), 'result': '0.026456947253206832', 'result_long': None, 'result_double': None}] Qualite : 0.026456947253206832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25392092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392092_28-07-2025_09_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25392092 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_P25392092_28-07-2025_09_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, 'pht': 3726}}" where mtr_portfolio_id = 25392092 and dashboard_run_id = 2025449 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`=25392092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228028, 0.026456947253206832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392092_28-07-2025_09_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, '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 = 25392870 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': 3368046, 'mtr_portfolio_id': 25392870, 'created_at': datetime.datetime(2025, 7, 28, 9, 16, 58), 'result': '0.01691548473516615', 'result_long': None, 'result_double': None}] Qualite : 0.01691548473516615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25392870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392870_28-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25392870 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_P25392870_28-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392895, 'pht': 3726}}" where mtr_portfolio_id = 25392870 and dashboard_run_id = 2025449 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`=25392870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228029, 0.01691548473516615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392870_28-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392893, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392895, '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 = 25393597 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': 3368235, 'mtr_portfolio_id': 25393597, 'created_at': datetime.datetime(2025, 7, 28, 9, 31), 'result': '0.00607654985970418', 'result_long': None, 'result_double': None}] Qualite : 0.00607654985970418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25393597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25393597_28-07-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25393597 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_P25393597_28-07-2025_09_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25393609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25393610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25393611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25393612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25393613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25393614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25393615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25393616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25393617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25393618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25393619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25393620, 'pht': 3726}}" where mtr_portfolio_id = 25393597 and dashboard_run_id = 2025449 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`=25393597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228030, 0.00607654985970418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25393597_28-07-2025_09_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25393609, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25393610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25393611, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25393612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25393613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25393614, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25393615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25393616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25393617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25393618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25393619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25393620, '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 = 25394218 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': 3368432, 'mtr_portfolio_id': 25394218, 'created_at': datetime.datetime(2025, 7, 28, 9, 46, 57), 'result': '0.010094284135099232', 'result_long': None, 'result_double': None}] Qualite : 0.010094284135099232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25394218 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25394218_28-07-2025_09_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25394218 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_P25394218_28-07-2025_09_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394264, 'pht': 3726}}" where mtr_portfolio_id = 25394218 and dashboard_run_id = 2025449 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`=25394218 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228031, 0.010094284135099232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25394218_28-07-2025_09_46_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394259, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394263, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394264, '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 = 25394839 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': 3368632, 'mtr_portfolio_id': 25394839, 'created_at': datetime.datetime(2025, 7, 28, 10, 1), 'result': '0.025736566853153342', 'result_long': None, 'result_double': None}] Qualite : 0.025736566853153342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25394839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25394839_28-07-2025_10_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25394839 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_P25394839_28-07-2025_10_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394953, 'pht': 3726}}" where mtr_portfolio_id = 25394839 and dashboard_run_id = 2025449 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`=25394839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228032, 0.025736566853153342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25394839_28-07-2025_10_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25394942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25394943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25394944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25394945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25394946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25394947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25394948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25394949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25394950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25394951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25394952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25394953, '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 = 25395703 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': 3368889, 'mtr_portfolio_id': 25395703, 'created_at': datetime.datetime(2025, 7, 28, 10, 16, 56), 'result': '0.01722956750550932', 'result_long': None, 'result_double': None}] Qualite : 0.01722956750550932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25395703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25395703_28-07-2025_10_16_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25395703 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_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, 'pht': 3726}}" where mtr_portfolio_id = 25395703 and dashboard_run_id = 2025449 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`=25395703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228033, 0.01722956750550932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, '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 = 25396124 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': 3369057, 'mtr_portfolio_id': 25396124, 'created_at': datetime.datetime(2025, 7, 28, 10, 30, 56), 'result': '0.037656349859255346', 'result_long': None, 'result_double': None}] Qualite : 0.037656349859255346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25396124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396124_28-07-2025_10_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25396124 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_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, 'pht': 3726}}" where mtr_portfolio_id = 25396124 and dashboard_run_id = 2025449 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`=25396124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228034, 0.037656349859255346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, '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 = 25396715 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': 3369321, 'mtr_portfolio_id': 25396715, 'created_at': datetime.datetime(2025, 7, 28, 10, 46, 58), 'result': '0.044422878024492754', 'result_long': None, 'result_double': None}] Qualite : 0.044422878024492754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25396715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396715_28-07-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25396715 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_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, 'pht': 3726}}" where mtr_portfolio_id = 25396715 and dashboard_run_id = 2025449 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`=25396715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228035, 0.044422878024492754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, '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 = 25397211 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': 3369527, 'mtr_portfolio_id': 25397211, 'created_at': datetime.datetime(2025, 7, 28, 11, 0, 30), 'result': '0.06687657416699358', 'result_long': None, 'result_double': None}] Qualite : 0.06687657416699358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25397211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_11_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25397211 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_P25397211_28-07-2025_11_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, 'pht': 3726}}" where mtr_portfolio_id = 25397211 and dashboard_run_id = 2025449 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`=25397211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228036, 0.06687657416699358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_11_00_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, '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 = 25397866 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': 3369798, 'mtr_portfolio_id': 25397866, 'created_at': datetime.datetime(2025, 7, 28, 11, 16, 59), 'result': '0.043390831776071975', 'result_long': None, 'result_double': None}] Qualite : 0.043390831776071975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25397866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397866_28-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25397866 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_P25397866_28-07-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25397884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397892, 'pht': 3726}}" where mtr_portfolio_id = 25397866 and dashboard_run_id = 2025449 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`=25397866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228037, 0.043390831776071975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397866_28-07-2025_11_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25397884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397892, '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 = 25398502 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': 3369997, 'mtr_portfolio_id': 25398502, 'created_at': datetime.datetime(2025, 7, 28, 12, 0, 31), 'result': '0.08691425089740232', 'result_long': None, 'result_double': None}] Qualite : 0.08691425089740232 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25398502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25398502_28-07-2025_12_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25398502 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_P25398502_28-07-2025_12_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25398523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25398524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25398525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25398526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25398527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25398528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25398529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25398530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25398531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25398532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25398533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25398534, 'pht': 3726}}" where mtr_portfolio_id = 25398502 and dashboard_run_id = 2025449 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`=25398502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228038, 0.08691425089740232, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25398502_28-07-2025_12_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25398523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25398524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25398525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25398526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25398527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25398528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25398529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25398530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25398531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25398532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25398533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25398534, '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 = 25399148 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': 3370230, 'mtr_portfolio_id': 25399148, 'created_at': datetime.datetime(2025, 7, 28, 11, 46, 58), 'result': '0.05989311640585284', 'result_long': None, 'result_double': None}] Qualite : 0.05989311640585284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25399148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25399148_28-07-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25399148 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_P25399148_28-07-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25399183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399194, 'pht': 3726}}" where mtr_portfolio_id = 25399148 and dashboard_run_id = 2025449 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`=25399148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228039, 0.05989311640585284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25399148_28-07-2025_11_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25399183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399188, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399194, '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 = 25399890 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': 3370427, 'mtr_portfolio_id': 25399890, 'created_at': datetime.datetime(2025, 7, 28, 12, 0, 57), 'result': '0.08455748696393044', 'result_long': None, 'result_double': None}] Qualite : 0.08455748696393044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25399890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25399890_28-07-2025_12_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25399890 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_P25399890_28-07-2025_12_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25399905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399910, 'pht': 3726}}" where mtr_portfolio_id = 25399890 and dashboard_run_id = 2025449 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`=25399890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228040, 0.08455748696393044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25399890_28-07-2025_12_00_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25399899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25399900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25399901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25399902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25399903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25399904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25399905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25399906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25399907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25399908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25399909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25399910, '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 = 25400579 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': 3370608, 'mtr_portfolio_id': 25400579, 'created_at': datetime.datetime(2025, 7, 28, 12, 17), 'result': '0.0733181640518117', 'result_long': None, 'result_double': None}] Qualite : 0.0733181640518117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25400579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25400579_28-07-2025_12_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25400579 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_P25400579_28-07-2025_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25400604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25400605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25400607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25400608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25400609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25400610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25400611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25400612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25400613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25400614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25400615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25400616, 'pht': 3726}}" where mtr_portfolio_id = 25400579 and dashboard_run_id = 2025449 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`=25400579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228041, 0.0733181640518117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25400579_28-07-2025_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25400604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25400605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25400607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25400608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25400609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25400610, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25400611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25400612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25400613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25400614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25400615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25400616, '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 = 25401283 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': 3370754, 'mtr_portfolio_id': 25401283, 'created_at': datetime.datetime(2025, 7, 28, 12, 32, 59), 'result': '0.069161341989784', 'result_long': None, 'result_double': None}] Qualite : 0.069161341989784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25401283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25401283_28-07-2025_12_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25401283 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_P25401283_28-07-2025_12_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401316, 'pht': 3726}}" where mtr_portfolio_id = 25401283 and dashboard_run_id = 2025449 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`=25401283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228042, 0.069161341989784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25401283_28-07-2025_12_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401316, '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 = 25401924 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': 3370974, 'mtr_portfolio_id': 25401924, 'created_at': datetime.datetime(2025, 7, 28, 12, 46, 59), 'result': '0.06321454201327235', 'result_long': None, 'result_double': None}] Qualite : 0.06321454201327235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25401924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25401924_28-07-2025_12_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25401924 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_P25401924_28-07-2025_12_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401970, 'pht': 3726}}" where mtr_portfolio_id = 25401924 and dashboard_run_id = 2025449 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`=25401924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228043, 0.06321454201327235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25401924_28-07-2025_12_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25401959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25401960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25401961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25401962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25401963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25401964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25401965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25401966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25401967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25401968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25401969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25401970, '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 = 25402517 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': 3371196, 'mtr_portfolio_id': 25402517, 'created_at': datetime.datetime(2025, 7, 28, 13, 2, 59), 'result': '0.06957812905156892', 'result_long': None, 'result_double': None}] Qualite : 0.06957812905156892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25402517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25402517_28-07-2025_13_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25402517 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_P25402517_28-07-2025_13_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25402562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25402563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25402564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25402565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25402566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25402567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25402568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25402569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25402570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25402571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25402572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25402573, 'pht': 3726}}" where mtr_portfolio_id = 25402517 and dashboard_run_id = 2025449 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`=25402517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228044, 0.06957812905156892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25402517_28-07-2025_13_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25402562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25402563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25402564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25402565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25402566, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25402567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25402568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25402569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25402570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25402571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25402572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25402573, '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 = 25403150 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': 3371454, 'mtr_portfolio_id': 25403150, 'created_at': datetime.datetime(2025, 7, 28, 13, 17), 'result': '0.08074199427640885', 'result_long': None, 'result_double': None}] Qualite : 0.08074199427640885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25403150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25403150_28-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25403150 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_P25403150_28-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25403196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403208, 'pht': 3726}}" where mtr_portfolio_id = 25403150 and dashboard_run_id = 2025449 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`=25403150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228045, 0.08074199427640885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25403150_28-07-2025_13_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25403196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403202, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403206, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403208, '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 = 25403757 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': 3371660, 'mtr_portfolio_id': 25403757, 'created_at': datetime.datetime(2025, 7, 28, 13, 31), 'result': '0.07835307329675546', 'result_long': None, 'result_double': None}] Qualite : 0.07835307329675546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25403757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25403757_28-07-2025_13_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25403757 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_P25403757_28-07-2025_13_31_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25403819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403824, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403828, 'pht': 3726}}" where mtr_portfolio_id = 25403757 and dashboard_run_id = 2025449 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`=25403757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228046, 0.07835307329675546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25403757_28-07-2025_13_31_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25403817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25403818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25403819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25403820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25403821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25403822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25403823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25403824, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25403825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25403826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25403827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25403828, '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 = 25404400 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': 3371887, 'mtr_portfolio_id': 25404400, 'created_at': datetime.datetime(2025, 7, 28, 13, 47, 1), 'result': '0.08943385857084171', 'result_long': None, 'result_double': None}] Qualite : 0.08943385857084171 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25404400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25404400_28-07-2025_13_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25404400 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_P25404400_28-07-2025_13_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25404414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25404415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25404416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25404417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25404418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25404419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25404420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25404421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25404422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25404423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25404424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25404425, 'pht': 3726}}" where mtr_portfolio_id = 25404400 and dashboard_run_id = 2025449 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`=25404400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228047, 0.08943385857084171, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25404400_28-07-2025_13_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25404414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25404415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25404416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25404417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25404418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25404419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25404420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25404421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25404422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25404423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25404424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25404425, '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 = 25405008 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': 3372100, 'mtr_portfolio_id': 25405008, 'created_at': datetime.datetime(2025, 7, 28, 14, 0, 58), 'result': '0.06791404404023728', 'result_long': None, 'result_double': None}] Qualite : 0.06791404404023728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25405008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25405008_28-07-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25405008 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_P25405008_28-07-2025_14_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405063, 'pht': 3726}}" where mtr_portfolio_id = 25405008 and dashboard_run_id = 2025449 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`=25405008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228048, 0.06791404404023728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25405008_28-07-2025_14_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405063, '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 = 25405568 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': 3372348, 'mtr_portfolio_id': 25405568, 'created_at': datetime.datetime(2025, 7, 28, 14, 16, 29), 'result': '0.08989993253315477', 'result_long': None, 'result_double': None}] Qualite : 0.08989993253315477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25405568 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25405568_28-07-2025_14_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25405568 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_P25405568_28-07-2025_14_16_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405593, 'pht': 3726}}" where mtr_portfolio_id = 25405568 and dashboard_run_id = 2025449 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`=25405568 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228049, 0.08989993253315477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25405568_28-07-2025_14_16_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25405582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25405583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25405584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25405585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25405586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25405587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25405588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25405589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25405590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25405591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25405592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25405593, '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 = 25406257 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': 3372563, 'mtr_portfolio_id': 25406257, 'created_at': datetime.datetime(2025, 7, 28, 14, 31, 1), 'result': '0.07960497282954583', 'result_long': None, 'result_double': None}] Qualite : 0.07960497282954583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25406257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25406257_28-07-2025_14_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25406257 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_P25406257_28-07-2025_14_31_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406309, 'pht': 3726}}" where mtr_portfolio_id = 25406257 and dashboard_run_id = 2025449 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`=25406257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228050, 0.07960497282954583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25406257_28-07-2025_14_31_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406309, '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 = 25406884 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': 3372743, 'mtr_portfolio_id': 25406884, 'created_at': datetime.datetime(2025, 7, 28, 14, 46, 58), 'result': '0.06692148994452393', 'result_long': None, 'result_double': None}] Qualite : 0.06692148994452393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25406884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25406884_28-07-2025_14_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25406884 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_P25406884_28-07-2025_14_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406911, 'pht': 3726}}" where mtr_portfolio_id = 25406884 and dashboard_run_id = 2025449 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`=25406884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228051, 0.06692148994452393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25406884_28-07-2025_14_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25406899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25406900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25406901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25406902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25406903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25406904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25406905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25406906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25406907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25406908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25406909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25406911, '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 = 25407515 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 = 25407515 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 = 25407515 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25407515 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 = 25407515 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 = 25407515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25407515_28-07-2025_15_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25407515 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_P25407515_28-07-2025_15_00_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25407560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25407561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25407562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25407563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25407564, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25407565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25407566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25407567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25407568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25407569, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25407571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25407572, 'pht': 3726}}" where mtr_portfolio_id = 25407515 and dashboard_run_id = 2025449 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 = 25408316 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': 3373225, 'mtr_portfolio_id': 25408316, 'created_at': datetime.datetime(2025, 7, 28, 15, 18, 59), 'result': '0.07173173512743884', 'result_long': None, 'result_double': None}] Qualite : 0.07173173512743884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25408316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25408316_28-07-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25408316 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_P25408316_28-07-2025_15_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25408334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25408335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25408336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25408337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25408338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25408339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25408340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25408341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25408342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25408343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25408344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25408345, 'pht': 3726}}" where mtr_portfolio_id = 25408316 and dashboard_run_id = 2025449 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`=25408316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228053, 0.07173173512743884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25408316_28-07-2025_15_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25408334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25408335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25408336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25408337, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25408338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25408339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25408340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25408341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25408342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25408343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25408344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25408345, '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 = 25409094 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': 3373447, 'mtr_portfolio_id': 25409094, 'created_at': datetime.datetime(2025, 7, 28, 15, 30, 57), 'result': '0.060387108444967794', 'result_long': None, 'result_double': None}] Qualite : 0.060387108444967794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25409094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25409094_28-07-2025_15_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25409094 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_P25409094_28-07-2025_15_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409132, 'pht': 3726}}" where mtr_portfolio_id = 25409094 and dashboard_run_id = 2025449 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`=25409094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228054, 0.060387108444967794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25409094_28-07-2025_15_30_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409130, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409132, '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 = 25409600 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': 3373664, 'mtr_portfolio_id': 25409600, 'created_at': datetime.datetime(2025, 7, 28, 15, 46, 57), 'result': '0.06858203821950076', 'result_long': None, 'result_double': None}] Qualite : 0.06858203821950076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25409600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25409600_28-07-2025_15_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25409600 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_P25409600_28-07-2025_15_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409623, 'pht': 3726}}" where mtr_portfolio_id = 25409600 and dashboard_run_id = 2025449 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`=25409600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228055, 0.06858203821950076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25409600_28-07-2025_15_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25409612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25409613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25409614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25409615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25409616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25409617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25409618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25409619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25409620, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25409621, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25409622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25409623, '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 = 25410188 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': 3373868, 'mtr_portfolio_id': 25410188, 'created_at': datetime.datetime(2025, 7, 28, 16, 0, 59), 'result': '0.07399001503133384', 'result_long': None, 'result_double': None}] Qualite : 0.07399001503133384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25410188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25410188_28-07-2025_16_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25410188 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_P25410188_28-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410224, 'pht': 3726}}" where mtr_portfolio_id = 25410188 and dashboard_run_id = 2025449 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`=25410188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228056, 0.07399001503133384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25410188_28-07-2025_16_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410224, '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 = 25410783 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': 3374091, 'mtr_portfolio_id': 25410783, 'created_at': datetime.datetime(2025, 7, 28, 16, 16, 58), 'result': '0.09158894894636103', 'result_long': None, 'result_double': None}] Qualite : 0.09158894894636103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25410783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25410783_28-07-2025_16_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25410783 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_P25410783_28-07-2025_16_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410818, 'pht': 3726}}" where mtr_portfolio_id = 25410783 and dashboard_run_id = 2025449 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`=25410783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228057, 0.09158894894636103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25410783_28-07-2025_16_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25410807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25410808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25410809, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25410810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25410811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25410812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25410813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25410814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25410815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25410816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25410817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25410818, '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 = 25411408 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': 3374279, 'mtr_portfolio_id': 25411408, 'created_at': datetime.datetime(2025, 7, 28, 16, 30, 58), 'result': '0.08703317968121865', 'result_long': None, 'result_double': None}] Qualite : 0.08703317968121865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25411408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25411408_28-07-2025_16_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25411408 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_P25411408_28-07-2025_16_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25411443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25411444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25411445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25411446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25411447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25411448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25411449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25411450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25411451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25411452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25411453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25411454, 'pht': 3726}}" where mtr_portfolio_id = 25411408 and dashboard_run_id = 2025449 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`=25411408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228058, 0.08703317968121865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25411408_28-07-2025_16_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25411443, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25411444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25411445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25411446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25411447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25411448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25411449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25411450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25411451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25411452, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25411453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25411454, '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 = 25412097 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 = 25412097 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 = 25412097 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25412097 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 = 25412097 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 = 25412097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25412097_28-07-2025_16_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25412097 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_P25412097_28-07-2025_16_47_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25412109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25412110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25412111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25412112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25412113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25412114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25412115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25412116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25412118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25412119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25412120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25412121, 'pht': 3726}}" where mtr_portfolio_id = 25412097 and dashboard_run_id = 2025449 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 = 25412569 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 = 25412569 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 = 25412569 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25412569 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 = 25412569 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 = 25412569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25412569_28-07-2025_17_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25412569 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_P25412569_28-07-2025_17_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25412595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25412596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25412597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25412598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25412599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25412600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25412601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25412602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25412603, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25412604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25412605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25412606, 'pht': 3726}}" where mtr_portfolio_id = 25412569 and dashboard_run_id = 2025449 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 = 25413259 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': 3374985, 'mtr_portfolio_id': 25413259, 'created_at': datetime.datetime(2025, 7, 28, 17, 16, 57), 'result': '0.0911126896209824', 'result_long': None, 'result_double': None}] Qualite : 0.0911126896209824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25413259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25413259_28-07-2025_17_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25413259 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_P25413259_28-07-2025_17_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25413272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25413273, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25413274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25413275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25413276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25413277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25413278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25413279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25413280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25413281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25413283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25413284, 'pht': 3726}}" where mtr_portfolio_id = 25413259 and dashboard_run_id = 2025451 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`=25413259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228061, 0.0911126896209824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25413259_28-07-2025_17_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25413272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25413273, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25413274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25413275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25413276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25413277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25413278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25413279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25413280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25413281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25413283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25413284, '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 = 25414037 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': 3375233, 'mtr_portfolio_id': 25414037, 'created_at': datetime.datetime(2025, 7, 28, 17, 33), 'result': '0.08078468901995683', 'result_long': None, 'result_double': None}] Qualite : 0.08078468901995683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25414037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414037_28-07-2025_17_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25414037 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_P25414037_28-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414053, 'pht': 3726}}" where mtr_portfolio_id = 25414037 and dashboard_run_id = 2025451 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`=25414037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228062, 0.08078468901995683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414037_28-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414045, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414053, '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 = 25414644 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': 3375413, 'mtr_portfolio_id': 25414644, 'created_at': datetime.datetime(2025, 7, 28, 17, 46, 59), 'result': '0.11542394077202513', 'result_long': None, 'result_double': None}] Qualite : 0.11542394077202513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25414644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414644_28-07-2025_17_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25414644 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_P25414644_28-07-2025_17_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414687, 'pht': 3726}}" where mtr_portfolio_id = 25414644 and dashboard_run_id = 2025451 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`=25414644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13228063, 0.11542394077202513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25414644_28-07-2025_17_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25414676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25414677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25414678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25414679, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25414680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25414681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25414682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25414683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25414684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25414685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25414686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25414687, '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 (25384876,25385066,25385391,25385661,25385913,25386460,25387009,25387406,25387937,25388457,25389085,25389722,25390356,25390918,25391543,25392092,25392870,25393597,25394218,25394839,25395703,25396124,25396715,25397211,25397866,25398502,25399148,25399890,25400579,25401283,25401924,25402517,25403150,25403757,25404400,25405008,25405568,25406257,25406884,25407515,25408316,25409094,25409600,25410188,25410783,25411408,25412097,25412569,25413259,25414037,25414644) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,), (1374088277,), (1374088279,), (1374088280,), (1374088281,), (1374088282,), (1374088283,), (1374088297,), (1374088332,), (1374088334,), (1374088336,), (1374088338,), (1374088340,), (1374088342,), (1374088349,), (1374088359,), (1374088361,), (1374088363,), (1374088365,), (1374088380,), (1374088388,), (1374088408,), (1374088411,), (1374088413,), (1374088414,), (1374088417,), (1374088421,), (1374088436,), (1374088438,), (1374088439,), (1374088446,), (1374088459,), (1374088467,), (1374088482,), (1374088484,), (1374088486,), (1374088487,), (1374088489,), (1374088492,), (1374088504,), (1374088506,), (1374088514,), (1374088526,), (1374088536,), (1374088538,), (1374088581,), (1374088583,), (1374088584,), (1374088587,), (1374088589,), (1374088591,), (1374088604,), (1374088606,), (1374088607,), (1374088620,), (1374088627,), (1374088634,), (1374088646,), (1374088648,), (1374088649,), (1374088650,), (1374088651,), (1374088653,), (1374088670,), (1374088672,), (1374088684,), (1374088694,), (1374088701,), (1374088703,), (1374088715,), (1374088716,), (1374088717,), (1374088718,), (1374088719,), (1374088720,), (1374088729,), (1374088731,), (1374088739,), (1374088751,), (1374088758,), (1374088759,), (1374088771,), (1374088786,), (1374088787,), (1374088788,), (1374088800,), (1374088809,), (1374088814,), (1374088823,), (1374088824,), (1374088825,), (1374088827,), (1374088829,), (1374088830,), (1374088847,), (1374088848,), (1374088850,), (1374088864,), (1374088871,), (1374088879,), (1374088888,), (1374088891,), (1374088893,), (1374088894,), (1374088895,), (1374088897,), (1374088914,), (1374088916,), (1374088918,), (1374088919,), (1374088920,), (1374088921,), (1374088933,), (1374088951,), (1374088963,), (1374088965,), (1374088967,), (1374088968,), (1374088969,), (1374088999,), (1374089001,), (1374089004,), (1374089006,), (1374089008,), (1374089010,), (1374089044,), (1374089046,), (1374089048,), (1374089052,), (1374089064,), (1374089075,), (1374089083,), (1374089086,), (1374089087,), (1374089090,), (1374089091,), (1374089092,), (1374089098,), (1374089101,), (1374089107,), (1374089108,), (1374089110,), (1374089113,), (1374089126,), (1374089144,), (1374089155,), (1374089156,), (1374089157,), (1374089158,), (1374089159,), (1374089168,), (1374089170,), (1374089171,), (1374089173,), (1374089174,), (1374089175,), (1374089187,), (1374089189,), (1374089203,), (1374089211,), (1374089218,), (1374089220,), (1374089229,), (1374089244,), (1374089246,), (1374089250,), (1374089255,), (1374089257,), (1374089258,), (1374089266,), (1374089268,), (1374089271,), (1374089273,), (1374089274,), (1374089275,), (1374089286,), (1374089294,), (1374089301,), (1374089302,), (1374089303,), (1374089304,), (1374089314,), (1374089336,), (1374089340,), (1374089345,), (1374089347,), (1374089348,), (1374089349,), (1374089355,), (1374089356,), (1374089359,), (1374089361,), (1374089362,), (1374089364,), (1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,), (1374089692,), (1374089720,), (1374089748,), (1374089772,), (1374089796,), (1374089820,), (1374090014,), (1374090031,), (1374090054,), (1374090067,), (1374090069,), (1374090087,), (1374090127,), (1374090129,), (1374090132,), (1374090133,), (1374090135,), (1374090137,), (1374090144,), (1374090159,), (1374090186,), (1374090209,), (1374090231,), (1374090255,), (1374090699,), (1374090763,), (1374090831,), (1374090846,), (1374090847,), (1374090848,), (1374091126,), (1374091141,), (1374091158,), (1374091170,), (1374091172,), (1374091174,), (1374091185,), (1374091195,), (1374091197,), (1374091198,), (1374091199,), (1374091201,), (1374091211,), (1374091215,), (1374091217,), (1374091228,), (1374091238,), (1374091240,), (1374091257,), (1374091261,), (1374091263,), (1374091266,), (1374091269,), (1374091271,), (1374091282,), (1374091283,), (1374091284,), (1374091285,), (1374091292,), (1374091306,), (1374091329,), (1374091331,), (1374091334,), (1374091337,), (1374091338,), (1374091340,), (1374091351,), (1374091353,), (1374091355,), (1374091356,), (1374091358,), (1374091360,), (1374091369,), (1374091374,), (1374091376,), (1374091379,), (1374091382,), (1374091384,), (1374091389,), (1374091390,), (1374091392,), (1374091399,), (1374091402,), (1374091404,), (1374091420,), (1374091422,), (1374091431,), (1374091434,), (1374091436,), (1374091437,), (1374091445,), (1374091488,), (1374091489,), (1374091495,), (1374091502,), (1374091503,), (1374091505,), (1374091525,), (1374091526,), (1374091527,), (1374091534,), (1374091543,), (1374091552,), (1374091564,), (1374091569,), (1374091573,), (1374091575,), (1374091576,), (1374091578,), (1374091585,), (1374091587,), (1374091589,), (1374091594,), (1374091601,), (1374091607,), (1374091617,), (1374091619,), (1374091628,), (1374091632,), (1374091634,), (1374091637,), (1374091650,), (1374091655,), (1374091657,), (1374091659,), (1374091661,), (1374091662,), (1374091676,), (1374091677,), (1374091678,), (1374091679,), (1374091680,), (1374091682,), (1374091693,), (1374091697,), (1374091701,), (1374091703,), (1374091705,), (1374091707,), (1374091713,), (1374091723,), (1374091726,), (1374091727,), (1374091729,), (1374091731,), (1374091744,), (1374091757,), (1374091759,), (1374091761,), (1374091763,), (1374091764,), (1374091766,), (1374091779,), (1374091781,), (1374091783,), (1374091785,), (1374091786,), (1374091788,), (1374091799,), (1374091804,), (1374091812,), (1374091816,), (1374091818,), (1374091819,), (1374091827,), (1374091835,), (1374091845,), (1374091847,), (1374091848,), (1374091850,), (1374091862,), (1374091872,), (1374091877,), (1374091879,), (1374091880,), (1374091884,), (1374091900,), (1374091914,), (1374091918,), (1374091919,), (1374091922,), (1374091926,), (1374091942,), (1374091945,), (1374091948,), (1374091950,), (1374091952,), (1374091956,), (1374091986,), (1374091993,), (1374091995,), (1374091996,), (1374091999,), (1374092001,), (1374092028,), (1374092030,), (1374092032,), (1374092034,), (1374092037,), (1374092039,), (1374092058,), (1374092062,), (1374092066,), (1374092068,), (1374092070,), (1374092073,), (1374092091,), (1374092103,), (1374092107,), (1374092110,), (1374092114,), (1374092117,), (1374092146,), (1374092178,), (1374092182,), (1374092193,), (1374092200,), (1374092204,), (1374092208,), (1374092229,), (1374092236,), (1374092238,), (1374092240,), (1374092243,), (1374092247,), (1374092266,), (1374092271,), (1374092274,), (1374092275,), (1374092278,), (1374092282,), (1374092304,), (1374092311,), (1374092315,), (1374092316,), (1374092318,), (1374092321,), (1374092341,), (1374092343,), (1374092349,), (1374092350,), (1374092352,), (1374092358,), (1374092371,), (1374092373,), (1374092375,), (1374092376,), (1374092379,), (1374092382,), (1374092399,), (1374092402,), (1374092404,), (1374092406,), (1374092409,), (1374092412,), (1374092420,), (1374092422,), (1374092424,), (1374092431,), (1374092433,), (1374092435,), (1374092448,), (1374092456,), (1374092459,), (1374092460,), (1374092462,), (1374092465,), (1374092476,), (1374092479,), (1374092480,), (1374092483,), (1374092485,), (1374092489,), (1374092508,), (1374092509,), (1374092511,), (1374092513,), (1374092515,), (1374092519,), (1374092542,), (1374092544,), (1374092551,), (1374092557,), (1374092561,), (1374092563,), (1374092584,), (1374092587,), (1374092590,), (1374092592,), (1374092596,), (1374092599,), (1374092644,), (1374092682,), (1374092688,), (1374092689,), (1374092690,), (1374092692,), (1374092694,), (1374092715,), (1374092720,), (1374092726,), (1374092728,), (1374092730,), (1374092734,), (1374092758,), (1374092760,), (1374092768,), (1374092771,), (1374092774,), (1374092776,), (1374092795,), (1374092797,), (1374092799,), (1374092803,), (1374092805,), (1374092807,), (1374092831,), (1374092834,), (1374092838,), (1374092841,), (1374092843,), (1374092846,), (1374092858,), (1374092862,), (1374092864,), (1374092876,), (1374092890,), (1374092921,), (1374093161,), (1374093186,), (1374093211,), (1374093239,), (1374093265,), (1374093289,), (1374093423,), (1374093559,), (1374093584,), (1374093608,), (1374093632,), (1374093656,), (1374093936,), (1374093952,), (1374093953,), (1374093954,), (1374093956,), (1374093958,), (1374094116,), (1374094143,), (1374094148,), (1374094152,), (1374094156,), (1374094164,), (1374094261,), (1374094264,), (1374094266,), (1374094269,), (1374094272,), (1374094273,), (1374094290,), (1374094294,), (1374094295,), (1374094297,), (1374094300,), (1374094304,), (1374094319,), (1374094320,), (1374094360,), (1374094436,), (1374094521,), (1374094595,), (1374094885,), (1374094887,), (1374094926,), (1374095000,), (1374095002,), (1374095011,), (1374095147,), (1374095150,), (1374095153,), (1374095157,), (1374095161,), (1374095166,), (1374095209,), (1374095210,), (1374095213,), (1374095215,), (1374095222,), (1374095225,), (1374095267,), (1374095270,), (1374095273,), (1374095282,), (1374095288,), (1374095290,), (1374095383,), (1374095408,), (1374095434,), (1374095456,), (1374095458,), (1374095460,), (1374095482,), (1374095483,), (1374095487,), (1374095494,), (1374095497,), (1374095499,), (1374095523,), (1374095524,), (1374095525,), (1374095533,), (1374095556,), (1374095565,), (1374095631,), (1374095633,), (1374095634,), (1374095635,), (1374095637,), (1374095640,), (1374095657,), (1374095659,), (1374095660,), (1374095662,), (1374095666,), (1374095668,), (1374095680,), (1374095681,), (1374095682,), (1374095683,), (1374095684,), (1374095686,), (1374095734,), (1374095735,), (1374095743,), (1374095745,), (1374095747,), (1374095749,), (1374095767,), (1374095768,), (1374095769,), (1374095770,), (1374095772,), (1374095775,), (1374095790,), (1374095793,), (1374095797,), (1374095799,), (1374095802,), (1374095804,), (1374095828,), (1374095832,), (1374095834,), (1374095836,), (1374095838,), (1374095840,), (1374095873,), (1374095907,), (1374095909,), (1374095911,), (1374095912,), (1374095914,), (1374095916,), (1374095940,), (1374095944,), (1374095945,), (1374095948,), (1374095950,), (1374095953,), (1374095968,), (1374095974,), (1374095975,), (1374095977,), (1374095979,), (1374095980,), (1374096049,), (1374096075,), (1374096078,), (1374096079,), (1374096082,), (1374096085,), (1374096088,), (1374096115,), (1374096118,), (1374096127,), (1374096132,), (1374096134,), (1374096135,), (1374096160,), (1374096165,), (1374096168,), (1374096170,), (1374096173,), (1374096176,), (1374096197,), (1374096203,), (1374096213,), (1374096214,), (1374096216,), (1374096218,), (1374096241,), (1374096245,), (1374096248,), (1374096251,), (1374096254,), (1374096257,), (1374096300,), (1374096303,), (1374096304,), (1374096307,), (1374096310,), (1374096312,), (1374096505,), (1374096536,), (1374096543,), (1374096564,), (1374096572,), (1374096584,), (1374096633,), (1374096634,), (1374096638,), (1374096647,), (1374096653,), (1374096657,), (1374096701,), (1374096702,), (1374096704,), (1374096708,), (1374096715,), (1374096719,), (1374096750,), (1374096751,), (1374096753,), (1374096755,), (1374096767,), (1374096774,), (1374096801,), (1374096802,), (1374096803,), (1374096804,), (1374096806,), (1374096809,), (1374096833,), (1374096834,), (1374096837,), (1374096839,), (1374096840,), (1374096842,), (1374096861,), (1374096863,), (1374096865,), (1374096867,), (1374096870,), (1374096873,), (1374096895,), (1374096896,), (1374096903,), (1374096907,), (1374096909,), (1374096911,), (1374096987,), (1374096996,), (1374097005,), (1374097025,), (1374097034,), (1374097047,), (1374097133,), (1374097135,), (1374097138,), (1374097139,), (1374097140,), (1374097144,), (1374097162,), (1374097163,), (1374097164,), (1374097165,), (1374097166,), (1374097168,), (1374097196,), (1374097198,), (1374097201,), (1374097203,), (1374097204,), (1374097206,), (1374097223,), (1374097225,), (1374097226,), (1374097227,), (1374097229,), (1374097230,), (1374097254,), (1374097258,), (1374097261,), (1374097263,), (1374097267,), (1374097272,), (1374097291,), (1374097303,), (1374097306,), (1374097307,), (1374097309,), (1374097313,), (1374097332,), (1374097335,), (1374097338,), (1374097344,), (1374097351,), (1374097353,), (1374097381,), (1374097417,), (1374097420,), (1374097422,), (1374097424,), (1374097433,), (1374097441,), (1374097458,), (1374097464,), (1374097472,), (1374097474,), (1374097475,), (1374097478,), (1374097530,), (1374097555,), (1374097585,), (1374097613,), (1374097618,), (1374097624,), (1374097720,), (1374097726,), (1374097748,), (1374097750,), (1374097753,), (1374097757,), (1374097819,), (1374097828,), (1374097836,), (1374097838,), (1374097841,), (1374097845,), (1374097862,), (1374097866,), (1374097869,), (1374097871,), (1374097874,), (1374097878,), (1374097888,), (1374097890,), (1374097901,), (1374097905,), (1374097906,), (1374097909,), (1374097919,), (1374097920,), (1374097922,), (1374097924,), (1374097927,), (1374097931,), (1374097946,), (1374097948,), (1374097950,), (1374097970,), (1374097995,), (1374098022,), (1374098289,), (1374098317,), (1374098327,), (1374098331,), (1374098349,), (1374098377,), (1374098628,), (1374098709,), (1374099101,), (1374099754,), (1374100192,), (1374100224,), (1374100251,), (1374100267,), (1374100295,), (1374100308,), (1374100317,), (1374100319,), (1374100321,), (1374100322,), (1374100324,), (1374100327,), (1374100341,), (1374100343,), (1374100346,), (1374100349,), (1374100351,), (1374100356,), (1374100382,), (1374100384,), (1374100386,), (1374100389,), (1374100391,), (1374100394,), (1374100406,), (1374100410,), (1374100413,), (1374100415,), (1374100418,), (1374100422,), (1374100431,), (1374100435,), (1374100442,), (1374100447,), (1374100448,), (1374100451,), (1374100468,), (1374100501,), (1374100546,), (1374100547,), (1374100548,), (1374100549,), (1374100551,), (1374100553,), (1374100574,), (1374100575,), (1374100576,), (1374100578,), (1374100581,), (1374100589,), (1374100616,), (1374100618,), (1374100619,), (1374100620,), (1374100621,), (1374100623,), (1374100642,), (1374100643,), (1374100644,), (1374100645,), (1374100646,), (1374100648,), (1374100660,), (1374100661,), (1374100662,), (1374100664,), (1374100665,), (1374100667,), (1374100687,), (1374100693,), (1374100698,), (1374100699,), (1374100700,), (1374100703,), (1374100725,), (1374100804,), (1374100810,), (1374100827,), (1374100850,), (1374100875,), (1374100900,), (1374101322,), (1374101348,), (1374101389,), (1374101413,), (1374101425,), (1374101433,), (1374101602,), (1374101625,), (1374101654,), (1374101678,), (1374101691,), (1374101694,), (1374101721,), (1374101722,), (1374101723,), (1374101725,), (1374101728,), (1374101731,), (1374101746,), (1374101747,), (1374101748,), (1374101749,), (1374101750,), (1374101754,), (1374101770,), (1374101773,), (1374101775,), (1374101777,), (1374101779,), (1374101783,), (1374101799,), (1374101810,), (1374101816,), (1374101817,), (1374101818,), (1374101820,), (1374101833,), (1374101836,), (1374101837,), (1374101839,), (1374101842,), (1374101845,), (1374101863,), (1374101864,), (1374101865,), (1374101866,), (1374101867,), (1374101871,), (1374101892,), (1374101893,), (1374101894,), (1374101895,), (1374101896,), (1374101898,), (1374101921,), (1374101922,), (1374101923,), (1374101924,), (1374101925,), (1374101927,), (1374101949,), (1374101952,), (1374101954,), (1374101955,), (1374101956,), (1374101958,), (1374101977,), (1374101984,), (1374101990,), (1374101992,), (1374101994,), (1374101995,), (1374102024,), (1374102025,), (1374102026,), (1374102027,), (1374102028,), (1374102030,), (1374102048,), (1374102052,), (1374102054,), (1374102055,), (1374102057,), (1374102059,), (1374102076,), (1374102078,), (1374102079,), (1374102080,), (1374102081,), (1374102083,), (1374102104,), (1374102106,), (1374102107,), (1374102109,), (1374102110,), (1374102112,), (1374102124,), (1374102125,), (1374102126,), (1374102147,), (1374102164,), (1374102171,), (1374102252,), (1374102254,), (1374102257,), (1374102260,), (1374102262,), (1374102265,), (1374102279,), (1374102302,), (1374102305,), (1374102307,), (1374102309,), (1374102311,), (1374102313,), (1374102337,), (1374102339,), (1374102340,), (1374102341,), (1374102343,), (1374102346,), (1374102357,), (1374102361,), (1374102367,), (1374102368,), (1374102370,), (1374102374,), (1374102430,), (1374102436,), (1374102438,), (1374102439,), (1374102440,), (1374102443,), (1374102545,), (1374102547,), (1374102563,), (1374102570,), (1374102571,), (1374102574,), (1374102585,), (1374102587,), (1374102589,), (1374102590,), (1374102592,), (1374102595,), (1374102623,), (1374102625,), (1374102627,), (1374102628,), (1374102630,), (1374102633,), (1374102651,), (1374102655,), (1374102658,), (1374102659,), (1374102667,), (1374102669,), (1374102735,), (1374102738,), (1374102739,), (1374102741,), (1374102742,), (1374102756,), (1374103016,), (1374103039,), (1374103065,), (1374103084,), (1374103086,), (1374103093,), (1374103186,), (1374103211,), (1374103236,), (1374103237,), (1374103240,), (1374103248,), (1374103378,), (1374103404,), (1374103427,), (1374103450,), (1374103473,), (1374103491,), (1374103511,), (1374103517,), (1374103545,), (1374103572,), (1374103594,), (1374103621,), (1374103892,), (1374103896,), (1374103898,), (1374103904,), (1374103905,), (1374103908,), (1374104055,), (1374104101,), (1374104127,), (1374104153,), (1374104180,), (1374104191,), (1374104239,), (1374104242,), (1374104244,), (1374104246,), (1374104248,), (1374104252,), (1374104313,), (1374104316,), (1374104319,), (1374104321,), (1374104324,), (1374104327,), (1374104510,), (1374104533,), (1374104549,), (1374104550,), (1374104552,), (1374104554,), (1374104690,), (1374104692,), (1374104693,), (1374104705,), (1374104731,), (1374104761,), (1374104865,), (1374105538,), (1374105564,), (1374105586,), (1374105611,), (1374105635,), (1374105662,), (1374106524,), (1374107025,), (1374107033,), (1374107051,), (1374107059,), (1374107062,), (1374107100,), (1374107102,), (1374107104,), (1374107105,), (1374107107,), (1374107110,), (1374107252,), (1374107276,), (1374107302,), (1374107324,), (1374107348,), (1374107371,), (1374107500,), (1374107503,), (1374107505,), (1374107507,), (1374107509,), (1374107512,), (1374107519,), (1374107521,), (1374107523,), (1374107525,), (1374107530,), (1374107534,), (1374107574,), (1374107583,), (1374107585,), (1374107587,), (1374107589,), (1374107593,), (1374107706,), (1374107719,), (1374107744,), (1374107768,), (1374107770,), (1374107773,), (1374107844,), (1374107846,), (1374107851,), (1374107862,), (1374107863,), (1374107867,), (1374107894,), (1374107896,), (1374107898,), (1374107899,), (1374107906,), (1374107910,), (1374107957,), (1374107963,), (1374107972,), (1374107974,), (1374107983,), (1374108040,), (1374108433,), (1374108464,), (1374108476,), (1374108478,), (1374108486,), (1374108517,), (1374108640,), (1374108647,), (1374108652,), (1374108653,), (1374108678,), (1374108704,), (1374108930,), (1374109000,), (1374109420,), (1374109446,), (1374109471,), (1374109478,), (1374109483,), (1374109487,), (1374109509,), (1374109512,), (1374109515,), (1374109517,), (1374109519,), (1374109521,), (1374109569,), (1374109571,), (1374109573,), (1374109574,), (1374109575,), (1374109577,), (1374109609,), (1374109611,), (1374109623,), (1374109656,), (1374109662,), (1374109665,), (1374109821,), (1374109871,), (1374109941,), (1374110006,), (1374110071,), (1374110144,), (1374110661,), (1374110689,), (1374110738,), (1374110768,), (1374110794,), (1374110817,), (1374111079,), (1374111230,), (1374111238,), (1374111240,), (1374111241,), (1374111243,), (1374111245,), (1374111468,), (1374111522,), (1374111568,), (1374111625,), (1374111652,), (1374111678,), (1374111713,), (1374111718,), (1374111720,), (1374111721,), (1374111724,), (1374111725,), (1374111735,), (1374111759,), (1374111785,), (1374111791,), (1374111793,), (1374111796,), (1374111825,), (1374111827,), (1374111864,), (1374111888,), (1374111914,), (1374111939,), (1374112251,), (1374112253,), (1374112273,), (1374112285,), (1374112287,), (1374112290,), (1374112301,), (1374112314,), (1374112318,), (1374112320,), (1374112323,), (1374112326,), (1374112340,), (1374112344,), (1374112346,), (1374112348,), (1374112350,), (1374112353,), (1374112374,), (1374112376,), (1374112378,), (1374112380,), (1374112382,), (1374112385,), (1374112420,), (1374112447,), (1374112471,), (1374112497,), (1374112513,), (1374112517,), (1374112579,), (1374112589,), (1374112592,), (1374112597,), (1374112614,), (1374112618,), (1374112649,), (1374112651,), (1374112653,), (1374112655,), (1374112656,), (1374112659,), (1374112676,), (1374112677,), (1374112679,), (1374112681,), (1374112683,), (1374112686,), (1374112700,), (1374112706,), (1374112709,), (1374112725,), (1374112771,), (1374112797,), (1374112941,), (1374112944,), (1374112956,), (1374112960,), (1374112962,), (1374112983,), (1374113003,), (1374113004,), (1374113005,), (1374113006,), (1374113007,), (1374113010,), (1374113054,), (1374113061,), (1374113064,), (1374113071,), (1374113072,), (1374113080,), (1374113139,), (1374113140,), (1374113141,), (1374113142,), (1374113144,), (1374113147,), (1374113264,), (1374113288,), (1374113310,), (1374113337,), (1374113384,), (1374113428,), (1374113864,), (1374113876,), (1374113877,), (1374113879,), (1374113881,), (1374113884,), (1374114063,), (1374114064,), (1374114065,), (1374114077,), (1374114099,), (1374114124,), (1374114515,), (1374114576,), (1374114631,), (1374114680,), (1374114707,), (1374114737,), (1374114894,), (1374114918,), (1374114931,), (1374114932,), (1374114935,), (1374114938,), (1374115129,), (1374115159,), (1374115164,), (1374115167,), (1374115168,), (1374115187,), (1374115437,), (1374115447,), (1374115448,), (1374115449,), (1374115450,), (1374115471,), (1374115584,), (1374115691,), (1374115716,), (1374115741,), (1374115764,), (1374115787,), (1374115813,), (1374116144,), (1374116495,), (1374116530,), (1374116579,), (1374116603,), (1374116627,), (1374116652,), (1374116893,), (1374116911,), (1374116937,), (1374116963,), (1374116984,), (1374117008,), (1374117341,), (1374117358,), (1374117359,), (1374117360,), (1374117362,), (1374117364,), (1374117534,), (1374117723,), (1374118238,), (1374118424,), (1374118426,), (1374118427,), (1374118434,), (1374118473,), (1374118496,), (1374118543,), (1374118544,), (1374118546,), (1374118548,), (1374118549,), (1374118556,), (1374118764,), (1374118828,), (1374118879,), (1374118927,), (1374118976,), (1374119023,), (1374119451,), (1374119826,), (1374120027,), (1374120053,), (1374120063,), (1374120092,), (1374120107,), (1374120135,), (1374120412,), (1374120456,), (1374120500,), (1374120525,), (1374120550,), (1374120591,), (1374120813,), (1374120823,), (1374120825,), (1374120827,), (1374120829,), (1374120833,), (1374120851,), (1374120853,), (1374120856,), (1374120864,), (1374120889,), (1374120924,), (1374121118,), (1374121127,), (1374121139,), (1374121140,), (1374121142,), (1374121145,), (1374121170,), (1374121172,), (1374121174,), (1374121175,), (1374121178,), (1374121182,), (1374121196,), (1374121198,), (1374121200,), (1374121202,), (1374121204,), (1374121207,), (1374121223,), (1374121225,), (1374121227,), (1374121229,), (1374121231,), (1374121234,), (1374121251,), (1374121259,), (1374121263,), (1374121265,), (1374121267,), (1374121272,), (1374121289,), (1374121298,), (1374121305,), (1374121307,), (1374121310,), (1374121313,), (1374121339,), (1374121342,), (1374121344,), (1374121346,), (1374121349,), (1374121353,), (1374121367,), (1374121369,), (1374121372,), (1374121373,), (1374121377,), (1374121381,), (1374121397,), (1374121399,), (1374121400,), (1374121402,), (1374121403,), (1374121407,), (1374121437,), (1374121467,), (1374121472,), (1374121478,), (1374121480,), (1374121483,), (1374121484,), (1374121505,), (1374121506,), (1374121507,), (1374121516,), (1374121522,), (1374121525,), (1374121575,), (1374121576,), (1374121577,), (1374121585,), (1374121610,), (1374121636,), (1374121773,), (1374121781,), (1374121785,), (1374121800,), (1374121803,), (1374121807,), (1374121919,), (1374121921,), (1374121923,), (1374121924,), (1374121925,), (1374121927,), (1374121954,), (1374121957,), (1374121959,), (1374121960,), (1374121961,), (1374121963,), (1374122068,), (1374122093,), (1374122119,), (1374122144,), (1374122167,), (1374122196,), (1374122367,), (1374122370,), (1374122371,), (1374122374,), (1374122378,), (1374122382,), (1374122413,), (1374122418,), (1374122420,), (1374122421,), (1374122423,), (1374122426,), (1374122449,), (1374122480,), (1374122483,), (1374122484,), (1374122485,), (1374122486,), (1374122488,), (1374122508,), (1374122511,), (1374122514,), (1374122517,), (1374122520,), (1374122538,), (1374122565,), (1374122576,), (1374122582,), (1374122587,), (1374122597,), (1374122599,), (1374122626,), (1374122628,), (1374122629,), (1374122630,), (1374122632,), (1374122633,), (1374122656,), (1374122659,), (1374122663,), (1374122666,), (1374122669,), (1374122673,), (1374122694,), (1374122697,), (1374122699,), (1374122701,), (1374122703,), (1374122706,), (1374122725,), (1374122727,), (1374122730,), (1374122731,), (1374122733,), (1374122735,), (1374122765,), (1374122792,), (1374122821,), (1374122848,), (1374122874,), (1374122876,), (1374122878,), (1374122879,), (1374122880,), (1374122890,), (1374122909,), (1374122911,), (1374122916,), (1374122921,), (1374122924,), (1374122929,), (1374122946,), (1374122970,), (1374122980,), (1374122982,), (1374122983,), (1374122985,), (1374122987,), (1374123008,), (1374123011,), (1374123013,), (1374123014,), (1374123016,), (1374123019,), (1374123036,), (1374123046,), (1374123050,), (1374123052,), (1374123056,), (1374123060,), (1374123077,), (1374123079,), (1374123082,), (1374123085,), (1374123087,), (1374123091,), (1374123104,), (1374123116,), (1374123123,), (1374123125,), (1374123128,), (1374123132,), (1374123152,), (1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,), (1374123429,), (1374123431,), (1374123433,), (1374123434,), (1374123437,), (1374123441,), (1374123462,), (1374123467,), (1374123469,), (1374123472,), (1374123474,), (1374123477,), (1374123495,), (1374123520,), (1374123527,), (1374123529,), (1374123531,), (1374123532,), (1374123537,), (1374123583,), (1374123608,), (1374123634,), (1374123656,), (1374123680,), (1374123703,), (1374123934,), (1374123936,), (1374123949,), (1374123971,), (1374123984,), (1374123987,), (1374124327,), (1374124893,), (1374125210,), (1374125228,), (1374125230,), (1374125261,), (1374125293,), (1374125330,), (1374125495,), (1374125513,), (1374125531,), (1374125532,), (1374125534,), (1374125537,), (1374125555,), (1374125564,), (1374125567,), (1374125569,), (1374125571,), (1374125573,), (1374125635,), (1374125787,), (1374125791,), (1374125798,), (1374125801,), (1374125802,), (1374125804,), (1374125817,), (1374125850,), (1374125857,), (1374125861,), (1374125863,), (1374125865,), (1374125869,), (1374126042,), (1374126065,), (1374126089,), (1374126101,), (1374126103,), (1374126105,), (1374126238,), (1374126266,), (1374126290,), (1374126296,), (1374126298,), (1374126301,), (1374126345,), (1374126348,), (1374126350,), (1374126351,), (1374126354,), (1374126358,), (1374126419,), (1374126442,), (1374126464,), (1374126491,), (1374126516,), (1374126543,), (1374126712,), (1374126947,), (1374126955,), (1374126957,), (1374126958,), (1374126960,), (1374126963,), (1374126983,), (1374127014,), (1374127020,), (1374127024,), (1374127025,), (1374127027,), (1374127032,), (1374127041,), (1374127069,), (1374127072,), (1374127074,), (1374127076,), (1374127078,), (1374127081,), (1374127098,), (1374127101,), (1374127103,), (1374127104,), (1374127105,), (1374127107,), (1374127131,), (1374127133,), (1374127135,), (1374127136,), (1374127137,), (1374127139,), (1374127169,), (1374127198,), (1374127202,), (1374127210,), (1374127216,), (1374127218,), (1374127221,), (1374127234,), (1374127236,), (1374127239,), (1374127241,), (1374127244,), (1374127248,), (1374127264,), (1374127274,), (1374127282,), (1374127286,), (1374127287,), (1374127291,), (1374127313,), (1374127337,), (1374127344,), (1374127350,), (1374127359,), (1374127362,), (1374127364,), (1374127381,), (1374127412,), (1374127416,), (1374127424,), (1374127434,), (1374127442,), (1374127452,), (1374127467,), (1374127470,), (1374127475,), (1374127483,), (1374127490,), (1374127503,), (1374127522,), (1374127524,), (1374127529,), (1374127537,), (1374127543,), (1374127547,), (1374133921,), (1374127568,), (1374127570,), (1374127571,), (1374127572,), (1374127573,), (1374127575,), (1374127603,), (1374127604,), (1374127606,), (1374127607,), (1374127610,), (1374127630,), (1374127915,), (1374127940,), (1374127962,), (1374127981,), (1374128006,), (1374128031,), (1374128131,), (1374128132,), (1374128133,), (1374128134,), (1374128135,), (1374128138,), (1374128168,), (1374128308,), (1374128315,), (1374128333,), (1374128349,), (1374128373,), (1374128377,), (1374128386,), (1374128419,), (1374128449,), (1374128482,), (1374128504,), (1374128530,), (1374128563,), (1374128718,), (1374128743,), (1374128768,), (1374128789,), (1374128813,), (1374128822,), (1374128833,), (1374128835,), (1374128837,), (1374128839,), (1374128840,), (1374128853,), (1374128896,), (1374128899,), (1374128908,), (1374128918,), (1374128922,), (1374128926,), (1374129014,), (1374129037,), (1374129060,), (1374129097,), (1374129123,), (1374129151,), (1374129290,), (1374129294,), (1374129313,), (1374129322,), (1374129332,), (1374129358,), (1374129527,), (1374129552,), (1374129574,), (1374129576,), (1374129578,), (1374129582,), (1374129780,), (1374129782,), (1374129784,), (1374129786,), (1374129788,), (1374129791,), (1374129866,), (1374129962,), (1374130506,), (1374130604,), (1374130767,), (1374130768,), (1374130770,), (1374130772,), (1374130774,), (1374130776,), (1374130964,), (1374130992,), (1374131004,), (1374131025,), (1374131035,), (1374131036,), (1374131082,), (1374131083,), (1374131084,), (1374131088,), (1374131107,), (1374131123,), (1374131532,), (1374131572,), (1374131596,), (1374131623,), (1374131647,), (1374131655,), (1374131761,), (1374131786,), (1374131799,), (1374131808,), (1374131812,), (1374131815,), (1374132251,), (1374132276,), (1374132305,), (1374132324,), (1374132326,), (1374132341,), (1374132623,), (1374133100,), (1374133145,), (1374133177,), (1374133199,), (1374133222,), (1374133248,), (1374133436,), (1374133557,), (1374133560,), (1374133567,), (1374133582,), (1374133584,), (1374133605,), (1374133891,), (1374134143,), (1374134300,), (1374134346,), (1374134395,), (1374134462,), (1374134502,), (1374134525,), (1374134774,), (1374134798,), (1374134818,), (1374134839,), (1374134874,), (1374134904,), (1374135260,), (1374135310,), (1374135355,), (1374135427,), (1374135476,), (1374135538,), (1374136231,), (1374136519,), (1374136524,), (1374136543,), (1374136551,), (1374136559,), (1374136561,), (1374136584,), (1374136586,), (1374136595,), (1374136620,), (1374136644,), (1374136671,), (1374136812,), (1374136813,), (1374136820,), (1374136823,), (1374136825,), (1374136828,), (1374136869,), (1374136871,), (1374136873,), (1374136874,), (1374136875,), (1374136877,), (1374136947,), (1374136971,), (1374136996,), (1374137018,), (1374137041,), (1374137063,), (1374137119,), (1374137121,), (1374137123,), (1374137124,), (1374137130,), (1374137134,), (1374137231,), (1374137265,), (1374137311,), (1374137356,), (1374137392,), (1374137417,), (1374137710,), (1374137732,), (1374137757,), (1374137784,), (1374137812,), (1374137841,), (1374137875,), (1374137877,), (1374137879,), (1374137886,), (1374137894,), (1374137897,), (1374137915,), (1374137917,), (1374137920,), (1374137922,), (1374137923,), (1374137927,), (1374138034,), (1374138062,), (1374138099,), (1374138129,), (1374138155,), (1374138177,), (1374138398,), (1374138403,), (1374138415,), (1374138417,), (1374138418,), (1374138420,), (1374138577,), (1374138621,), (1374138671,), (1374138748,), (1374138792,), (1374138823,), (1374139083,), (1374139085,), (1374139110,), (1374139135,), (1374139159,), (1374139185,), (1374139387,), (1374139570,), (1374139572,), (1374139573,), (1374139575,), (1374139576,), (1374139579,), (1374139588,), (1374139607,), (1374139609,), (1374139617,), (1374139625,), (1374139628,), (1374139630,), (1374139654,), (1374139656,), (1374139659,), (1374139663,), (1374139665,), (1374139667,), (1374139712,), (1374139715,), (1374139723,), (1374139753,), (1374139777,), (1374139802,), (1374140291,), (1374140399,), (1374140401,), (1374140404,), (1374140419,), (1374140442,), (1374140447,), (1374140658,), (1374140684,), (1374140709,), (1374140733,), (1374140758,), (1374140785,), (1374140876,), (1374140884,), (1374140890,), (1374140902,), (1374140907,), (1374140910,), (1374140996,), (1374141022,), (1374141051,), (1374141074,), (1374141092,), (1374141096,), (1374141236,), (1374141259,), (1374141267,), (1374141269,), (1374141272,), (1374141276,), (1374141594,), (1374141619,), (1374141643,), (1374141666,), (1374141691,), (1374141748,), (1374141874,), (1374141882,), (1374141891,), (1374141893,), (1374141895,), (1374141905,), (1374141925,), (1374141927,), (1374141929,), (1374141930,), (1374141932,), (1374141934,), (1374141952,), (1374141955,), (1374141967,), (1374141969,), (1374141972,), (1374141975,), (1374142237,), (1374142263,), (1374142290,), (1374142314,), (1374142322,), (1374142326,), (1374142349,), (1374142358,), (1374142367,), (1374142368,), (1374142371,), (1374142378,), (1374142483,), (1374142491,), (1374142494,), (1374142497,), (1374142500,), (1374142504,), (1374142518,), (1374142521,), (1374142524,), (1374142526,), (1374142529,), (1374142532,), (1374142563,), (1374142565,), (1374142573,), (1374142580,), (1374142584,), (1374142589,), (1374142629,), (1374142797,), (1374142800,), (1374142802,), (1374142804,), (1374142807,), (1374142836,), (1374143220,), (1374143231,), (1374143253,), (1374143333,), (1374143367,), (1374143431,), (1374143493,), (1374143611,), (1374143639,), (1374143703,), (1374143710,), (1374143732,), (1374143737,), (1374143792,), (1374144034,), (1374144041,), (1374144062,), (1374144106,), (1374144133,), (1374144158,), (1374144271,), (1374144314,), (1374144318,), (1374144320,), (1374144321,), (1374144323,), (1374144344,), (1374144345,), (1374144353,), (1374144360,), (1374144362,), (1374144366,), (1374144380,), (1374144384,), (1374144392,), (1374144394,), (1374144395,), (1374144397,), (1374144626,), (1374144685,), (1374144717,), (1374144748,), (1374144770,), (1374144796,), (1374144908,), (1374144913,), (1374144916,), (1374144918,), (1374144922,), (1374144926,), (1374144977,), (1374144979,), (1374144990,), (1374144998,), (1374145001,), (1374145006,), (1374145149,), (1374145635,), (1374145638,), (1374145647,), (1374145657,), (1374145682,), (1374145718,), (1374146338,), (1374146441,), (1374146449,), (1374146457,), (1374146459,), (1374146463,), (1374146466,), (1374146543,), (1374146547,), (1374146564,), (1374146568,), (1374146570,), (1374146575,), (1374146597,), (1374146605,), (1374146613,), (1374146615,), (1374146620,), (1374146645,), (1374147100,), (1374147132,), (1374147146,), (1374147175,), (1374147180,), (1374147184,), (1374147379,), (1374147699,), (1374147879,), (1374147894,), (1374147949,), (1374147965,), (1374147975,), (1374147985,), (1374148383,), (1374148411,), (1374148436,), (1374148479,), (1374148516,), (1374148547,), (1374148718,), (1374148719,), (1374148721,), (1374148722,), (1374148745,), (1374148772,), (1374148980,), (1374149013,), (1374149016,), (1374149019,), (1374149030,), (1374149061,), (1374149286,), (1374149294,), (1374149297,), (1374149305,), (1374149311,), (1374149313,), (1374149347,), (1374149356,), (1374149364,), (1374149366,), (1374149368,), (1374149371,), (1374149392,), (1374149396,), (1374149414,), (1374149418,), (1374149421,), (1374149423,), (1374149509,), (1374149533,), (1374149559,), (1374149563,), (1374149566,), (1374149570,), (1374149612,), (1374149615,), (1374149624,), (1374149632,), (1374149635,), (1374149637,), (1374149743,), (1374149757,), (1374149775,), (1374149782,), (1374149785,), (1374149790,), (1374149812,), (1374149842,), (1374149844,), (1374149846,), (1374149848,), (1374149850,), (1374149853,), (1374149876,), (1374149886,), (1374149891,), (1374149894,), (1374149897,), (1374149900,), (1374149973,), (1374149981,), (1374149990,), (1374149992,), (1374149996,), (1374150000,), (1374150126,), (1374150133,), (1374150141,), (1374150143,), (1374150144,), (1374150147,), (1374150245,), (1374150271,), (1374150298,), (1374150324,), (1374150349,), (1374150377,), (1374150752,), (1374150757,), (1374150781,), (1374150785,), (1374150786,), (1374150788,), (1374151053,), (1374151094,), (1374151145,), (1374151194,), (1374151242,), (1374151277,), (1374151461,), (1374151873,), (1374151875,), (1374151882,), (1374151905,), (1374151916,), (1374151926,), (1374152026,), (1374152060,), (1374152062,), (1374152071,), (1374152096,), (1374152119,), (1374152135,), (1374152223,), (1374152235,), (1374152256,), (1374152259,), (1374152260,), (1374152264,), (1374152322,), (1374152324,), (1374152326,), (1374152328,), (1374152331,), (1374152334,), (1374152365,), (1374152367,), (1374152369,), (1374152371,), (1374152372,), (1374152375,), (1374152387,), (1374152388,), (1374152389,), (1374152390,), (1374152392,), (1374152396,), (1374152409,), (1374152413,), (1374152425,), (1374152427,), (1374152430,), (1374152432,), (1374152546,), (1374152574,), (1374152586,), (1374152588,), (1374152590,), (1374152594,), (1374152631,), (1374152717,), (1374152755,), (1374152757,), (1374152760,), (1374152784,), (1374153071,), (1374153097,), (1374153104,), (1374153143,), (1374153145,), (1374153158,), (1374153322,), (1374153323,), (1374153324,), (1374153344,), (1374153367,), (1374153392,), (1374153540,), (1374153555,), (1374153562,), (1374153585,), (1374153591,), (1374153601,), (1374153696,), (1374153716,), (1374153724,), (1374153725,), (1374153727,), (1374153729,), (1374153751,), (1374153758,), (1374153766,), (1374153767,), (1374153788,), (1374153816,), (1374154001,), (1374154009,), (1374154020,), (1374154022,), (1374154025,), (1374154027,), (1374154077,), (1374154103,), (1374154105,), (1374154111,), (1374154112,), (1374154114,), (1374154120,), (1374154212,), (1374154220,), (1374154233,), (1374154234,), (1374154236,), (1374154238,), (1374154375,), (1374154377,), (1374154378,), (1374154379,), (1374154381,), (1374154385,), (1374154399,), (1374154409,), (1374154418,), (1374154420,), (1374154422,), (1374154425,), (1374154442,), (1374154445,), (1374154448,), (1374154449,), (1374154451,), (1374154455,), (1374154507,), (1374154510,), (1374154512,), (1374154513,), (1374154542,), (1374154546,), (1374154563,), (1374154591,), (1374154592,), (1374154593,), (1374154594,), (1374154596,), (1374154601,), (1374154637,), (1374154640,), (1374154643,), (1374154645,), (1374154647,), (1374154651,), (1374154706,), (1374154740,), (1374154818,), (1374154862,), (1374154863,), (1374154866,), (1374154870,), (1374154944,), (1374154958,), (1374154960,), (1374154987,), (1374154992,), (1374154998,), (1374155117,), (1374155119,), (1374155121,), (1374155123,), (1374155125,), (1374155129,), (1374155218,), (1374155227,), (1374155236,), (1374155239,), (1374155244,), (1374155247,), (1374155362,), (1374155375,), (1374155378,), (1374155379,), (1374155381,), (1374155384,), (1374155519,), (1374155527,), (1374155533,), (1374155550,), (1374155578,), (1374155593,), (1374155637,), (1374155812,), (1374155815,), (1374155817,), (1374155819,), (1374155821,), (1374155826,), (1374155900,), (1374155902,), (1374155903,), (1374155904,), (1374155906,), (1374155911,), (1374155931,), (1374155933,), (1374155935,), (1374155936,), (1374155938,), (1374155941,), (1374156609,), (1374157255,), (1374157781,), (1374157827,), (1374157855,), (1374157884,), (1374157933,), (1374157969,), (1374158143,), (1374158243,), (1374158251,), (1374158260,), (1374158262,), (1374158263,), (1374158266,), (1374158319,), (1374158322,), (1374158324,), (1374158325,), (1374158380,), (1374158403,), (1374158425,), (1374158427,), (1374158430,), (1374158431,), (1374158434,), (1374158438,), (1374158455,), (1374158458,), (1374158460,), (1374158461,), (1374158462,), (1374158465,), (1374158502,), (1374158505,), (1374158506,), (1374158507,), (1374158509,), (1374158513,), (1374158579,), (1374158583,), (1374158592,), (1374158601,), (1374158603,), (1374158608,), (1374158753,), (1374158770,), (1374158774,), (1374158787,), (1374158791,), (1374158811,), (1374158885,), (1374158886,), (1374158887,), (1374158888,), (1374158890,), (1374158897,), (1374159080,), (1374159084,), (1374159088,), (1374159089,), (1374159093,), (1374159098,), (1374159317,), (1374159472,), (1374159481,), (1374159489,), (1374159496,), (1374159497,), (1374159500,), (1374159515,), (1374159517,), (1374159518,), (1374159520,), (1374159522,), (1374159525,), (1374159637,), (1374159656,), (1374159670,), (1374159675,), (1374159690,), (1374159694,), (1374159759,), (1374159762,), (1374159764,), (1374159766,), (1374159770,), (1374159774,), (1374159866,), (1374159867,), (1374159870,), (1374159873,), (1374159875,), (1374159878,), (1374160166,), (1374160187,), (1374160219,), (1374160265,), (1374160308,), (1374160317,), (1374160471,), (1374160490,), (1374160508,), (1374160529,), (1374160557,), (1374160595,), (1374160687,), (1374160810,), (1374160862,), (1374160891,), (1374160919,), (1374160953,), (1374160982,), (1374161356,), (1374161362,), (1374161418,), (1374161469,), (1374161498,), (1374161502,), (1374161674,), (1374161765,), (1374161767,), (1374161785,), (1374161786,), (1374161787,), (1374161791,), (1374161892,), (1374161899,), (1374161920,), (1374161945,), (1374161968,), (1374161971,), (1374162062,), (1374162064,), (1374162066,), (1374162067,), (1374162068,), (1374162072,), (1374162085,), (1374162089,), (1374162095,), (1374162110,), (1374162117,), (1374162122,), (1374162139,), (1374162142,), (1374162144,), (1374162148,), (1374162159,), (1374162164,), (1374162173,), (1374162202,), (1374162206,), (1374162218,), (1374162225,), (1374162229,), (1374162233,), (1374162303,), (1374162304,), (1374162305,), (1374162306,), (1374162308,), (1374162313,), (1374162335,), (1374162337,), (1374162338,), (1374162339,), (1374162341,), (1374162344,), (1374162353,), (1374162355,), (1374162357,), (1374162366,), (1374162369,), (1374162375,), (1374162488,), (1374162562,), (1374162590,), (1374162622,), (1374162691,), (1374162727,), (1374162754,), (1374162895,), (1374162909,), (1374162920,), (1374162997,), (1374162999,), (1374163018,), (1374163040,), (1374163042,), (1374163044,), (1374163047,), (1374163051,), (1374163064,), (1374163070,), (1374163073,), (1374163075,), (1374163077,), (1374163078,), (1374163082,), (1374163097,), (1374163099,), (1374163107,), (1374163115,), (1374163117,), (1374163120,), (1374163164,), (1374163167,), (1374163172,), (1374163183,), (1374163214,), (1374163262,), (1374163607,), (1374163637,), (1374163721,), (1374163772,), (1374163791,), (1374163810,), (1374163945,), (1374163959,), (1374163968,), (1374163983,), (1374163986,), (1374164006,), (1374164085,), (1374164093,), (1374164100,), (1374164101,), (1374164103,), (1374164120,), (1374164208,), (1374164233,), (1374164235,), (1374164238,), (1374164239,), (1374164243,), (1374164364,), (1374164389,), (1374164425,), (1374164467,), (1374164495,), (1374164523,), (1374164754,), (1374164755,), (1374164756,), (1374164775,), (1374164785,), (1374164797,), (1374164839,), (1374164840,), (1374164847,), (1374164854,), (1374164855,), (1374164858,), (1374164924,), (1374164938,), (1374164939,), (1374164940,), (1374164942,), (1374164944,), (1374165003,), (1374165015,), (1374165024,), (1374165035,), (1374165039,), (1374165042,), (1374165255,), (1374165256,), (1374165289,), (1374165326,), (1374165353,), (1374165402,), (1374165578,), (1374165608,), (1374165642,), (1374165660,), (1374165662,), (1374165665,), (1374165752,), (1374165755,), (1374165757,), (1374165758,), (1374165774,), (1374165798,), (1374165933,), (1374165935,), (1374165944,), (1374165955,), (1374165981,), (1374165988,), (1374166066,), (1374166067,), (1374166068,), (1374166089,), (1374166133,), (1374166160,), (1374166414,), (1374166448,), (1374166491,), (1374166528,), (1374166538,), (1374166543,), (1374166694,), (1374166697,), (1374166706,), (1374166732,), (1374166756,), (1374166786,), (1374167045,), (1374167071,), (1374167076,), (1374167078,), (1374167091,), (1374167098,), (1374167404,), (1374167615,), (1374167656,), (1374167684,), (1374167715,), (1374167744,), (1374168026,), (1374168070,), (1374168124,), (1374168180,), (1374168229,), (1374168279,), (1374168673,), (1374168730,), (1374168782,), (1374168853,), (1374168860,), (1374168869,), (1374169081,), (1374169082,), (1374169083,), (1374169084,), (1374169085,), (1374169089,), (1374169114,), (1374169121,), (1374169131,), (1374169135,), (1374169136,), (1374169139,), (1374169159,), (1374169161,), (1374169164,), (1374169166,), (1374169169,), (1374169173,), (1374169217,), (1374169220,), (1374169224,), (1374169229,), (1374169232,), (1374169246,), (1374169266,), (1374169270,), (1374169279,), (1374169286,), (1374169290,), (1374169294,), (1374169320,), (1374169322,), (1374169350,), (1374169364,), (1374169372,), (1374169375,), (1374169431,), (1374169455,), (1374169486,), (1374169514,), (1374169549,), (1374169598,), (1374170032,), (1374170035,), (1374170051,), (1374170082,), (1374170092,), (1374170097,), (1374170270,), (1374170272,), (1374170283,), (1374170287,), (1374170290,), (1374170294,), (1374170318,), (1374170319,), (1374170320,), (1374170321,), (1374170323,), (1374170326,), (1374170411,), (1374170460,), (1374170487,), (1374170513,), (1374170538,), (1374170566,), (1374170693,), (1374170752,), (1374170721,), (1374170729,), (1374170733,), (1374170735,), (1374170738,), (1374170742,), (1374170762,), (1374170771,), (1374170783,), (1374170792,), (1374170799,), (1374170801,), (1374170818,), (1374170819,), (1374170830,), (1374170831,), (1374170833,), (1374170837,), (1374170858,), (1374170861,), (1374170864,), (1374170866,), (1374170868,), (1374170871,), (1374170899,), (1374170901,), (1374170902,), (1374170903,), (1374170905,), (1374170906,), (1374170934,), (1374170956,), (1374170959,), (1374170969,), (1374170982,), (1374170983,), (1374170986,), (1374171009,), (1374171019,), (1374171027,), (1374171030,), (1374171033,), (1374171036,), (1374171083,), (1374171084,), (1374171086,), (1374171087,), (1374171088,), (1374171090,), (1374171241,), (1374171246,), (1374171252,), (1374171272,), (1374171275,), (1374171279,), (1374171361,), (1374171365,), (1374171367,), (1374171370,), (1374171372,), (1374171374,), (1374171389,), (1374171392,), (1374171395,), (1374171398,), (1374171401,), (1374171405,), (1374171450,), (1374171520,), (1374171524,), (1374171532,), (1374171539,), (1374171540,), (1374171542,), (1374171566,), (1374171571,), (1374171584,), (1374171587,), (1374171590,), (1374171591,), (1374171617,), (1374171622,), (1374171636,), (1374171639,), (1374171642,), (1374171647,), (1374171674,), (1374171679,), (1374171683,), (1374171686,), (1374171691,), (1374171696,), (1374171751,), (1374171771,), (1374171775,), (1374171776,), (1374171781,), (1374171784,), (1374171793,), (1374171812,), (1374171820,), (1374171826,), (1374171832,), (1374171836,), (1374171976,), (1374172000,), (1374172004,), (1374172018,), (1374172021,), (1374172025,), (1374172028,), (1374172041,), (1374172044,), (1374172053,), (1374172060,), (1374172064,), (1374172067,), (1374172088,), (1374172094,), (1374172106,), (1374172113,), (1374172117,), (1374172123,), (1374172181,), (1374172219,), (1374172227,), (1374172235,), (1374172237,), (1374172240,), (1374172244,), (1374172258,), (1374172262,), (1374172266,), (1374172270,), (1374172274,), (1374172279,), (1374172331,), (1374172406,), (1374172407,), (1374172409,), (1374172411,), (1374172438,), (1374172443,), (1374172449,), (1374172462,), (1374172470,), (1374172479,), (1374172482,), (1374172486,), (1374172490,), (1374172505,), (1374172507,), (1374172510,), (1374172511,), (1374172513,), (1374172516,), (1374172539,), (1374172542,), (1374172545,), (1374172557,), (1374172565,), (1374172568,), (1374172579,), (1374172581,), (1374172583,), (1374172584,), (1374172586,), (1374172589,), (1374172605,), (1374172607,), (1374172618,), (1374172623,), (1374172626,), (1374172631,), (1374172650,), (1374172652,), (1374172654,), (1374172656,), (1374172659,), (1374172662,), (1374172701,), (1374172703,), (1374172714,), (1374172719,), (1374172732,), (1374172791,), (1374172824,), (1374172855,), (1374172858,), (1374172880,), (1374172886,), (1374172888,), (1374172891,), (1374172929,), (1374172937,), (1374172939,), (1374172941,), (1374172943,), (1374172945,), (1374172948,), (1374172960,), (1374172999,), (1374173002,), (1374173004,), (1374173007,), (1374173010,), (1374173013,), (1374173031,), (1374173035,), (1374173040,), (1374173043,), (1374173047,), (1374173050,), (1374173068,), (1374173070,), (1374173073,), (1374173076,), (1374173087,), (1374173115,), (1374173402,), (1374173435,), (1374173467,), (1374173494,), (1374173511,), (1374173515,), (1374173891,), (1374174695,), (1374174742,), (1374174770,), (1374174800,), (1374174826,), (1374175246,), (1374175275,), (1374175279,), (1374175282,), (1374175283,), (1374175301,), (1374175492,), (1374175504,), (1374175529,), (1374175554,), (1374175569,), (1374175573,), (1374175624,), (1374175628,), (1374175648,), (1374175666,), (1374175669,), (1374175674,), (1374175756,), (1374175787,), (1374175818,), (1374175847,), (1374175861,), (1374175864,), (1374175937,), (1374175949,), (1374175952,), (1374175954,), (1374175956,), (1374175960,), (1374176121,), (1374176234,), (1374176242,), (1374176251,), (1374176253,), (1374176254,), (1374176258,), (1374176283,), (1374176285,), (1374176287,), (1374176288,), (1374176290,), (1374176293,), (1374176315,), (1374176317,), (1374176319,), (1374176320,), (1374176322,), (1374176326,), (1374176364,), (1374176365,), (1374176367,), (1374176369,), (1374176372,), (1374176377,), (1374176396,), (1374176400,), (1374176403,), (1374176422,), (1374176427,), (1374176432,), (1374176540,), (1374176542,), (1374176545,), (1374176549,), (1374176552,), (1374176554,), (1374176569,), (1374176577,), (1374176586,), (1374176589,), (1374176592,), (1374176596,), (1374176657,), (1374176660,), (1374176663,), (1374176665,), (1374176666,), (1374176668,), (1374176854,), (1374176870,), (1374176880,), (1374176903,), (1374176905,), (1374176921,), (1374176989,), (1374176992,), (1374177000,), (1374177026,), (1374177047,), (1374177049,), (1374177064,), (1374177071,), (1374177078,), (1374177084,), (1374177086,), (1374177089,), (1374177110,), (1374177209,), (1374177216,), (1374177224,), (1374177231,), (1374177232,), (1374177234,), (1374177242,), (1374177375,), (1374177565,), (1374177584,), (1374177599,), (1374177601,), (1374177604,), (1374177608,), (1374177618,), (1374177620,), (1374177621,), (1374177622,), (1374177624,), (1374177628,), (1374177639,), (1374177647,), (1374177654,), (1374177655,), (1374177657,), (1374177661,), (1374177688,), (1374177689,), (1374177690,), (1374177691,), (1374177693,), (1374177697,), (1374177727,), (1374177746,), (1374177754,), (1374177770,), (1374177775,), (1374177779,), (1374177822,), (1374177866,), (1374177869,), (1374177872,), (1374177874,), (1374177878,), (1374177894,), (1374177898,), (1374177910,), (1374177917,), (1374177919,), (1374177922,), (1374177935,), (1374177937,), (1374177939,), (1374177941,), (1374177943,), (1374177946,), (1374177996,), (1374178001,), (1374178012,), (1374178019,), (1374178021,), (1374178023,), (1374178101,), (1374178128,), (1374178135,), (1374178144,), (1374178145,), (1374178147,), (1374178166,), (1374178452,), (1374178558,), (1374178567,), (1374178574,), (1374178611,), (1374178613,), (1374178621,), (1374178644,), (1374178646,), (1374178695,), (1374178711,), (1374178713,), (1374178716,), (1374178726,), (1374178736,), (1374178747,), (1374178750,), (1374178753,), (1374178756,), (1374178913,), (1374178937,), (1374178966,), (1374178993,), (1374179018,), (1374179045,), (1374179134,), (1374179146,), (1374179164,), (1374179193,), (1374179209,), (1374179217,), (1374179309,), (1374179324,), (1374179332,), (1374179339,), (1374179345,), (1374179347,), (1374179351,), (1374179391,), (1374179393,), (1374179395,), (1374179398,), (1374179401,), (1374179404,), (1374179427,), (1374179433,), (1374179438,), (1374179444,), (1374179446,), (1374179449,), (1374179462,), (1374179463,), (1374179464,), (1374179465,), (1374179466,), (1374179468,), (1374179483,), (1374179486,), (1374179497,), (1374179505,), (1374179508,), (1374179511,), (1374179520,), (1374179522,), (1374179526,), (1374179529,), (1374179532,), (1374179536,), (1374179549,), (1374179556,), (1374179564,), (1374179565,), (1374179567,), (1374179569,), (1374179579,), (1374179581,), (1374179582,), (1374179584,), (1374179585,), (1374179586,), (1374179702,), (1374179723,), (1374179734,), (1374179742,), (1374179755,), (1374179760,), (1374179788,), (1374179802,), (1374179808,), (1374179816,), (1374179818,), (1374179820,), (1374179823,), (1374179849,), (1374179851,), (1374179853,), (1374179855,), (1374179856,), (1374179861,), (1374179923,), (1374179925,), (1374179927,), (1374179928,), (1374179929,), (1374179932,), (1374180042,), (1374180043,), (1374180044,), (1374180045,), (1374180047,), (1374180052,), (1374180068,), (1374180073,), (1374180085,), (1374180086,), (1374180089,), (1374180092,), (1374180106,), (1374180367,), (1374180615,), (1374180643,), (1374180662,), (1374180664,), (1374180666,), (1374180671,), (1374180927,), (1374180951,), (1374180983,), (1374181013,), (1374181020,), (1374181024,), (1374181128,), (1374181443,), (1374181454,), (1374181466,), (1374181475,), (1374181478,), (1374181663,), (1374181690,), (1374181716,), (1374181741,), (1374181765,), (1374181790,), (1374182049,), (1374182074,), (1374182097,), (1374182120,), (1374182143,), (1374182173,), (1374182294,), (1374182298,), (1374182311,), (1374182327,), (1374182358,), (1374182384,), (1374182503,), (1374182529,), (1374182553,), (1374182578,), (1374182580,), (1374182604,), (1374182629,), (1374182631,), (1374182643,), (1374182644,), (1374182646,), (1374182650,), (1374182663,), (1374182673,), (1374182682,), (1374182702,), (1374182703,), (1374182706,), (1374182789,), (1374182824,), (1374182845,), (1374182848,), (1374182850,), (1374182854,), (1374182874,), (1374182879,), (1374182883,), (1374182885,), (1374182886,), (1374182890,), (1374183018,), (1374183043,), (1374183076,), (1374183099,), (1374183126,), (1374183152,), (1374183253,), (1374183300,), (1374183306,), (1374183318,), (1374183329,), (1374183337,), (1374183341,), (1374183477,), (1374183508,), (1374183546,), (1374183548,), (1374183555,), (1374183567,), (1374183569,), (1374183571,), (1374183581,), (1374183611,), (1374183612,), (1374183613,), (1374183614,), (1374183615,), (1374183617,), (1374183750,), (1374183752,), (1374183753,), (1374183754,), (1374183756,), (1374183759,), (1374183774,), (1374183782,), (1374183810,), (1374183812,), (1374183814,), (1374183818,), (1374183837,), (1374183845,), (1374183853,), (1374183860,), (1374183863,), (1374183867,), (1374183881,), (1374183883,), (1374183893,), (1374183895,), (1374183896,), (1374183913,), (1374183974,), (1374184043,), (1374184060,), (1374184063,), (1374184068,), (1374184071,), (1374184074,), (1374184210,), (1374184216,), (1374184242,), (1374184261,), (1374184266,), (1374184270,), (1374184342,), (1374184344,), (1374184347,), (1374184348,), (1374184351,), (1374184353,), (1374184399,), (1374184423,), (1374184431,), (1374184433,), (1374184442,), (1374184454,), (1374184582,), (1374184590,), (1374184598,), (1374184600,), (1374184603,), (1374184607,), (1374184649,), (1374184670,), (1374184672,), (1374184674,), (1374184676,), (1374184681,), (1374184686,), (1374184699,), (1374184701,), (1374184703,), (1374184704,), (1374184706,), (1374184709,), (1374184724,), (1374184727,), (1374184737,), (1374184746,), (1374184748,), (1374184750,), (1374184791,), (1374184874,), (1374184907,), (1374184919,), (1374184921,), (1374184923,), (1374184926,), (1374184997,), (1374184999,), (1374185002,), (1374185004,), (1374185040,), (1374185043,), (1374185065,), (1374185067,), (1374185068,), (1374185069,), (1374185071,), (1374185074,), (1374185087,), (1374185089,), (1374185092,), (1374185094,), (1374185097,), (1374185101,), (1374185155,), (1374185166,), (1374185194,), (1374185223,), (1374185248,), (1374185252,), (1374185347,), (1374185381,), (1374185383,), (1374185391,), (1374185402,), (1374185404,), (1374185409,), (1374185424,), (1374185426,), (1374185428,), (1374185429,), (1374185431,), (1374185438,), (1374185524,), (1374185561,), (1374185577,), (1374185588,), (1374185590,), (1374185611,), (1374185699,), (1374185736,), (1374185766,), (1374185799,), (1374185801,), (1374185805,), (1374185819,), (1374185823,), (1374185833,), (1374185843,), (1374185845,), (1374185849,), (1374185892,), (1374185894,), (1374185895,), (1374185896,), (1374185926,), (1374185933,), (1374185948,), (1374185956,), (1374185966,), (1374185968,), (1374185970,), (1374185973,), (1374185984,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28072025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25414644]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] map_info['map_portfolio_photo'] : {25414644: [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948, 1374185933, 1374185926, 1374185896, 1374185895, 1374185894, 1374185892, 1374185849, 1374185845, 1374185843, 1374185833, 1374185823, 1374185819, 1374185805, 1374185801, 1374185799, 1374185766, 1374185736, 1374185699, 1374185611, 1374185590, 1374185588, 1374185577, 1374185561, 1374185524, 1374185438, 1374185431, 1374185429, 1374185428, 1374185426, 1374185424, 1374185409, 1374185404, 1374185402, 1374185391, 1374185383, 1374185381, 1374185347, 1374185252, 1374185248, 1374185223, 1374185194, 1374185166, 1374185155, 1374185101, 1374185097, 1374185094, 1374185092, 1374185089, 1374185087, 1374185074, 1374185071, 1374185069, 1374185068, 1374185067, 1374185065, 1374185043, 1374185040, 1374185004, 1374185002, 1374184999, 1374184997, 1374184926, 1374184923, 1374184921, 1374184919, 1374184907, 1374184874]} final : True mtd_id 4302 list_pids : [1374185984, 1374185973, 1374185970, 1374185968, 1374185966, 1374185956, 1374185948] Looping around the photos to save general results len do output : 1 /25414644Didn'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, '3375413') ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413') ('4302', None, None, None, None, None, None, None, '3375413') ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25414644', 'None', None, None, None, None, '3375413'), ('4302', '25414644', '1374185984', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185973', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185970', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185968', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185966', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185956', None, None, None, None, None, '3375413'), ('4302', '25414644', '1374185948', None, None, None, None, None, '3375413')] time used for this insertion : 0.02026677131652832 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.16011118888855 time spend to save output : 0.02050304412841797 total time spend for step 5 : 3.1806142330169678 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 (3375413) 2.16user 2.45system 0:08.26elapsed 55%CPU (0avgtext+0avgdata 158696maxresident)k 1040inputs+4136outputs (58major+70537minor)pagefaults 0swaps