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 : 2437593 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 (3976170) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3976170) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040319 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3976170'] with mtr_portfolio_ids : ['28040319'] and first list_photo_ids : [] new path : /proc/2437593/ Name: python3 Umask: 0002 State: R (running) Tgid: 2437593 Ngid: 0 Pid: 2437593 PPid: 2437592 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2437593 NSpid: 2437593 NSpgid: 2436939 NSsid: 2436939 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98300 kB VmRSS: 98300 kB RssAnon: 59908 kB RssFile: 38392 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 42 nonvoluntary_ctxt_switches: 188 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2437593', 'Ngid': '0', 'Pid': '2437593', 'PPid': '2437592', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2437593', 'NSpid': '2437593', 'NSpgid': '2436939', 'NSsid': '2436939', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98300 kB', 'VmRSS': '98300 kB', 'RssAnon': '59908 kB', 'RssFile': '38392 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '42', 'nonvoluntary_ctxt_switches': '188'} ('datou_batch_current', '2437593', '1106908', '0', '1106884', '865636', '98300', b'', 'marlene', '3976170') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28040319) 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 (3976170 ) ) 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 (28040319) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1391348830, 'portfolio_id': 28040319}, {'photo_id': 1391348818, 'portfolio_id': 28040319}, {'photo_id': 1391348814, 'portfolio_id': 28040319}, {'photo_id': 1391348792, 'portfolio_id': 28040319}, {'photo_id': 1391348789, 'portfolio_id': 28040319}, {'photo_id': 1391348737, 'portfolio_id': 28040319}, {'photo_id': 1391348734, 'portfolio_id': 28040319}, {'photo_id': 1391348732, 'portfolio_id': 28040319}, {'photo_id': 1391348730, 'portfolio_id': 28040319}, {'photo_id': 1391348699, 'portfolio_id': 28040319}, {'photo_id': 1391348694, 'portfolio_id': 28040319}, {'photo_id': 1391348678, 'portfolio_id': 28040319}, {'photo_id': 1391348672, 'portfolio_id': 28040319}, {'photo_id': 1391348666, 'portfolio_id': 28040319}, {'photo_id': 1391348489, 'portfolio_id': 28040319}, {'photo_id': 1391348470, 'portfolio_id': 28040319}, {'photo_id': 1391348189, 'portfolio_id': 28040319}, {'photo_id': 1391348186, 'portfolio_id': 28040319}, {'photo_id': 1391348115, 'portfolio_id': 28040319}, {'photo_id': 1391348104, 'portfolio_id': 28040319}, {'photo_id': 1391348100, 'portfolio_id': 28040319}, {'photo_id': 1391348091, 'portfolio_id': 28040319}, {'photo_id': 1391348089, 'portfolio_id': 28040319}, {'photo_id': 1391348086, 'portfolio_id': 28040319}, {'photo_id': 1391348047, 'portfolio_id': 28040319}, {'photo_id': 1391348043, 'portfolio_id': 28040319}, {'photo_id': 1391348040, 'portfolio_id': 28040319}, {'photo_id': 1391348037, 'portfolio_id': 28040319}, {'photo_id': 1391347989, 'portfolio_id': 28040319}, {'photo_id': 1391347965, 'portfolio_id': 28040319}, {'photo_id': 1391347961, 'portfolio_id': 28040319}, {'photo_id': 1391347941, 'portfolio_id': 28040319}, {'photo_id': 1391347913, 'portfolio_id': 28040319}, {'photo_id': 1391347903, 'portfolio_id': 28040319}, {'photo_id': 1391347552, 'portfolio_id': 28040319}, {'photo_id': 1391347549, 'portfolio_id': 28040319}, {'photo_id': 1391347547, 'portfolio_id': 28040319}, {'photo_id': 1391347545, 'portfolio_id': 28040319}, {'photo_id': 1391347544, 'portfolio_id': 28040319}, {'photo_id': 1391346970, 'portfolio_id': 28040319}, {'photo_id': 1391346930, 'portfolio_id': 28040319}, {'photo_id': 1391346891, 'portfolio_id': 28040319}, {'photo_id': 1391346859, 'portfolio_id': 28040319}, {'photo_id': 1391346441, 'portfolio_id': 28040319}, {'photo_id': 1391346399, 'portfolio_id': 28040319}, {'photo_id': 1391346333, 'portfolio_id': 28040319}, {'photo_id': 1391346273, 'portfolio_id': 28040319}, {'photo_id': 1391346189, 'portfolio_id': 28040319}, {'photo_id': 1391345660, 'portfolio_id': 28040319}, {'photo_id': 1391345658, 'portfolio_id': 28040319}, {'photo_id': 1391345656, 'portfolio_id': 28040319}, {'photo_id': 1391345654, 'portfolio_id': 28040319}, {'photo_id': 1391345552, 'portfolio_id': 28040319}, {'photo_id': 1391345537, 'portfolio_id': 28040319}, {'photo_id': 1391345535, 'portfolio_id': 28040319}, {'photo_id': 1391345533, 'portfolio_id': 28040319}, {'photo_id': 1391345531, 'portfolio_id': 28040319}, {'photo_id': 1391345528, 'portfolio_id': 28040319}, {'photo_id': 1391345523, 'portfolio_id': 28040319}, {'photo_id': 1391345521, 'portfolio_id': 28040319}, {'photo_id': 1391345518, 'portfolio_id': 28040319}, {'photo_id': 1391345517, 'portfolio_id': 28040319}, {'photo_id': 1391345514, 'portfolio_id': 28040319}, {'photo_id': 1391345512, 'portfolio_id': 28040319}, {'photo_id': 1391345509, 'portfolio_id': 28040319}, {'photo_id': 1391345508, 'portfolio_id': 28040319}, {'photo_id': 1391345504, 'portfolio_id': 28040319}, {'photo_id': 1391345503, 'portfolio_id': 28040319}, {'photo_id': 1391345415, 'portfolio_id': 28040319}, {'photo_id': 1391345401, 'portfolio_id': 28040319}, {'photo_id': 1391345397, 'portfolio_id': 28040319}, {'photo_id': 1391345379, 'portfolio_id': 28040319}, {'photo_id': 1391345375, 'portfolio_id': 28040319}, {'photo_id': 1391345372, 'portfolio_id': 28040319}] map_portfolio_id_photo_id: {28040319: [1391348830, 1391348818, 1391348814, 1391348792, 1391348789, 1391348737, 1391348734, 1391348732, 1391348730, 1391348699, 1391348694, 1391348678, 1391348672, 1391348666, 1391348489, 1391348470, 1391348189, 1391348186, 1391348115, 1391348104, 1391348100, 1391348091, 1391348089, 1391348086, 1391348047, 1391348043, 1391348040, 1391348037, 1391347989, 1391347965, 1391347961, 1391347941, 1391347913, 1391347903, 1391347552, 1391347549, 1391347547, 1391347545, 1391347544, 1391346970, 1391346930, 1391346891, 1391346859, 1391346441, 1391346399, 1391346333, 1391346273, 1391346189, 1391345660, 1391345658, 1391345656, 1391345654, 1391345552, 1391345537, 1391345535, 1391345533, 1391345531, 1391345528, 1391345523, 1391345521, 1391345518, 1391345517, 1391345514, 1391345512, 1391345509, 1391345508, 1391345504, 1391345503, 1391345415, 1391345401, 1391345397, 1391345379, 1391345375, 1391345372]} ##### 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.016188859939575195 #### 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 Fri Oct 31 20:05:30 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 (28040319) 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 : 28040319 get user id for portfolio 28040319 get sub ptf for main ptf 28040319, type 3726 and hashtags ['Carton_gris', 'mal_croppe', 'kraft', 'autre_refus', 'cartonnette', 'papier', 'Carton_brun', 'plastique', 'environnement', 'flou', 'metal', '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`=28040319 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','kraft','autre_refus','cartonnette','papier','Carton_brun','plastique','environnement','flou','metal','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`=28040319 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','kraft','autre_refus','cartonnette','papier','Carton_brun','plastique','environnement','flou','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28040319, 'sub_port_id': 28040340, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948725, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'Carton_brun': {'main_port_id': 28040319, 'sub_port_id': 28040341, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948726, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'plastique': {'main_port_id': 28040319, 'sub_port_id': 28040342, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948727, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'autre_refus': {'main_port_id': 28040319, 'sub_port_id': 28040343, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948728, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'papier': {'main_port_id': 28040319, 'sub_port_id': 28040344, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948729, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'flou': {'main_port_id': 28040319, 'sub_port_id': 28040345, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948730, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'metal': {'main_port_id': 28040319, 'sub_port_id': 28040346, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948731, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'cartonnette': {'main_port_id': 28040319, 'sub_port_id': 28040347, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948732, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'Carton_gris': {'main_port_id': 28040319, 'sub_port_id': 28040348, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948733, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'environnement': {'main_port_id': 28040319, 'sub_port_id': 28040349, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948734, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'mal_croppe': {'main_port_id': 28040319, 'sub_port_id': 28040351, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948735, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}, 'kraft': {'main_port_id': 28040319, 'sub_port_id': 28040352, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948736, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040340 , 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=28040319 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 (28040340) result : ((1391345955,), (1391345957,), (1391348061,), (1391348062,), (1391348103,), (1391348105,), (1391348106,), (1391348107,), (1391348433,), (1391348435,), (1391348436,), (1391348437,), (1391348647,), (1391348648,), (1391348653,), (1391348654,), (1391348655,), (1391348656,), (1391348657,), (1391348785,), (1391348880,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040341 , 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=28040319 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 (28040341) result : ((1391346043,), (1391346046,), (1391346050,), (1391346054,), (1391348068,), (1391348116,), (1391348445,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040342 , 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=28040319 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 (28040342) result : ((1391348069,), (1391348117,), (1391348118,), (1391348447,), (1391348448,), (1391348661,), (1391348786,), (1391348885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040343 , 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=28040319 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 (28040343) result : ((1391345981,), (1391345983,), (1391345985,), (1391345987,), (1391348109,), (1391348438,), (1391348882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040344 , 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=28040319 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 (28040344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040345 , 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=28040319 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 (28040345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040346 , 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=28040319 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 (28040346) result : ((1391348070,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040347 , 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=28040319 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 (28040347) result : ((1391346015,), (1391346018,), (1391348065,), (1391348113,), (1391348443,), (1391348649,), (1391348658,), (1391348659,), (1391348660,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040348 , 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=28040319 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 (28040348) result : ((1391345997,), (1391348064,), (1391348111,), (1391348112,), (1391348441,), (1391348442,), (1391348883,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040349 , 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=28040319 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 (28040349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040351 , 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=28040319 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 (28040351) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28040352 , 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=28040319 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 (28040352) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28040319) result : ((1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,)) 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 (1391348100) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28040319 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','kraft','autre_refus','cartonnette','papier','Carton_brun','plastique','environnement','flou','metal','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`=28040319 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','kraft','autre_refus','cartonnette','papier','Carton_brun','plastique','environnement','flou','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28040319, 'sub_port_id': 28040353, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948737, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'Carton_brun': {'main_port_id': 28040319, 'sub_port_id': 28040354, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948738, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'plastique': {'main_port_id': 28040319, 'sub_port_id': 28040355, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948739, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'autre_refus': {'main_port_id': 28040319, 'sub_port_id': 28040356, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948740, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'papier': {'main_port_id': 28040319, 'sub_port_id': 28040357, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948741, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'flou': {'main_port_id': 28040319, 'sub_port_id': 28040358, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948742, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'metal': {'main_port_id': 28040319, 'sub_port_id': 28040359, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948743, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'cartonnette': {'main_port_id': 28040319, 'sub_port_id': 28040360, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948744, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'Carton_gris': {'main_port_id': 28040319, 'sub_port_id': 28040361, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948745, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'environnement': {'main_port_id': 28040319, 'sub_port_id': 28040362, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948746, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'mal_croppe': {'main_port_id': 28040319, 'sub_port_id': 28040363, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948747, 'last_updated_at': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 19, 49, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}, 'kraft': {'main_port_id': 28040319, 'sub_port_id': 28040364, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18948748, 'last_updated_at': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 10, 31, 20, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 10, 31, 19, 49, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28040364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28040352 lien utilise dans velours : https://marlene.fotonower.com/velours/28040353,28040354,28040355,28040356,28040357,28040358,28040359,28040360,28040361,28040362,28040363,28040364?tags=Teint_Dans_La_Masse,Carton_brun,plastique,autre_refus,papier,flou,metal,cartonnette,Carton_gris,environnement,mal_croppe,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28040319]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1391348830, 1391348818, 1391348814] map_info['map_portfolio_photo'] : {28040319: [1391348830, 1391348818, 1391348814, 1391348792, 1391348789, 1391348737, 1391348734, 1391348732, 1391348730, 1391348699, 1391348694, 1391348678, 1391348672, 1391348666, 1391348489, 1391348470, 1391348189, 1391348186, 1391348115, 1391348104, 1391348100, 1391348091, 1391348089, 1391348086, 1391348047, 1391348043, 1391348040, 1391348037, 1391347989, 1391347965, 1391347961, 1391347941, 1391347913, 1391347903, 1391347552, 1391347549, 1391347547, 1391347545, 1391347544, 1391346970, 1391346930, 1391346891, 1391346859, 1391346441, 1391346399, 1391346333, 1391346273, 1391346189, 1391345660, 1391345658, 1391345656, 1391345654, 1391345552, 1391345537, 1391345535, 1391345533, 1391345531, 1391345528, 1391345523, 1391345521, 1391345518, 1391345517, 1391345514, 1391345512, 1391345509, 1391345508, 1391345504, 1391345503, 1391345415, 1391345401, 1391345397, 1391345379, 1391345375, 1391345372]} final : False mtd_id 4302 list_pids : [1391348830, 1391348818, 1391348814] Looping around the photos to save general results len do output : 1 /28040319. 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, '3976170') ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '28040319', "{'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352}", None, None, None, None, '3976170'), ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170')] time used for this insertion : 0.010530948638916016 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.42639660835266113 time spend to save output : 0.01083683967590332 total time spend for step 1 : 0.43723344802856445 step2:final Fri Oct 31 20:05:30 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 (28040319) 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 28040319 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1391345401,1391345397,1391345379,1391345375,1391345372,1391345415,1391345521,1391345523,1391345517,1391345518,1391345512,1391345514,1391345508,1391345509,1391345503,1391345504,1391345552,1391345537,1391345535,1391345533,1391345531,1391345528,1391345660,1391345658,1391345656,1391345654,1391346441,1391346399,1391346333,1391346273,1391346189,1391346970,1391346930,1391346891,1391346859,1391347552,1391347549,1391347547,1391347545,1391347544,1391347989,1391347965,1391347961,1391347941,1391347913,1391347903,1391348047,1391348043,1391348040,1391348037,1391348115,1391348104,1391348100,1391348091,1391348089,1391348086,1391348189,1391348186,1391348489,1391348470,1391348699,1391348694,1391348678,1391348672,1391348666,1391348737,1391348830,1391348734,1391348818,1391348732,1391348814,1391348730,1391348792,1391348789); 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([28040319]) Inside saveOutput : final : False verbose : True original output for save of step final : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} new output for save of step final : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} [1391348830, 1391348818, 1391348814] map_info['map_portfolio_photo'] : {28040319: [1391348830, 1391348818, 1391348814, 1391348792, 1391348789, 1391348737, 1391348734, 1391348732, 1391348730, 1391348699, 1391348694, 1391348678, 1391348672, 1391348666, 1391348489, 1391348470, 1391348189, 1391348186, 1391348115, 1391348104, 1391348100, 1391348091, 1391348089, 1391348086, 1391348047, 1391348043, 1391348040, 1391348037, 1391347989, 1391347965, 1391347961, 1391347941, 1391347913, 1391347903, 1391347552, 1391347549, 1391347547, 1391347545, 1391347544, 1391346970, 1391346930, 1391346891, 1391346859, 1391346441, 1391346399, 1391346333, 1391346273, 1391346189, 1391345660, 1391345658, 1391345656, 1391345654, 1391345552, 1391345537, 1391345535, 1391345533, 1391345531, 1391345528, 1391345523, 1391345521, 1391345518, 1391345517, 1391345514, 1391345512, 1391345509, 1391345508, 1391345504, 1391345503, 1391345415, 1391345401, 1391345397, 1391345379, 1391345375, 1391345372]} final : False mtd_id 4302 list_pids : [1391348830, 1391348818, 1391348814] Looping around the photos to save general results len do output : 3 /1391348830.Didn't retrieve data . /1391348818.Didn't retrieve data . /1391348814.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, '3976170') ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '28040319', '1391348830', '0.07090607584544263', None, None, None, None, '3976170'), ('4302', '28040319', '1391348818', '0.07090607584544263', None, None, None, None, '3976170'), ('4302', '28040319', '1391348814', '0.07090607584544263', None, None, None, None, '3976170')] time used for this insertion : 0.00969386100769043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0659627914428711 time spend to save output : 0.009987831115722656 total time spend for step 2 : 0.07595062255859375 step3:velours_tree Fri Oct 31 20:05:30 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 : {28040319: [{'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352}]} input_args_next_step : {28040319: ()} output_args : {28040319: [{'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352}]} args : 28040319 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 : ({'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28040319) 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([28040319]) 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.3071305751800537 time spend to save output : 7.390975952148438e-05 total time spend for step 3 : 0.3072044849395752 step4:send_mail_cod Fri Oct 31 20:05:30 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 : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} input_args_next_step : {1391348830: ()} output_args : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} args : 1391348830 depend.output_id : 0 input_args_next_step : {1391348830: ('0.07090607584544263',), 1391348818: ()} output_args : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} args : 1391348818 depend.output_id : 0 input_args_next_step : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ()} output_args : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',)} args : 1391348814 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 : {28040319: [{'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352}]} input_args_next_step : {1391348830: ('0.07090607584544263',), 1391348818: ('0.07090607584544263',), 1391348814: ('0.07090607584544263',), 28040319: ()} output_args : {28040319: [{'Teint_Dans_La_Masse': 28040340, 'Carton_brun': 28040341, 'plastique': 28040342, 'autre_refus': 28040343, 'papier': 28040344, 'flou': 28040345, 'metal': 28040346, 'cartonnette': 28040347, 'Carton_gris': 28040348, 'environnement': 28040349, 'mal_croppe': 28040351, 'kraft': 28040352}]} args : 28040319 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 :4, first value : ('0.07090607584544263',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28040319) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1391348830,1391348818,1391348814) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1391348814 begin to download photo : 1391348818 begin to download photo : 1391348830 download finish for photo 1391348830 download finish for photo 1391348818 download finish for photo 1391348814 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P28040319_31-10-2025_20_05_31.pdf 28040342 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391348069: '1761936906_265568_1391346891_b02d41a00f1eebc51afe498771d461e8_rle_crop_4011091568_0.png', 1391348117: '1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091884_0.png', 1391348118: '1761936926_266118_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091953_0.png', 1391348447: '1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091884_0.png', 1391348448: '1761937046_273712_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091953_0.png', 1391348661: '1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096984_0.png', 1391348786: '1761937266_397186_1391345654_04070ff1884bbc2599f406e2c6a49a89_rle_crop_4011103850_0.png', 1391348885: '1761937386_437062_1391348694_27dd4a54203457c7f0c5ab8d85b18fa3_rle_crop_4011119734_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/6679a6fad75303a6fc92094d22d49122_9943447.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/bf3372d7db2075d448851dfeac6e1f22_36982400.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/39e35a0fad733974ce6e391d1b59301e_43195985.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/bf3372d7db2075d448851dfeac6e1f22_19154517.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/39e35a0fad733974ce6e391d1b59301e_56537801.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1466df84566b7ac3fa6e5ed7cf5279e4_21435822.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/7472e8a226206d250d2215f6283b83ee_67129941.png change filename to text .imagette280403421761937531/ imagette280403421761937531/1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091884_0.png.png imagette280403421761937531/1761937046_273712_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091953_0.png.png imagette280403421761937531/1761937386_437062_1391348694_27dd4a54203457c7f0c5ab8d85b18fa3_rle_crop_4011119734_0.png.png imagette280403421761937531/1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096984_0.png.png imagette280403421761937531/1761936926_266118_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091953_0.png.png imagette280403421761937531/1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091884_0.png.png imagette280403421761937531/1761937266_397186_1391345654_04070ff1884bbc2599f406e2c6a49a89_rle_crop_4011103850_0.png.png imagette280403421761937531/1761936906_265568_1391346891_b02d41a00f1eebc51afe498771d461e8_rle_crop_4011091568_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/91c281ff14e9abe4b8aa9147c485d8f9_71637542.png imagette280403421761937531 28040343 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391345981: '1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088833_0.png', 1391345983: '1761936625_252436_1391345379_4f1c2482cd4c4fe65affb2829c415bf3_rle_crop_4011088882_0.png', 1391345985: '1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088965_0.png', 1391345987: '1761936625_252436_1391345372_f86fa0d21f446c9515c7b094e3465a41_rle_crop_4011088971_0.png', 1391348109: '1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091920_0.png', 1391348438: '1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091920_0.png', 1391348882: '1761937386_437062_1391348694_27dd4a54203457c7f0c5ab8d85b18fa3_rle_crop_4011119735_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/f2703eb5e1a1baa591473ad2b515b43e_23446060.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/af3f001f7339dc05b62e1f9bd8119aff_66788927.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c62ffa439a08448c7273bf254d63ae4a_63391008.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1083a3a8f5e4d81c4f410f7feec5e956_57658587.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/68baaea497f8c6ac5aaa255d485b2792_67154793.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/68baaea497f8c6ac5aaa255d485b2792_74610956.png change filename to text .imagette280403431761937531/ imagette280403431761937531/1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091920_0.png.png imagette280403431761937531/1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088965_0.png.png imagette280403431761937531/1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091920_0.png.png imagette280403431761937531/1761936625_252436_1391345372_f86fa0d21f446c9515c7b094e3465a41_rle_crop_4011088971_0.png.png imagette280403431761937531/1761936625_252436_1391345379_4f1c2482cd4c4fe65affb2829c415bf3_rle_crop_4011088882_0.png.png imagette280403431761937531/1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088833_0.png.png imagette280403431761937531/1761937386_437062_1391348694_27dd4a54203457c7f0c5ab8d85b18fa3_rle_crop_4011119735_0.png.png imagette280403451761937532/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3ab83dcc3abd2723df508de2ab200a39_73669136.png imagette280403431761937531 28040345 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette280403451761937532 28040346 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391348070: '1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091551_0.png'} change filename to text .imagette280403461761937532/ imagette280403461761937532/1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091551_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/298d01bcdc0ca2b8603f44085d639fa4_64921216.png imagette280403461761937532 28040347 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391346015: '1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088961_0.png', 1391346018: '1761936625_252436_1391345372_f86fa0d21f446c9515c7b094e3465a41_rle_crop_4011088970_0.png', 1391348065: '1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091545_0.png', 1391348113: '1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091876_0.png', 1391348443: '1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091876_0.png', 1391348649: '1761937106_276822_1391348040_493ff09b4000882e1e3412d30e2dec50_rle_crop_4011096657_0.png', 1391348658: '1761937145_277487_1391347913_bd6686fe32f34ed0ba6170d9e7ee0ba4_rle_crop_4011096998_0.png', 1391348659: '1761937145_277487_1391347913_bd6686fe32f34ed0ba6170d9e7ee0ba4_rle_crop_4011097004_0.png', 1391348660: '1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097027_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/56527350b10a26850b28fbebba5c270d_95094868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/91c745f5d03fc9d719f918eddd0e16ce_37009412.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/1bfc96414a0bf57bcd1b27b703c58e0d_21821429.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b006221d47691c4d5cfe5331e8bfe0de_61532233.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b006221d47691c4d5cfe5331e8bfe0de_81424300.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ca1edbb51d3549efc97086385aff4eba_1099191.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ac4a8510715765b9eb741ae960e3935a_1468204.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/27d64b24c6a4d0cca47ce1a0acd152b1_41963716.png change filename to text .imagette280403471761937532/ imagette280403471761937532/1761937145_277487_1391347913_bd6686fe32f34ed0ba6170d9e7ee0ba4_rle_crop_4011097004_0.png.png imagette280403471761937532/1761936625_252436_1391345372_f86fa0d21f446c9515c7b094e3465a41_rle_crop_4011088970_0.png.png imagette280403471761937532/1761937145_277487_1391347913_bd6686fe32f34ed0ba6170d9e7ee0ba4_rle_crop_4011096998_0.png.png imagette280403471761937532/1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097027_0.png.png imagette280403471761937532/1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091545_0.png.png imagette280403471761937532/1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091876_0.png.png imagette280403471761937532/1761937106_276822_1391348040_493ff09b4000882e1e3412d30e2dec50_rle_crop_4011096657_0.png.png imagette280403471761937532/1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091876_0.png.png imagette280403471761937532/1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088961_0.png.png imagette280403511761937533/ imagette280403521761937533/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c154ad4acd5ac12e874db0b2a4efa31d_39239269.png imagette280403471761937532 28040351 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette280403511761937533 28040352 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette280403521761937533 28040340 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391348436: '1761937046_273712_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091905_0.png', 1391348880: '1761937386_437062_1391348666_a0a83d3ba46879c841c2b2755dbc2f09_rle_crop_4011119769_0.png', 1391348785: '1761937266_397186_1391346441_39cc8061459c81400b42314eda4f57a7_rle_crop_4011103835_0.png', 1391348657: '1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097031_0.png', 1391348656: '1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097037_0.png', 1391348655: '1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096985_0.png', 1391348654: '1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096986_0.png', 1391348653: '1761937145_277487_1391347965_17568cc209560afdc571348bd185bb73_rle_crop_4011096909_0.png', 1391348648: '1761937106_276822_1391348037_5b8f8af6a9a141584d1555e2c37b9222_rle_crop_4011096671_0.png', 1391348647: '1761937106_276822_1391348037_5b8f8af6a9a141584d1555e2c37b9222_rle_crop_4011096676_0.png', 1391348437: '1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091925_0.png', 1391345955: '1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088836_0.png', 1391348435: '1761937046_273712_1391346399_bf3860355729be95a31f720ace8372d3_rle_crop_4011091893_0.png', 1391348433: '1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091878_0.png', 1391348107: '1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091925_0.png', 1391348106: '1761936926_266118_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091905_0.png', 1391348105: '1761936926_266118_1391346399_bf3860355729be95a31f720ace8372d3_rle_crop_4011091893_0.png', 1391348103: '1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091878_0.png', 1391348062: '1761936906_265568_1391346891_b02d41a00f1eebc51afe498771d461e8_rle_crop_4011091572_0.png', 1391348061: '1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091549_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/e4fdbb887ad848d055dddf512565def0_30354431.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c7a78fef006c7fc6459fa48680a0004d_43958973.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/f418c30b034e6557b3b486d3cd8d2bfd_95781249.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c08f4c25ad6352f69c9279a6183ee0db_38535082.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/643942d93665e3333ba3ec07004a45c8_54147795.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/c03d2f8f2dbc2d84519aa3f3bb1365a7_12348474.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4b48343a4024b1df00d16031941d9da4_53383076.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/0ded70a9ed8dcf56d4e042b5bcdb22cf_90370674.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4f8a8709482a977baba6e6c14cde2d00_1942271.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/62028c61a48952ac05151fc55ce019a9_33025728.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/5e89324610b75a71bfdb486902d2dbb4_56449760.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/dc8818d6b10529239214b7f35fd2b879_79165382.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/444e368697a08731aaca7e99497f4457_4629239.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/83e92b90fc1d2ef862371bcf6beb7229_68517501.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/5e89324610b75a71bfdb486902d2dbb4_52345630.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/e4fdbb887ad848d055dddf512565def0_73547624.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/444e368697a08731aaca7e99497f4457_89977338.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/83e92b90fc1d2ef862371bcf6beb7229_60766021.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4f6ab3b7421473a507e721f5314cd7ea_68209402.png change filename to text .imagette280403401761937533/ imagette280403401761937533/1761937145_277487_1391347965_17568cc209560afdc571348bd185bb73_rle_crop_4011096909_0.png.png imagette280403401761937533/1761937046_273712_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091905_0.png.png imagette280403401761937533/1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091925_0.png.png imagette280403401761937533/1761936926_266118_1391346399_bf3860355729be95a31f720ace8372d3_rle_crop_4011091893_0.png.png imagette280403401761937533/1761936926_266118_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091905_0.png.png imagette280403401761937533/1761937266_397186_1391346441_39cc8061459c81400b42314eda4f57a7_rle_crop_4011103835_0.png.png imagette280403401761937533/1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097037_0.png.png imagette280403401761937533/1761936926_266118_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091878_0.png.png imagette280403401761937533/1761937386_437062_1391348666_a0a83d3ba46879c841c2b2755dbc2f09_rle_crop_4011119769_0.png.png imagette280403401761937533/1761937145_277487_1391347903_95e3f2eb962d98754b37b37841685c1a_rle_crop_4011097031_0.png.png imagette280403401761937533/1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088836_0.png.png imagette280403401761937533/1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091925_0.png.png imagette280403401761937533/1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096986_0.png.png imagette280403401761937533/1761937106_276822_1391348037_5b8f8af6a9a141584d1555e2c37b9222_rle_crop_4011096676_0.png.png imagette280403401761937533/1761936906_265568_1391346891_b02d41a00f1eebc51afe498771d461e8_rle_crop_4011091572_0.png.png imagette280403401761937533/1761937106_276822_1391348037_5b8f8af6a9a141584d1555e2c37b9222_rle_crop_4011096671_0.png.png imagette280403401761937533/1761937046_273712_1391346399_bf3860355729be95a31f720ace8372d3_rle_crop_4011091893_0.png.png imagette280403401761937533/1761937046_273712_1391346970_d9c0726420e9220be7b97077f22394f5_rle_crop_4011091878_0.png.png imagette280403401761937533/1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091549_0.png.png imagette280403401761937533/1761937145_277487_1391347941_6d70ddb5f9f1783bca32225bc152a05a_rle_crop_4011096985_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/b1407df70e206cb30b14b3269657b10e_94027894.png imagette280403401761937533 28040341 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391346043: '1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088834_0.png', 1391346046: '1761936625_252436_1391345397_f0d2514182fd16db9cdddeacc95c3651_rle_crop_4011088870_0.png', 1391346050: '1761936625_252436_1391345397_f0d2514182fd16db9cdddeacc95c3651_rle_crop_4011088872_0.png', 1391346054: '1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088964_0.png', 1391348068: '1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091552_0.png', 1391348116: '1761936926_266118_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091910_0.png', 1391348445: '1761937046_273712_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3ed10395350ba4a7d24a9f327d8f424b_47291616.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/91bd3cb1e3318b3d34e9cd0f9ce8166d_29698349.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/285b41275c3a2f6fa22538823fd6daf1_84410264.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3b5d84dce94a793f932204a297826434_75670311.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3428f68b71d9460838a2756486d8b063_42324634.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ef487a4091c7cfce267497242113d286_19981551.png change filename to text .imagette280403411761937534/ imagette280403411761937534/1761936625_252436_1391345375_266b52f7718a6cb9dd7ab7ccc0626e9d_rle_crop_4011088964_0.png.png imagette280403411761937534/1761936926_266118_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091910_0.png.png imagette280403411761937534/1761936906_265568_1391346930_b6521b9ad93051cc8c69fba292349d9a_rle_crop_4011091552_0.png.png imagette280403411761937534/1761936625_252436_1391345397_f0d2514182fd16db9cdddeacc95c3651_rle_crop_4011088872_0.png.png imagette280403411761937534/1761936625_252436_1391345415_82ecec91620bf03757c1ce88677d32df_rle_crop_4011088834_0.png.png imagette280403411761937534/1761937046_273712_1391346333_ae2e0a898fdd230e9186722ca3bed822_rle_crop_4011091910_0.png.png imagette280403411761937534/1761936625_252436_1391345397_f0d2514182fd16db9cdddeacc95c3651_rle_crop_4011088870_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/ef487a4091c7cfce267497242113d286_59609340.png imagette280403411761937534 28040348 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1391345997: '1761936625_252436_1391345379_4f1c2482cd4c4fe65affb2829c415bf3_rle_crop_4011088884_0.png', 1391348064: '1761936906_265568_1391346859_09cc2504f4cc5938a791184e713d1404_rle_crop_4011091577_0.png', 1391348111: '1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091924_0.png', 1391348112: '1761936926_266118_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091944_0.png', 1391348441: '1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091924_0.png', 1391348442: '1761937046_273712_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091944_0.png', 1391348883: '1761937386_437062_1391348666_a0a83d3ba46879c841c2b2755dbc2f09_rle_crop_4011119766_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/3101b6dde9c0fa792e90a52aa615987a_95384124.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/f6ba32e84738e8a4f3ec9340d3a845ad_86825780.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d68d72d86916cc7e54f9e239ca179f1b_60594704.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d63d9b1afc338c24a425e16006e0515e_45596360.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d68d72d86916cc7e54f9e239ca179f1b_99645216.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/d63d9b1afc338c24a425e16006e0515e_75277794.png change filename to text .imagette280403481761937535/ imagette280403481761937535/1761937046_273712_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091944_0.png.png imagette280403481761937535/1761937386_437062_1391348666_a0a83d3ba46879c841c2b2755dbc2f09_rle_crop_4011119766_0.png.png imagette280403481761937535/1761937046_273712_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091924_0.png.png imagette280403481761937535/1761936906_265568_1391346859_09cc2504f4cc5938a791184e713d1404_rle_crop_4011091577_0.png.png imagette280403481761937535/1761936926_266118_1391346273_b2efab9cd699c8c2fdbbf6557a40f7a2_rle_crop_4011091924_0.png.png imagette280403481761937535/1761936926_266118_1391346189_432f992720c32efffb1f67b5c265f16c_rle_crop_4011091944_0.png.png imagette280403481761937535/1761936625_252436_1391345379_4f1c2482cd4c4fe65affb2829c415bf3_rle_crop_4011088884_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/83697b1b48ee38a1455650adb762f8b2_10173618.png imagette280403481761937535 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28040319 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28040353,28040354,28040355,28040356,28040357,28040358,28040359,28040360,28040361,28040362,28040363,28040364?tags=Teint_Dans_La_Masse,Carton_brun,plastique,autre_refus,papier,flou,metal,cartonnette,Carton_gris,environnement,mal_croppe,kraft your option no_mail is active, we will not send the real mail to your client args[1391348830] : ('0.07090607584544263',) no score found for photo 1391348830 We are sending mail with results at report@fotonower.com args[1391348818] : ('0.07090607584544263',) no score found for photo 1391348818 We are sending mail with results at report@fotonower.com args[1391348814] : ('0.07090607584544263',) no score found for photo 1391348814 We are sending mail with results at report@fotonower.com refus_total : 0.07090607584544263 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040319 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_P28040319_31-10-2025_20_05_31.pdf results_Auto_P28040319_31-10-2025_20_05_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28040319_31-10-2025_20_05_31.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','28040319','results_Auto_P28040319_31-10-2025_20_05_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28040319_31-10-2025_20_05_31.pdf','pdf','','0.19','0.07090607584544263') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28040319]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1391348830, 1391348818, 1391348814] map_info['map_portfolio_photo'] : {28040319: [1391348830, 1391348818, 1391348814, 1391348792, 1391348789, 1391348737, 1391348734, 1391348732, 1391348730, 1391348699, 1391348694, 1391348678, 1391348672, 1391348666, 1391348489, 1391348470, 1391348189, 1391348186, 1391348115, 1391348104, 1391348100, 1391348091, 1391348089, 1391348086, 1391348047, 1391348043, 1391348040, 1391348037, 1391347989, 1391347965, 1391347961, 1391347941, 1391347913, 1391347903, 1391347552, 1391347549, 1391347547, 1391347545, 1391347544, 1391346970, 1391346930, 1391346891, 1391346859, 1391346441, 1391346399, 1391346333, 1391346273, 1391346189, 1391345660, 1391345658, 1391345656, 1391345654, 1391345552, 1391345537, 1391345535, 1391345533, 1391345531, 1391345528, 1391345523, 1391345521, 1391345518, 1391345517, 1391345514, 1391345512, 1391345509, 1391345508, 1391345504, 1391345503, 1391345415, 1391345401, 1391345397, 1391345379, 1391345375, 1391345372]} final : False mtd_id 4302 list_pids : [1391348830, 1391348818, 1391348814] 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, '3976170') ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '28040319', '1391348830', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170')] time used for this insertion : 0.00887751579284668 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.94338321685791 time spend to save output : 0.009056568145751953 total time spend for step 4 : 5.952439785003662 step5:split_time_score Fri Oct 31 20:05:36 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 : ['28040319'] 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 : [('28040319',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28040319) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1391348830: {'path': 'temp/1761937530_2437593_1391348830_cd007b8c86a5c169258f92f09be87173.jpg', 'extension': 'jpg'}, 1391348818: {'path': 'temp/1761937530_2437593_1391348818_292b155585f64f328889f1f751150654.jpg', 'extension': 'jpg'}, 1391348814: {'path': 'temp/1761937530_2437593_1391348814_acbb9f696c4471295a179840267ab74c.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 = 28040319; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28040319 group by h (('19', 74),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28040319 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 (28040319) 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 (28040319) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31102025 28040319 Nombre de photos uploadées : 74 / 23040 (0%) 31102025 28040319 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 31102025 28040319 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1391345401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/42ff6b50023217165ec1543073d8162d.jpg', 'username': None, 'uploaded_at': 1761936397, 'text': 'image_31102025_19_45_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1391345397, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/f0d2514182fd16db9cdddeacc95c3651.jpg', 'username': None, 'uploaded_at': 1761936397, 'text': 'image_31102025_19_45_14_010136m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1391345379, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/4f1c2482cd4c4fe65affb2829c415bf3.jpg', 'username': None, 'uploaded_at': 1761936397, 'text': 'image_31102025_19_45_24_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1391345375, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/31/266b52f7718a6cb9dd7ab7ccc0626e9d.jpg', 'username': None, 'uploaded_at': 1761936397, 'text': 'image_31102025_19_45_34_010147m0.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.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003047943115234375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28040319, '2025-10-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2480930,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20591998100280762 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= 2480930 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27984246, 'dashboard_result_id': 16660043, '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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27984915, 'dashboard_result_id': 16660044, '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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27985516, 'dashboard_result_id': 16660045, '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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27986113, 'dashboard_result_id': 16660046, '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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27987917, 'dashboard_result_id': 16660047, '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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27988609, 'dashboard_result_id': 16660048, '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_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27989289, 'dashboard_result_id': 16660049, '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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27989961, 'dashboard_result_id': 16660050, '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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27990560, 'dashboard_result_id': 16660051, '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_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27991257, 'dashboard_result_id': 16660053, '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_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27991963, 'dashboard_result_id': 16660054, '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_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27992767, 'dashboard_result_id': 16660055, '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_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27993411, 'dashboard_result_id': 16660056, '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_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27994229, 'dashboard_result_id': 16660057, '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_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27994804, 'dashboard_result_id': 16660059, '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_P27994804_31-10-2025_07_31_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27996763, 'dashboard_result_id': 16660060, '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_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27997305, 'dashboard_result_id': 16660061, '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_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27998032, 'dashboard_result_id': 16660062, '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_P27998032_31-10-2025_07_01_12.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27998683, 'dashboard_result_id': 16660063, '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_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 27999240, 'dashboard_result_id': 16660064, '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_P27999240_31-10-2025_06_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27999303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27999304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27999305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27999306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27999307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27999308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27999309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27999310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27999311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27999312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27999313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27999314, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28000093, 'dashboard_result_id': 16660065, '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_P28000093_31-10-2025_06_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000112, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28000743, 'dashboard_result_id': 16660066, '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_P28000743_31-10-2025_06_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000765, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28001435, 'dashboard_result_id': 16660068, '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_P28001435_31-10-2025_07_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28001469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28001470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28001471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28001472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28001473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28001474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28001475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28001476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28001477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28001478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28001479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28001480, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28002258, 'dashboard_result_id': 16660069, '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_P28002258_31-10-2025_07_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002287, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28002969, 'dashboard_result_id': 16660070, '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_P28002969_31-10-2025_07_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002981, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28003741, 'dashboard_result_id': 16660071, '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_P28003741_31-10-2025_07_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28003742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28003743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28003744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28003745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28003746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28003747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28003748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28003749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28003750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28003751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28003752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28003753, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28004478, 'dashboard_result_id': 16660072, '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_P28004478_31-10-2025_08_06_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28004511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28004512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28004513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28004514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28004516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28004517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28004518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28004519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28004520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28004521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28004522, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28005377, 'dashboard_result_id': 16660073, '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_P28005377_31-10-2025_08_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28005402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28005403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28005404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28005405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28005406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28005407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28005408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28005409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28005410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28005411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28005412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28005413, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28006386, 'dashboard_result_id': 16660074, '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_P28006386_31-10-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006402, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28006958, 'dashboard_result_id': 16660075, '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_P28006958_31-10-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006973, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28007760, 'dashboard_result_id': 16660078, '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_P28007760_31-10-2025_09_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28007792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28007793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28007794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28007795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28007796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28007797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28007798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28007799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28007800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28007801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28007802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28007803, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28010534, 'dashboard_result_id': 16660079, '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_P28010534_31-10-2025_09_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28010559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28010560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28010561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28010562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28010563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28010564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28010565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28010566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28010570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28010571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28010572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28010573, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28011505, 'dashboard_result_id': 16660080, '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_P28011505_31-10-2025_11_31_14.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28011542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28011543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28011544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28011545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28011546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28011547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28011548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28011549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28011550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28011551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28011552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28011554, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28012440, 'dashboard_result_id': 16660081, '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_P28012440_31-10-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28012446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28012447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28012448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28012449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28012450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28012451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28012452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28012454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28012455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28012456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28012457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28012458, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28013517, 'dashboard_result_id': 16660082, '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_P28013517_31-10-2025_10_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28013526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28013527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28013528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28013529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28013530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28013531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28013532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28013533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28013534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28013535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28013536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28013537, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28014308, 'dashboard_result_id': 16660083, '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_P28014308_31-10-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28014370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28014371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28014372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28014373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28014374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28014375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28014376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28014377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28014378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28014379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28014380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28014381, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28015611, 'dashboard_result_id': 16660084, '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_P28015611_31-10-2025_11_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28015672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28015673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28015674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28015675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28015676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28015677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28015678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28015679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28015680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28015681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28015682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28015683, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28016590, 'dashboard_result_id': 16660085, '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_P28016590_31-10-2025_11_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28016654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28016656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28016657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28016658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28016659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28016660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28016661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28016662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28016663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28016664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28016665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28016666, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28017399, 'dashboard_result_id': 16660086, '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_P28017399_31-10-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28017567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28017568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28017569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28017570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28017571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28017572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28017573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28017574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28017575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28017576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28017577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28017578, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28018539, 'dashboard_result_id': 16660087, '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_P28018539_31-10-2025_11_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28018561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28018562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28018563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28018564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28018565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28018566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28018567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28018568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28018569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28018570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28018571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28018572, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28019557, 'dashboard_result_id': 16660088, '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_P28019557_31-10-2025_12_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28019596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28019597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28019598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28019599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28019600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28019601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28019602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28019603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28019604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28019605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28019606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28019607, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28020483, 'dashboard_result_id': 16660089, '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_P28020483_31-10-2025_12_23_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28020539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28020540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28020541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28020542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28020543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28020544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28020545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28020546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28020547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28020548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28020549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28020550, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28024841, 'dashboard_result_id': 16660090, '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_P28024841_31-10-2025_14_41_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28024898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28024899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28024900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28024901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28024902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28024903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28024904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28024905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28024906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28024907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28024908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28024909, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28026564, 'dashboard_result_id': 16660091, '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_P28026564_31-10-2025_14_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026582, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28026786, 'dashboard_result_id': 16660092, '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_P28026786_31-10-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026812, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28027276, 'dashboard_result_id': 16660093, '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_P28027276_31-10-2025_15_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28027302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027306, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28027833, 'dashboard_result_id': 16660094, '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_P28027833_31-10-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28027843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027854, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28028484, 'dashboard_result_id': 16660095, '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_P28028484_31-10-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28028551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28028552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28028553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28028554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28028555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28028556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28028557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28028559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28028560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28028561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28028562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28028563, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28029165, 'dashboard_result_id': 16660096, '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_P28029165_31-10-2025_16_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28029204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28029205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28029206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28029207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28029208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28029209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28029210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28029211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28029212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28029213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28029214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28029215, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28030123, 'dashboard_result_id': 16660097, '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_P28030123_31-10-2025_16_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030144, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28030701, 'dashboard_result_id': 16660098, '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_P28030701_31-10-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030759, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28031374, 'dashboard_result_id': 16660099, '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_P28031374_31-10-2025_16_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28031410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28031411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28031412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28031413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28031414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28031415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28031416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28031417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28031418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28031419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28031420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28031421, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28032167, 'dashboard_result_id': 16660100, '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_P28032167_31-10-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28032209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032220, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28032869, 'dashboard_result_id': 16660101, '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_P28032869_31-10-2025_17_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28032892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032895, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28033767, 'dashboard_result_id': 16660102, '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_P28033767_31-10-2025_17_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28033804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28033805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28033806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28033807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28033809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28033810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28033811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28033812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28033813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28033814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28033815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28033816, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28035626, 'dashboard_result_id': 16660103, '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_P28035626_31-10-2025_18_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28035661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28035662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28035663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28035664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28035665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28035666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28035667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28035668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28035669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28035670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28035671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28035672, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28036475, 'dashboard_result_id': 16660104, '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_P28036475_31-10-2025_18_36_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28036486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28036487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28036488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28036489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28036490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28036491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28036492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28036493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28036494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28036495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28036496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28036497, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28037238, 'dashboard_result_id': 16660105, '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_P28037238_31-10-2025_18_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037287, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28037638, 'dashboard_result_id': 16660106, '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_P28037638_31-10-2025_19_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037666, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28038154, 'dashboard_result_id': 16660107, '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_P28038154_31-10-2025_19_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28038206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038216, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28038921, 'dashboard_result_id': 16660108, '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_P28038921_31-10-2025_19_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28038959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038970, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28039463, 'dashboard_result_id': 16660109, '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_P28039463_31-10-2025_19_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28039481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28039482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28039483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28039484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28039485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28039486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28039487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28039488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28039489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28039490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28039491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28039492, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28040319, 'dashboard_result_id': 16660110, '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_P28040319_31-10-2025_20_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28040340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28040341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28040342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28040343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28040344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28040345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28040346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28040347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28040348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28040349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28040351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28040352, 'pht': 3726}}"}, {'dashboat_entry_day': 2480930, 'dashboard_run_id': 2495507, 'mtr_portfolio_id': 28041009, 'dashboard_result_id': 16660111, '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_P28041009_31-10-2025_20_05_00.pdf'}"}] 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 = 27984246 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': 3969509, 'mtr_portfolio_id': 27984246, 'created_at': datetime.datetime(2025, 10, 31, 0, 21, 7), 'result': '0.0485640521063409', 'result_long': None, 'result_double': None}] Qualite : 0.0485640521063409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984246 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_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, 'pht': 3726}}" where mtr_portfolio_id = 27984246 and dashboard_run_id = 2495507 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`=27984246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660043, 0.0485640521063409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984246_31-10-2025_00_21_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984250, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27984251, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27984252, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27984253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27984254, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27984255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27984257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27984258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27984259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27984260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27984261, '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 = 27984915 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': 3969553, 'mtr_portfolio_id': 27984915, 'created_at': datetime.datetime(2025, 10, 31, 0, 33, 30), 'result': '0.06613849093810649', 'result_long': None, 'result_double': None}] Qualite : 0.06613849093810649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27984915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27984915 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_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, 'pht': 3726}}" where mtr_portfolio_id = 27984915 and dashboard_run_id = 2495507 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`=27984915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660044, 0.06613849093810649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27984915_31-10-2025_00_33_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27984998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27984999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985009, '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 = 27985516 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': 3969618, 'mtr_portfolio_id': 27985516, 'created_at': datetime.datetime(2025, 10, 31, 0, 48, 59), 'result': '0.04081272999715808', 'result_long': None, 'result_double': None}] Qualite : 0.04081272999715808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27985516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27985516 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_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, 'pht': 3726}}" where mtr_portfolio_id = 27985516 and dashboard_run_id = 2495507 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`=27985516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660045, 0.04081272999715808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27985516_31-10-2025_00_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27985517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27985518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27985519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27985520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27985523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27985524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27985525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27985527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27985528, '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 = 27986113 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': 3969708, 'mtr_portfolio_id': 27986113, 'created_at': datetime.datetime(2025, 10, 31, 1, 35, 1), 'result': '0.043844437442149733', 'result_long': None, 'result_double': None}] Qualite : 0.043844437442149733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27986113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27986113 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_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, 'pht': 3726}}" where mtr_portfolio_id = 27986113 and dashboard_run_id = 2495507 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`=27986113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660046, 0.043844437442149733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27986113_31-10-2025_01_35_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27986138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27986139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27986140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27986141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27986142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27986143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27986144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27986145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27986146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27986147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27986148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27986149, '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 = 27987917 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': 3969845, 'mtr_portfolio_id': 27987917, 'created_at': datetime.datetime(2025, 10, 31, 1, 48, 57), 'result': '0.046096920408609306', 'result_long': None, 'result_double': None}] Qualite : 0.046096920408609306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27987917 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27987917 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_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, 'pht': 3726}}" where mtr_portfolio_id = 27987917 and dashboard_run_id = 2495507 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`=27987917 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660047, 0.046096920408609306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27987917_31-10-2025_01_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27987918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27987919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27987920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27987921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27987922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27987923, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27987924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27987925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27987926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27987927, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27987928, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27987929, '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 = 27988609 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': 3969880, 'mtr_portfolio_id': 27988609, 'created_at': datetime.datetime(2025, 10, 31, 2, 3, 59), 'result': '0.05145342664783269', 'result_long': None, 'result_double': None}] Qualite : 0.05145342664783269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27988609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27988609 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_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, 'pht': 3726}}" where mtr_portfolio_id = 27988609 and dashboard_run_id = 2495507 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`=27988609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660048, 0.05145342664783269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27988609_31-10-2025_02_04_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27988613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27988614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27988615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27988616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27988617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27988618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27988619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27988620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27988621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27988622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27988623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27988624, '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 = 27989289 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': 3969945, 'mtr_portfolio_id': 27989289, 'created_at': datetime.datetime(2025, 10, 31, 2, 19, 32), 'result': '0.06619168477635745', 'result_long': None, 'result_double': None}] Qualite : 0.06619168477635745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989289 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_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, 'pht': 3726}}" where mtr_portfolio_id = 27989289 and dashboard_run_id = 2495507 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`=27989289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660049, 0.06619168477635745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989289_31-10-2025_02_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989293, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989301, '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 = 27989961 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': 3969990, 'mtr_portfolio_id': 27989961, 'created_at': datetime.datetime(2025, 10, 31, 2, 33, 29), 'result': '0.060098423084526995', 'result_long': None, 'result_double': None}] Qualite : 0.060098423084526995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27989961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27989961 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_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, 'pht': 3726}}" where mtr_portfolio_id = 27989961 and dashboard_run_id = 2495507 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`=27989961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660050, 0.060098423084526995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27989961_31-10-2025_02_33_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27989988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27989989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27989990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27989991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27989992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27989993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27989994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27989995, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27989996, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27989997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27989998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27989999, '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 = 27990560 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': 3970053, 'mtr_portfolio_id': 27990560, 'created_at': datetime.datetime(2025, 10, 31, 2, 48, 58), 'result': '0.06988985110979506', 'result_long': None, 'result_double': None}] Qualite : 0.06988985110979506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27990560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27990560 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_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, 'pht': 3726}}" where mtr_portfolio_id = 27990560 and dashboard_run_id = 2495507 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`=27990560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660051, 0.06988985110979506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27990560_31-10-2025_02_48_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27990562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27990563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27990564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27990565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27990566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27990567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27990568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27990569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27990570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27990571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27990572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27990573, '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 = 27991257 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': 3970124, 'mtr_portfolio_id': 27991257, 'created_at': datetime.datetime(2025, 10, 31, 3, 2, 59), 'result': '0.07856622896842394', 'result_long': None, 'result_double': None}] Qualite : 0.07856622896842394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27991257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991257_31-10-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27991257 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_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, 'pht': 3726}}" where mtr_portfolio_id = 27991257 and dashboard_run_id = 2495507 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`=27991257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660053, 0.07856622896842394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991257_31-10-2025_03_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991348, '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 = 27991963 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': 3970199, 'mtr_portfolio_id': 27991963, 'created_at': datetime.datetime(2025, 10, 31, 3, 18, 57), 'result': '0.08736304648451905', 'result_long': None, 'result_double': None}] Qualite : 0.08736304648451905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27991963 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991963_31-10-2025_03_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27991963 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_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, 'pht': 3726}}" where mtr_portfolio_id = 27991963 and dashboard_run_id = 2495507 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`=27991963 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660054, 0.08736304648451905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27991963_31-10-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27991988, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27991989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27991990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27991991, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27991992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27991993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27991994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27991995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27991996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27991997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27991998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27991999, '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 = 27992767 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': 3970271, 'mtr_portfolio_id': 27992767, 'created_at': datetime.datetime(2025, 10, 31, 3, 33, 31), 'result': '0.07537174969423834', 'result_long': None, 'result_double': None}] Qualite : 0.07537174969423834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27992767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27992767_31-10-2025_03_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27992767 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_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, 'pht': 3726}}" where mtr_portfolio_id = 27992767 and dashboard_run_id = 2495507 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`=27992767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660055, 0.07537174969423834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27992767_31-10-2025_03_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27992829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27992830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27992831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27992832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27992833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27992834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27992835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27992836, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27992837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27992838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27992839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27992840, '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 = 27993411 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': 3970325, 'mtr_portfolio_id': 27993411, 'created_at': datetime.datetime(2025, 10, 31, 3, 49), 'result': '0.052485657942202134', 'result_long': None, 'result_double': None}] Qualite : 0.052485657942202134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27993411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27993411_31-10-2025_03_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27993411 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_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, 'pht': 3726}}" where mtr_portfolio_id = 27993411 and dashboard_run_id = 2495507 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`=27993411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660056, 0.052485657942202134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27993411_31-10-2025_03_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27993434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27993435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27993436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27993437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27993438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27993439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27993440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27993441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27993442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27993443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27993444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27993445, '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 = 27994229 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': 3970395, 'mtr_portfolio_id': 27994229, 'created_at': datetime.datetime(2025, 10, 31, 4, 4, 28), 'result': '0.04910664059168891', 'result_long': None, 'result_double': None}] Qualite : 0.04910664059168891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27994229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994229_31-10-2025_04_04_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27994229 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_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, 'pht': 3726}}" where mtr_portfolio_id = 27994229 and dashboard_run_id = 2495507 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`=27994229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660057, 0.04910664059168891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994229_31-10-2025_04_04_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27994243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994246, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994247, '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 = 27994804 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': 3970482, 'mtr_portfolio_id': 27994804, 'created_at': datetime.datetime(2025, 10, 31, 7, 31, 1), 'result': '0.054859376229996995', 'result_long': None, 'result_double': None}] Qualite : 0.054859376229996995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27994804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994804_31-10-2025_07_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27994804 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_P27994804_31-10-2025_07_31_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, 'pht': 3726}}" where mtr_portfolio_id = 27994804 and dashboard_run_id = 2495507 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`=27994804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660059, 0.054859376229996995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27994804_31-10-2025_07_31_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27994830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27994831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27994832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27994833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27994834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27994835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27994836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27994837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27994838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27994839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27994840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27994841, '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 = 27996763 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': 3970661, 'mtr_portfolio_id': 27996763, 'created_at': datetime.datetime(2025, 10, 31, 5, 18, 58), 'result': '0.08202499107421811', 'result_long': None, 'result_double': None}] Qualite : 0.08202499107421811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27996763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27996763_31-10-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27996763 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_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, 'pht': 3726}}" where mtr_portfolio_id = 27996763 and dashboard_run_id = 2495507 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`=27996763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660060, 0.08202499107421811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27996763_31-10-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27996764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27996765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27996766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27996767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27996768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27996769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27996770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27996771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27996772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27996773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27996774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27996775, '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 = 27997305 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': 3970685, 'mtr_portfolio_id': 27997305, 'created_at': datetime.datetime(2025, 10, 31, 5, 35, 29), 'result': '0.06720215019866518', 'result_long': None, 'result_double': None}] Qualite : 0.06720215019866518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27997305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27997305_31-10-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27997305 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_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, 'pht': 3726}}" where mtr_portfolio_id = 27997305 and dashboard_run_id = 2495507 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`=27997305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660061, 0.06720215019866518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27997305_31-10-2025_05_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27997308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27997309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27997310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27997311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27997312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27997313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27997314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27997315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27997316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27997317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27997318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27997319, '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 = 27998032 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': 3970732, 'mtr_portfolio_id': 27998032, 'created_at': datetime.datetime(2025, 10, 31, 7, 1, 9), 'result': '0.0731414678812181', 'result_long': None, 'result_double': None}] Qualite : 0.0731414678812181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27998032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998032_31-10-2025_07_01_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27998032 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_P27998032_31-10-2025_07_01_12.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, 'pht': 3726}}" where mtr_portfolio_id = 27998032 and dashboard_run_id = 2495507 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`=27998032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660062, 0.0731414678812181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998032_31-10-2025_07_01_12.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998080, '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 = 27998683 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': 3970804, 'mtr_portfolio_id': 27998683, 'created_at': datetime.datetime(2025, 10, 31, 6, 6, 30), 'result': '0.0587582502123863', 'result_long': None, 'result_double': None}] Qualite : 0.0587582502123863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27998683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998683_31-10-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27998683 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_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, 'pht': 3726}}" where mtr_portfolio_id = 27998683 and dashboard_run_id = 2495507 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`=27998683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660063, 0.0587582502123863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27998683_31-10-2025_06_06_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27998688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27998689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27998690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27998691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27998692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27998693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27998694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27998695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27998696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27998697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27998698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27998699, '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 = 27999240 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': 3970874, 'mtr_portfolio_id': 27999240, 'created_at': datetime.datetime(2025, 10, 31, 6, 16, 57), 'result': '0.06736457948292154', 'result_long': None, 'result_double': None}] Qualite : 0.06736457948292154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27999240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27999240_31-10-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27999240 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_P27999240_31-10-2025_06_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27999303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27999304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27999305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27999306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27999307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27999308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27999309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27999310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27999311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27999312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27999313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27999314, 'pht': 3726}}" where mtr_portfolio_id = 27999240 and dashboard_run_id = 2495507 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`=27999240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660064, 0.06736457948292154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27999240_31-10-2025_06_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27999303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27999304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27999305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27999306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27999307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27999308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27999309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27999310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27999311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27999312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27999313, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27999314, '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 = 28000093 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': 3970930, 'mtr_portfolio_id': 28000093, 'created_at': datetime.datetime(2025, 10, 31, 6, 34, 58), 'result': '0.05788041890919155', 'result_long': None, 'result_double': None}] Qualite : 0.05788041890919155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28000093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28000093_31-10-2025_06_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28000093 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_P28000093_31-10-2025_06_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000112, 'pht': 3726}}" where mtr_portfolio_id = 28000093 and dashboard_run_id = 2495507 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`=28000093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660065, 0.05788041890919155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28000093_31-10-2025_06_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000112, '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 = 28000743 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': 3971009, 'mtr_portfolio_id': 28000743, 'created_at': datetime.datetime(2025, 10, 31, 6, 48, 59), 'result': '0.05440144404597093', 'result_long': None, 'result_double': None}] Qualite : 0.05440144404597093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28000743 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28000743_31-10-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28000743 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_P28000743_31-10-2025_06_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000765, 'pht': 3726}}" where mtr_portfolio_id = 28000743 and dashboard_run_id = 2495507 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`=28000743 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660066, 0.05440144404597093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28000743_31-10-2025_06_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28000753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28000754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28000755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28000756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28000757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28000758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28000759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28000760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28000762, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28000763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28000764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28000765, '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 = 28001435 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': 3971077, 'mtr_portfolio_id': 28001435, 'created_at': datetime.datetime(2025, 10, 31, 7, 11), 'result': '0.061382766000773525', 'result_long': None, 'result_double': None}] Qualite : 0.061382766000773525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28001435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28001435_31-10-2025_07_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28001435 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_P28001435_31-10-2025_07_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28001469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28001470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28001471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28001472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28001473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28001474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28001475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28001476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28001477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28001478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28001479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28001480, 'pht': 3726}}" where mtr_portfolio_id = 28001435 and dashboard_run_id = 2495507 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`=28001435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660068, 0.061382766000773525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28001435_31-10-2025_07_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28001469, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28001470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28001471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28001472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28001473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28001474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28001475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28001476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28001477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28001478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28001479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28001480, '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 = 28002258 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': 3971214, 'mtr_portfolio_id': 28002258, 'created_at': datetime.datetime(2025, 10, 31, 7, 19, 27), 'result': '0.041297117831714004', 'result_long': None, 'result_double': None}] Qualite : 0.041297117831714004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28002258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28002258_31-10-2025_07_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28002258 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_P28002258_31-10-2025_07_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002287, 'pht': 3726}}" where mtr_portfolio_id = 28002258 and dashboard_run_id = 2495507 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`=28002258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660069, 0.041297117831714004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28002258_31-10-2025_07_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002287, '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 = 28002969 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': 3971263, 'mtr_portfolio_id': 28002969, 'created_at': datetime.datetime(2025, 10, 31, 7, 35, 28), 'result': '0.071953447103644', 'result_long': None, 'result_double': None}] Qualite : 0.071953447103644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28002969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28002969_31-10-2025_07_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28002969 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_P28002969_31-10-2025_07_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002981, 'pht': 3726}}" where mtr_portfolio_id = 28002969 and dashboard_run_id = 2495507 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`=28002969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660070, 0.071953447103644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28002969_31-10-2025_07_35_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28002970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28002971, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28002972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28002973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28002974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28002975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28002976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28002977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28002978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28002979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28002980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28002981, '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 = 28003741 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': 3971323, 'mtr_portfolio_id': 28003741, 'created_at': datetime.datetime(2025, 10, 31, 7, 48, 59), 'result': '0.0796251907986925', 'result_long': None, 'result_double': None}] Qualite : 0.0796251907986925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28003741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28003741_31-10-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28003741 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_P28003741_31-10-2025_07_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28003742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28003743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28003744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28003745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28003746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28003747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28003748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28003749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28003750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28003751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28003752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28003753, 'pht': 3726}}" where mtr_portfolio_id = 28003741 and dashboard_run_id = 2495507 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`=28003741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660071, 0.0796251907986925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28003741_31-10-2025_07_48_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28003742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28003743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28003744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28003745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28003746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28003747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28003748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28003749, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28003750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28003751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28003752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28003753, '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 = 28004478 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': 3971400, 'mtr_portfolio_id': 28004478, 'created_at': datetime.datetime(2025, 10, 31, 8, 6, 10), 'result': '0.06752713142936194', 'result_long': None, 'result_double': None}] Qualite : 0.06752713142936194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28004478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28004478_31-10-2025_08_06_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28004478 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_P28004478_31-10-2025_08_06_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28004511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28004512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28004513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28004514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28004516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28004517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28004518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28004519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28004520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28004521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28004522, 'pht': 3726}}" where mtr_portfolio_id = 28004478 and dashboard_run_id = 2495507 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`=28004478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660072, 0.06752713142936194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28004478_31-10-2025_08_06_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28004511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28004512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28004513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28004514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28004515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28004516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28004517, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28004518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28004519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28004520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28004521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28004522, '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 = 28005377 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': 3971499, 'mtr_portfolio_id': 28005377, 'created_at': datetime.datetime(2025, 10, 31, 8, 22, 32), 'result': '0.06376250310998259', 'result_long': None, 'result_double': None}] Qualite : 0.06376250310998259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28005377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28005377_31-10-2025_08_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28005377 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_P28005377_31-10-2025_08_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28005402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28005403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28005404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28005405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28005406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28005407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28005408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28005409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28005410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28005411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28005412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28005413, 'pht': 3726}}" where mtr_portfolio_id = 28005377 and dashboard_run_id = 2495507 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`=28005377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660073, 0.06376250310998259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28005377_31-10-2025_08_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28005402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28005403, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28005404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28005405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28005406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28005407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28005408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28005409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28005410, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28005411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28005412, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28005413, '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 = 28006386 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': 3971579, 'mtr_portfolio_id': 28006386, 'created_at': datetime.datetime(2025, 10, 31, 8, 32, 57), 'result': '0.1077385362187896', 'result_long': None, 'result_double': None}] Qualite : 0.1077385362187896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28006386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28006386_31-10-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28006386 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_P28006386_31-10-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006402, 'pht': 3726}}" where mtr_portfolio_id = 28006386 and dashboard_run_id = 2495507 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`=28006386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660074, 0.1077385362187896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28006386_31-10-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006402, '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 = 28006958 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': 3971646, 'mtr_portfolio_id': 28006958, 'created_at': datetime.datetime(2025, 10, 31, 8, 48, 56), 'result': '0.07136512840016074', 'result_long': None, 'result_double': None}] Qualite : 0.07136512840016074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28006958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28006958_31-10-2025_08_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28006958 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_P28006958_31-10-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006973, 'pht': 3726}}" where mtr_portfolio_id = 28006958 and dashboard_run_id = 2495507 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`=28006958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660075, 0.07136512840016074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28006958_31-10-2025_08_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28006961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28006962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28006963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28006964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28006965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28006966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28006967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28006968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28006970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28006971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28006972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28006973, '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 = 28007760 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': 3971709, 'mtr_portfolio_id': 28007760, 'created_at': datetime.datetime(2025, 10, 31, 9, 5, 1), 'result': '0.06544814581316641', 'result_long': None, 'result_double': None}] Qualite : 0.06544814581316641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28007760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28007760_31-10-2025_09_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28007760 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_P28007760_31-10-2025_09_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28007792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28007793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28007794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28007795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28007796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28007797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28007798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28007799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28007800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28007801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28007802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28007803, 'pht': 3726}}" where mtr_portfolio_id = 28007760 and dashboard_run_id = 2495507 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`=28007760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660078, 0.06544814581316641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28007760_31-10-2025_09_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28007792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28007793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28007794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28007795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28007796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28007797, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28007798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28007799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28007800, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28007801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28007802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28007803, '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 = 28010534 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': 3972099, 'mtr_portfolio_id': 28010534, 'created_at': datetime.datetime(2025, 10, 31, 9, 48, 57), 'result': '0.0603697165675008', 'result_long': None, 'result_double': None}] Qualite : 0.0603697165675008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28010534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28010534_31-10-2025_09_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28010534 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_P28010534_31-10-2025_09_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28010559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28010560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28010561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28010562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28010563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28010564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28010565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28010566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28010570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28010571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28010572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28010573, 'pht': 3726}}" where mtr_portfolio_id = 28010534 and dashboard_run_id = 2495507 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`=28010534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660079, 0.0603697165675008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28010534_31-10-2025_09_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28010559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28010560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28010561, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28010562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28010563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28010564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28010565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28010566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28010570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28010571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28010572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28010573, '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 = 28011505 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': 3972254, 'mtr_portfolio_id': 28011505, 'created_at': datetime.datetime(2025, 10, 31, 11, 31, 13), 'result': '0.05800126794435031', 'result_long': None, 'result_double': None}] Qualite : 0.05800126794435031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28011505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28011505_31-10-2025_11_31_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28011505 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_P28011505_31-10-2025_11_31_14.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28011542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28011543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28011544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28011545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28011546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28011547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28011548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28011549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28011550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28011551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28011552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28011554, 'pht': 3726}}" where mtr_portfolio_id = 28011505 and dashboard_run_id = 2495507 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`=28011505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660080, 0.05800126794435031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28011505_31-10-2025_11_31_14.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28011542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28011543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28011544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28011545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28011546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28011547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28011548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28011549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28011550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28011551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28011552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28011554, '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 = 28012440 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': 3972422, 'mtr_portfolio_id': 28012440, 'created_at': datetime.datetime(2025, 10, 31, 10, 18, 58), 'result': '0.05920047608301036', 'result_long': None, 'result_double': None}] Qualite : 0.05920047608301036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28012440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28012440_31-10-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28012440 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_P28012440_31-10-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28012446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28012447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28012448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28012449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28012450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28012451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28012452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28012454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28012455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28012456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28012457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28012458, 'pht': 3726}}" where mtr_portfolio_id = 28012440 and dashboard_run_id = 2495507 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`=28012440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660081, 0.05920047608301036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28012440_31-10-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28012446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28012447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28012448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28012449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28012450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28012451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28012452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28012454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28012455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28012456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28012457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28012458, '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 = 28013517 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': 3972524, 'mtr_portfolio_id': 28013517, 'created_at': datetime.datetime(2025, 10, 31, 10, 32, 59), 'result': '0.06817010526925779', 'result_long': None, 'result_double': None}] Qualite : 0.06817010526925779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28013517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28013517_31-10-2025_10_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28013517 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_P28013517_31-10-2025_10_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28013526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28013527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28013528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28013529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28013530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28013531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28013532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28013533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28013534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28013535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28013536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28013537, 'pht': 3726}}" where mtr_portfolio_id = 28013517 and dashboard_run_id = 2495507 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`=28013517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660082, 0.06817010526925779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28013517_31-10-2025_10_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28013526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28013527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28013528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28013529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28013530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28013531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28013532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28013533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28013534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28013535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28013536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28013537, '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 = 28014308 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': 3972599, 'mtr_portfolio_id': 28014308, 'created_at': datetime.datetime(2025, 10, 31, 10, 48, 59), 'result': '0.05277084964787195', 'result_long': None, 'result_double': None}] Qualite : 0.05277084964787195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28014308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28014308_31-10-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28014308 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_P28014308_31-10-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28014370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28014371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28014372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28014373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28014374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28014375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28014376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28014377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28014378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28014379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28014380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28014381, 'pht': 3726}}" where mtr_portfolio_id = 28014308 and dashboard_run_id = 2495507 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`=28014308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660083, 0.05277084964787195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28014308_31-10-2025_10_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28014370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28014371, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28014372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28014373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28014374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28014375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28014376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28014377, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28014378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28014379, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28014380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28014381, '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 = 28015611 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': 3972731, 'mtr_portfolio_id': 28015611, 'created_at': datetime.datetime(2025, 10, 31, 11, 4, 58), 'result': '0.05044307701523747', 'result_long': None, 'result_double': None}] Qualite : 0.05044307701523747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28015611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28015611_31-10-2025_11_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28015611 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_P28015611_31-10-2025_11_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28015672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28015673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28015674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28015675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28015676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28015677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28015678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28015679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28015680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28015681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28015682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28015683, 'pht': 3726}}" where mtr_portfolio_id = 28015611 and dashboard_run_id = 2495507 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`=28015611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660084, 0.05044307701523747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28015611_31-10-2025_11_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28015672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28015673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28015674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28015675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28015676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28015677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28015678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28015679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28015680, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28015681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28015682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28015683, '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 = 28016590 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': 3972913, 'mtr_portfolio_id': 28016590, 'created_at': datetime.datetime(2025, 10, 31, 11, 16, 59), 'result': '0.1215414057772836', 'result_long': None, 'result_double': None}] Qualite : 0.1215414057772836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28016590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28016590_31-10-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28016590 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_P28016590_31-10-2025_11_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28016654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28016656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28016657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28016658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28016659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28016660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28016661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28016662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28016663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28016664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28016665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28016666, 'pht': 3726}}" where mtr_portfolio_id = 28016590 and dashboard_run_id = 2495507 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`=28016590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660085, 0.1215414057772836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28016590_31-10-2025_11_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28016654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28016656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28016657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28016658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28016659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28016660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28016661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28016662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28016663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28016664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28016665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28016666, '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 = 28017399 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': 3973024, 'mtr_portfolio_id': 28017399, 'created_at': datetime.datetime(2025, 10, 31, 11, 32, 59), 'result': '0.11521248060964802', 'result_long': None, 'result_double': None}] Qualite : 0.11521248060964802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28017399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28017399_31-10-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28017399 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_P28017399_31-10-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28017567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28017568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28017569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28017570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28017571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28017572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28017573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28017574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28017575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28017576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28017577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28017578, 'pht': 3726}}" where mtr_portfolio_id = 28017399 and dashboard_run_id = 2495507 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`=28017399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660086, 0.11521248060964802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28017399_31-10-2025_11_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28017567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28017568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28017569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28017570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28017571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28017572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28017573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28017574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28017575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28017576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28017577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28017578, '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 = 28018539 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': 3973231, 'mtr_portfolio_id': 28018539, 'created_at': datetime.datetime(2025, 10, 31, 11, 50, 32), 'result': '0.05210988867686022', 'result_long': None, 'result_double': None}] Qualite : 0.05210988867686022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28018539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28018539_31-10-2025_11_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28018539 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_P28018539_31-10-2025_11_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28018561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28018562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28018563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28018564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28018565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28018566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28018567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28018568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28018569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28018570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28018571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28018572, 'pht': 3726}}" where mtr_portfolio_id = 28018539 and dashboard_run_id = 2495507 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`=28018539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660087, 0.05210988867686022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28018539_31-10-2025_11_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28018561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28018562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28018563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28018564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28018565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28018566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28018567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28018568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28018569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28018570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28018571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28018572, '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 = 28019557 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': 3973445, 'mtr_portfolio_id': 28019557, 'created_at': datetime.datetime(2025, 10, 31, 12, 4, 59), 'result': '0.028174080837983517', 'result_long': None, 'result_double': None}] Qualite : 0.028174080837983517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28019557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28019557_31-10-2025_12_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28019557 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_P28019557_31-10-2025_12_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28019596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28019597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28019598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28019599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28019600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28019601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28019602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28019603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28019604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28019605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28019606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28019607, 'pht': 3726}}" where mtr_portfolio_id = 28019557 and dashboard_run_id = 2495507 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`=28019557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660088, 0.028174080837983517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28019557_31-10-2025_12_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28019596, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28019597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28019598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28019599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28019600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28019601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28019602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28019603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28019604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28019605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28019606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28019607, '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 = 28020483 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': 3973616, 'mtr_portfolio_id': 28020483, 'created_at': datetime.datetime(2025, 10, 31, 12, 22, 59), 'result': '0.06720539534922373', 'result_long': None, 'result_double': None}] Qualite : 0.06720539534922373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28020483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28020483_31-10-2025_12_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28020483 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_P28020483_31-10-2025_12_23_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28020539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28020540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28020541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28020542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28020543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28020544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28020545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28020546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28020547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28020548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28020549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28020550, 'pht': 3726}}" where mtr_portfolio_id = 28020483 and dashboard_run_id = 2495507 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`=28020483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660089, 0.06720539534922373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28020483_31-10-2025_12_23_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28020539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28020540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28020541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28020542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28020543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28020544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28020545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28020546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28020547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28020548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28020549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28020550, '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 = 28024841 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': 3973964, 'mtr_portfolio_id': 28024841, 'created_at': datetime.datetime(2025, 10, 31, 14, 40, 59), 'result': '0.056218337780915686', 'result_long': None, 'result_double': None}] Qualite : 0.056218337780915686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28024841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28024841_31-10-2025_14_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28024841 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_P28024841_31-10-2025_14_41_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28024898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28024899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28024900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28024901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28024902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28024903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28024904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28024905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28024906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28024907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28024908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28024909, 'pht': 3726}}" where mtr_portfolio_id = 28024841 and dashboard_run_id = 2495507 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`=28024841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660090, 0.056218337780915686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28024841_31-10-2025_14_41_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28024898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28024899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28024900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28024901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28024902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28024903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28024904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28024905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28024906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28024907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28024908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28024909, '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 = 28026564 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': 3974097, 'mtr_portfolio_id': 28026564, 'created_at': datetime.datetime(2025, 10, 31, 14, 49), 'result': '0.03725766593198602', 'result_long': None, 'result_double': None}] Qualite : 0.03725766593198602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28026564 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28026564_31-10-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28026564 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_P28026564_31-10-2025_14_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026582, 'pht': 3726}}" where mtr_portfolio_id = 28026564 and dashboard_run_id = 2495507 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`=28026564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660091, 0.03725766593198602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28026564_31-10-2025_14_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026582, '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 = 28026786 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': 3974124, 'mtr_portfolio_id': 28026786, 'created_at': datetime.datetime(2025, 10, 31, 15, 2, 58), 'result': '0.05448459728256811', 'result_long': None, 'result_double': None}] Qualite : 0.05448459728256811 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28026786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28026786_31-10-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28026786 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_P28026786_31-10-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026812, 'pht': 3726}}" where mtr_portfolio_id = 28026786 and dashboard_run_id = 2495507 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`=28026786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660092, 0.05448459728256811, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28026786_31-10-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28026801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28026802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28026803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28026804, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28026805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28026806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28026807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28026808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28026809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28026810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28026811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28026812, '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 = 28027276 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': 3974260, 'mtr_portfolio_id': 28027276, 'created_at': datetime.datetime(2025, 10, 31, 15, 19, 32), 'result': '0.0407383394563792', 'result_long': None, 'result_double': None}] Qualite : 0.0407383394563792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28027276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28027276_31-10-2025_15_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28027276 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_P28027276_31-10-2025_15_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28027302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027306, 'pht': 3726}}" where mtr_portfolio_id = 28027276 and dashboard_run_id = 2495507 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`=28027276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660093, 0.0407383394563792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28027276_31-10-2025_15_19_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027300, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28027302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027306, '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 = 28027833 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': 3974352, 'mtr_portfolio_id': 28027833, 'created_at': datetime.datetime(2025, 10, 31, 15, 32, 58), 'result': '0.06227163687060107', 'result_long': None, 'result_double': None}] Qualite : 0.06227163687060107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28027833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28027833_31-10-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28027833 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_P28027833_31-10-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28027843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027854, 'pht': 3726}}" where mtr_portfolio_id = 28027833 and dashboard_run_id = 2495507 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`=28027833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660094, 0.06227163687060107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28027833_31-10-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28027843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28027844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28027845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28027846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28027847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28027848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28027849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28027850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28027851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28027852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28027853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28027854, '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 = 28028484 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': 3974466, 'mtr_portfolio_id': 28028484, 'created_at': datetime.datetime(2025, 10, 31, 15, 48, 59), 'result': '0.02663690008084278', 'result_long': None, 'result_double': None}] Qualite : 0.02663690008084278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28028484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28028484_31-10-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28028484 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_P28028484_31-10-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28028551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28028552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28028553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28028554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28028555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28028556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28028557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28028559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28028560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28028561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28028562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28028563, 'pht': 3726}}" where mtr_portfolio_id = 28028484 and dashboard_run_id = 2495507 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`=28028484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660095, 0.02663690008084278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28028484_31-10-2025_15_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28028551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28028552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28028553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28028554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28028555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28028556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28028557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28028559, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28028560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28028561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28028562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28028563, '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 = 28029165 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': 3974618, 'mtr_portfolio_id': 28029165, 'created_at': datetime.datetime(2025, 10, 31, 16, 6, 57), 'result': '0.06711633027297877', 'result_long': None, 'result_double': None}] Qualite : 0.06711633027297877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28029165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28029165_31-10-2025_16_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28029165 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_P28029165_31-10-2025_16_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28029204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28029205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28029206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28029207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28029208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28029209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28029210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28029211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28029212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28029213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28029214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28029215, 'pht': 3726}}" where mtr_portfolio_id = 28029165 and dashboard_run_id = 2495507 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`=28029165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660096, 0.06711633027297877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28029165_31-10-2025_16_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28029204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28029205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28029206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28029207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28029208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28029209, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28029210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28029211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28029212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28029213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28029214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28029215, '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 = 28030123 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': 3974841, 'mtr_portfolio_id': 28030123, 'created_at': datetime.datetime(2025, 10, 31, 16, 18, 59), 'result': '0.02917873147845067', 'result_long': None, 'result_double': None}] Qualite : 0.02917873147845067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28030123 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28030123_31-10-2025_16_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28030123 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_P28030123_31-10-2025_16_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030144, 'pht': 3726}}" where mtr_portfolio_id = 28030123 and dashboard_run_id = 2495507 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`=28030123 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660097, 0.02917873147845067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28030123_31-10-2025_16_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030144, '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 = 28030701 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': 3974955, 'mtr_portfolio_id': 28030701, 'created_at': datetime.datetime(2025, 10, 31, 16, 32, 58), 'result': '0.034939993655592624', 'result_long': None, 'result_double': None}] Qualite : 0.034939993655592624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28030701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28030701_31-10-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28030701 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_P28030701_31-10-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030759, 'pht': 3726}}" where mtr_portfolio_id = 28030701 and dashboard_run_id = 2495507 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`=28030701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660098, 0.034939993655592624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28030701_31-10-2025_16_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28030748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28030749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28030750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28030751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28030752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28030753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28030754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28030755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28030756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28030757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28030758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28030759, '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 = 28031374 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': 3975094, 'mtr_portfolio_id': 28031374, 'created_at': datetime.datetime(2025, 10, 31, 16, 49), 'result': '0.037163961264106087', 'result_long': None, 'result_double': None}] Qualite : 0.037163961264106087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28031374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28031374_31-10-2025_16_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28031374 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_P28031374_31-10-2025_16_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28031410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28031411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28031412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28031413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28031414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28031415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28031416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28031417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28031418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28031419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28031420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28031421, 'pht': 3726}}" where mtr_portfolio_id = 28031374 and dashboard_run_id = 2495507 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`=28031374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660099, 0.037163961264106087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28031374_31-10-2025_16_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28031410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28031411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28031412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28031413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28031414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28031415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28031416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28031417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28031418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28031419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28031420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28031421, '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 = 28032167 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': 3975190, 'mtr_portfolio_id': 28032167, 'created_at': datetime.datetime(2025, 10, 31, 17, 2, 58), 'result': '0.06728568670268724', 'result_long': None, 'result_double': None}] Qualite : 0.06728568670268724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28032167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28032167_31-10-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28032167 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_P28032167_31-10-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28032209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032220, 'pht': 3726}}" where mtr_portfolio_id = 28032167 and dashboard_run_id = 2495507 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`=28032167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660100, 0.06728568670268724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28032167_31-10-2025_17_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28032209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032210, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032211, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032220, '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 = 28032869 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': 3975266, 'mtr_portfolio_id': 28032869, 'created_at': datetime.datetime(2025, 10, 31, 17, 18, 57), 'result': '0.023130820129938792', 'result_long': None, 'result_double': None}] Qualite : 0.023130820129938792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28032869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28032869_31-10-2025_17_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28032869 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_P28032869_31-10-2025_17_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28032892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032895, 'pht': 3726}}" where mtr_portfolio_id = 28032869 and dashboard_run_id = 2495507 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`=28032869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660101, 0.023130820129938792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28032869_31-10-2025_17_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28032883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28032884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28032885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28032886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28032887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28032888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28032889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28032891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28032892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28032893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28032894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28032895, '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 = 28033767 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': 3975420, 'mtr_portfolio_id': 28033767, 'created_at': datetime.datetime(2025, 10, 31, 17, 32, 59), 'result': '0.04954955975999876', 'result_long': None, 'result_double': None}] Qualite : 0.04954955975999876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28033767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28033767_31-10-2025_17_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28033767 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_P28033767_31-10-2025_17_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28033804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28033805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28033806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28033807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28033809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28033810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28033811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28033812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28033813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28033814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28033815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28033816, 'pht': 3726}}" where mtr_portfolio_id = 28033767 and dashboard_run_id = 2495507 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`=28033767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660102, 0.04954955975999876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28033767_31-10-2025_17_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28033804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28033805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28033806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28033807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28033809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28033810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28033811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28033812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28033813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28033814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28033815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28033816, '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 = 28035626 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': 3975634, 'mtr_portfolio_id': 28035626, 'created_at': datetime.datetime(2025, 10, 31, 18, 20, 58), 'result': '0.0697000757464911', 'result_long': None, 'result_double': None}] Qualite : 0.0697000757464911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28035626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28035626_31-10-2025_18_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28035626 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_P28035626_31-10-2025_18_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28035661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28035662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28035663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28035664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28035665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28035666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28035667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28035668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28035669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28035670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28035671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28035672, 'pht': 3726}}" where mtr_portfolio_id = 28035626 and dashboard_run_id = 2495507 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`=28035626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660103, 0.0697000757464911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28035626_31-10-2025_18_20_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28035661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28035662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28035663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28035664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28035665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28035666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28035667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28035668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28035669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28035670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28035671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28035672, '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 = 28036475 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': 3975719, 'mtr_portfolio_id': 28036475, 'created_at': datetime.datetime(2025, 10, 31, 18, 36, 59), 'result': '0.059481225450541395', 'result_long': None, 'result_double': None}] Qualite : 0.059481225450541395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28036475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28036475_31-10-2025_18_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28036475 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_P28036475_31-10-2025_18_36_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28036486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28036487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28036488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28036489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28036490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28036491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28036492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28036493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28036494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28036495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28036496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28036497, 'pht': 3726}}" where mtr_portfolio_id = 28036475 and dashboard_run_id = 2495507 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`=28036475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660104, 0.059481225450541395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28036475_31-10-2025_18_36_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28036486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28036487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28036488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28036489, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28036490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28036491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28036492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28036493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28036494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28036495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28036496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28036497, '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 = 28037238 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': 3975812, 'mtr_portfolio_id': 28037238, 'created_at': datetime.datetime(2025, 10, 31, 18, 48, 57), 'result': '0.048345011778358524', 'result_long': None, 'result_double': None}] Qualite : 0.048345011778358524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28037238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28037238_31-10-2025_18_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28037238 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_P28037238_31-10-2025_18_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037287, 'pht': 3726}}" where mtr_portfolio_id = 28037238 and dashboard_run_id = 2495507 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`=28037238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660105, 0.048345011778358524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28037238_31-10-2025_18_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037287, '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 = 28037638 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': 3975853, 'mtr_portfolio_id': 28037638, 'created_at': datetime.datetime(2025, 10, 31, 19, 2, 58), 'result': '0.034739377477738004', 'result_long': None, 'result_double': None}] Qualite : 0.034739377477738004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28037638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28037638_31-10-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28037638 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_P28037638_31-10-2025_19_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037666, 'pht': 3726}}" where mtr_portfolio_id = 28037638 and dashboard_run_id = 2495507 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`=28037638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660106, 0.034739377477738004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28037638_31-10-2025_19_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28037655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28037656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28037657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28037658, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28037659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28037660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28037661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28037662, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28037663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28037664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28037665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28037666, '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 = 28038154 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': 3975910, 'mtr_portfolio_id': 28038154, 'created_at': datetime.datetime(2025, 10, 31, 19, 18, 58), 'result': '0.04680687222221041', 'result_long': None, 'result_double': None}] Qualite : 0.04680687222221041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28038154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28038154_31-10-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28038154 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_P28038154_31-10-2025_19_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28038206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038216, 'pht': 3726}}" where mtr_portfolio_id = 28038154 and dashboard_run_id = 2495507 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`=28038154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660107, 0.04680687222221041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28038154_31-10-2025_19_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28038206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038211, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038216, '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 = 28038921 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': 3975986, 'mtr_portfolio_id': 28038921, 'created_at': datetime.datetime(2025, 10, 31, 19, 35), 'result': '0.0728420042711966', 'result_long': None, 'result_double': None}] Qualite : 0.0728420042711966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28038921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28038921_31-10-2025_19_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28038921 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_P28038921_31-10-2025_19_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28038959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038970, 'pht': 3726}}" where mtr_portfolio_id = 28038921 and dashboard_run_id = 2495507 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`=28038921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660108, 0.0728420042711966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28038921_31-10-2025_19_35_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28038959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28038960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28038961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28038962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28038963, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28038964, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28038965, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28038966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28038967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28038968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28038969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28038970, '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 = 28039463 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': 3976064, 'mtr_portfolio_id': 28039463, 'created_at': datetime.datetime(2025, 10, 31, 19, 48, 58), 'result': '0.056154260493960516', 'result_long': None, 'result_double': None}] Qualite : 0.056154260493960516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28039463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28039463_31-10-2025_19_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28039463 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_P28039463_31-10-2025_19_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28039481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28039482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28039483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28039484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28039485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28039486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28039487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28039488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28039489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28039490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28039491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28039492, 'pht': 3726}}" where mtr_portfolio_id = 28039463 and dashboard_run_id = 2495507 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`=28039463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660109, 0.056154260493960516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28039463_31-10-2025_19_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28039481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28039482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28039483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28039484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28039485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28039486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28039487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28039488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28039489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28039490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28039491, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28039492, '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 = 28040319 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': 3976170, 'mtr_portfolio_id': 28040319, 'created_at': datetime.datetime(2025, 10, 31, 20, 5, 30), 'result': '0.07090607584544263', 'result_long': None, 'result_double': None}] Qualite : 0.07090607584544263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28040319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28040319_31-10-2025_20_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28040319 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_P28040319_31-10-2025_20_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28040340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28040341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28040342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28040343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28040344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28040345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28040346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28040347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28040348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28040349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28040351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28040352, 'pht': 3726}}" where mtr_portfolio_id = 28040319 and dashboard_run_id = 2495507 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`=28040319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16660110, 0.07090607584544263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28040319_31-10-2025_20_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28040340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28040341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28040342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28040343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28040344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28040345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28040346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28040347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28040348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28040349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28040351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28040352, '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 = 28041009 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 = 28041009 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 = 28041009 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28041009 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 = 28041009 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 = 28041009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28041009_31-10-2025_20_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28041009 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_P28041009_31-10-2025_20_05_00.pdf'}" where mtr_portfolio_id = 28041009 and dashboard_run_id = 2495507 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27984246,27984915,27985516,27986113,27987917,27988609,27989289,27989961,27990560,27991257,27991963,27992767,27993411,27994229,27994804,27996763,27997305,27998032,27998683,27999240,28000093,28000743,28001435,28002258,28002969,28003741,28004478,28005377,28006386,28006958,28007760,28010534,28011505,28012440,28013517,28014308,28015611,28016590,28017399,28018539,28019557,28020483,28024841,28026564,28026786,28027276,28027833,28028484,28029165,28030123,28030701,28031374,28032167,28032869,28033767,28035626,28036475,28037238,28037638,28038154,28038921,28039463,28040319,28041009) result : ((1390745358,), (1390745465,), (1390745887,), (1390746141,), (1390746479,), (1390748560,), (1390748630,), (1390748710,), (1390749763,), (1390749800,), (1390749842,), (1390750134,), (1390750171,), (1390750248,), (1390750302,), (1390751546,), (1390751617,), (1390751718,), (1390752340,), (1390752353,), (1390752356,), (1390752359,), (1390752362,), (1390752674,), (1390752675,), (1390752676,), (1390752677,), (1390752699,), (1390752702,), (1390752721,), (1390752723,), (1390752730,), (1390752731,), (1390752866,), (1390752904,), (1390752942,), (1390752980,), (1390753018,), (1390753063,), (1390753586,), (1390753620,), (1390753653,), (1390753688,), (1390753720,), (1390753760,), (1390753934,), (1390754002,), (1390754129,), (1390755664,), (1390755842,), (1390755902,), (1390755946,), (1390755987,), (1390756020,), (1390756023,), (1390756026,), (1390756030,), (1390756596,), (1390756685,), (1390756721,), (1390756727,), (1390756788,), (1390756808,), (1390757196,), (1390757239,), (1390757279,), (1390757347,), (1390758646,), (1390758002,), (1390758183,), (1390758386,), (1390758552,), (1390758611,), (1390759138,), (1390759176,), (1390759223,), (1390759955,), (1390759958,), (1390760028,), (1390760031,), (1390760103,), (1390760108,), (1390760598,), (1390760607,), (1390760642,), (1390761317,), (1390761383,), (1390761477,), (1390761570,), (1390761646,), (1390761950,), (1390762020,), (1390762062,), (1390762098,), (1390762133,), (1390762189,), (1390762190,), (1390762192,), (1390763228,), (1390763334,), (1390763401,), (1390763468,), (1390763517,), (1390764383,), (1390764384,), (1390764417,), (1390764421,), (1390764491,), (1390764496,), (1390764530,), (1390764532,), (1390764573,), (1390764574,), (1390764592,), (1390764593,), (1390764611,), (1390764620,), (1390764634,), (1390764638,), (1390765144,), (1390765259,), (1390765342,), (1390765380,), (1390765966,), (1390765998,), (1390766036,), (1390766064,), (1390766067,), (1390766069,), (1390766456,), (1390766525,), (1390766559,), (1390766630,), (1390766792,), (1390766960,), (1390767734,), (1390767736,), (1390767779,), (1390767793,), (1390767803,), (1390767814,), (1390767852,), (1390767890,), (1390767928,), (1390767962,), (1390768003,), (1390768288,), (1390768297,), (1390768298,), (1390768389,), (1390768423,), (1390768454,), (1390768488,), (1390768237,), (1390768239,), (1390768269,), (1390768634,), (1390768675,), (1390768726,), (1390768770,), (1390768806,), (1390769142,), (1390769144,), (1390769222,), (1390769223,), (1390769224,), (1390769225,), (1390769331,), (1390769337,), (1390769341,), (1390769346,), (1390769597,), (1390769599,), (1390772338,), (1390772339,), (1390772341,), (1390772342,), (1390772352,), (1390772353,), (1390772357,), (1390772358,), (1390772410,), (1390772462,), (1390772499,), (1390772643,), (1390772683,), (1390772723,), (1390772761,), (1390773181,), (1390773183,), (1390773219,), (1390773266,), (1390773305,), (1390773342,), (1390773630,), (1390773682,), (1390773732,), (1390773837,), (1390773852,), (1390773889,), (1390774123,), (1390774127,), (1390774131,), (1390774133,), (1390774136,), (1390774140,), (1390774174,), (1390774177,), (1390774285,), (1390774419,), (1390775130,), (1390775125,), (1390775127,), (1390775648,), (1390775685,), (1390775719,), (1390775796,), (1390775830,), (1390775864,), (1390776388,), (1390776389,), (1390776392,), (1390776394,), (1390776396,), (1390776398,), (1390776465,), (1390776603,), (1390776752,), (1390776903,), (1390777470,), (1390777538,), (1390777558,), (1390777610,), (1390777646,), (1390778232,), (1390778270,), (1390778307,), (1390778346,), (1390779080,), (1390779118,), (1390779154,), (1390779204,), (1390779284,), (1390779637,), (1390779708,), (1390779749,), (1390780201,), (1390780241,), (1390780250,), (1390780464,), (1390780599,), (1390780733,), (1390780894,), (1390781061,), (1390781323,), (1390781382,), (1390781888,), (1390781949,), (1390781996,), (1390782036,), (1390782078,), (1390782377,), (1390782380,), (1390782383,), (1390782385,), (1390782388,), (1390782391,), (1390782787,), (1390782794,), (1390782797,), (1390782822,), (1390782863,), (1390802666,), (1390802659,), (1390802661,), (1390802663,), (1390802672,), (1390802675,), (1390802678,), (1390802684,), (1390802689,), (1390802985,), (1390803900,), (1390804057,), (1390804205,), (1390804407,), (1390804604,), (1390804857,), (1390804879,), (1390804936,), (1390804984,), (1390805893,), (1390805929,), (1390805970,), (1390806058,), (1390806100,), (1390806106,), (1390806342,), (1390806344,), (1390806354,), (1390806560,), (1390806561,), (1390806597,), (1390806602,), (1390806635,), (1390806640,), (1390806676,), (1390806678,), (1390806722,), (1390806730,), (1390806798,), (1390806802,), (1390807423,), (1390807600,), (1390807765,), (1390807948,), (1390808113,), (1390808755,), (1390808762,), (1390808796,), (1390808854,), (1390808855,), (1390809260,), (1390809296,), (1390809335,), (1390809376,), (1390809606,), (1390809607,), (1390809624,), (1390809625,), (1390809646,), (1390809647,), (1390809652,), (1390809653,), (1390809660,), (1390809661,), (1390809677,), (1390809682,), (1390809686,), (1390809690,), (1390810046,), (1390809835,), (1390809884,), (1390809921,), (1390809963,), (1390810004,), (1390810385,), (1390810389,), (1390810392,), (1390810666,), (1390810685,), (1390810692,), (1390810695,), (1390810698,), (1390811369,), (1390811374,), (1390811378,), (1390811380,), (1390811943,), (1390811986,), (1390812022,), (1390812058,), (1390812094,), (1390812780,), (1390812820,), (1390812861,), (1390812906,), (1390812928,), (1390812929,), (1390813431,), (1390813452,), (1390813466,), (1390813471,), (1390813473,), (1390813481,), (1390813491,), (1390813498,), (1390813507,), (1390813512,), (1390813514,), (1390813517,), (1390813520,), (1390813553,), (1390813556,), (1390813558,), (1390813560,), (1390813568,), (1390813602,), (1390813603,), (1390813606,), (1390813608,), (1390813624,), (1390813625,), (1390813935,), (1390813968,), (1390814001,), (1390814041,), (1390814081,), (1390815858,), (1390816040,), (1390816196,), (1390816232,), (1390816264,), (1390816301,), (1390817292,), (1390817380,), (1390817472,), (1390817557,), (1390817776,), (1390817777,), (1390818229,), (1390818116,), (1390818123,), (1390818162,), (1390818420,), (1390818462,), (1390818501,), (1390818540,), (1390818575,), (1390818616,), (1390819165,), (1390819217,), (1390819296,), (1390819362,), (1390819430,), (1390819502,), (1390819772,), (1390819835,), (1390820297,), (1390820332,), (1390820370,), (1390820410,), (1390821972,), (1390822011,), (1390822050,), (1390822090,), (1390822685,), (1390822814,), (1390822999,), (1390823108,), (1390823192,), (1390823228,), (1390823642,), (1390823655,), (1390823670,), (1390823681,), (1390823684,), (1390823687,), (1390823692,), (1390823696,), (1390823736,), (1390823737,), (1390823741,), (1390823809,), (1390823810,), (1390823814,), (1390823817,), (1390823819,), (1390824555,), (1390824556,), (1390824626,), (1390824632,), (1390824686,), (1390824694,), (1390825639,), (1390825659,), (1390826130,), (1390825994,), (1390826028,), (1390826060,), (1390826097,), (1390826474,), (1390826475,), (1390826492,), (1390826493,), (1390826495,), (1390826496,), (1390826499,), (1390826500,), (1390826516,), (1390826521,), (1390826558,), (1390826560,), (1390826610,), (1390826612,), (1390826615,), (1390826768,), (1390826804,), (1390826842,), (1390826879,), (1390826916,), (1390826952,), (1390827139,), (1390827180,), (1390827199,), (1390827209,), (1390827217,), (1390827241,), (1390827305,), (1390827365,), (1390827391,), (1390827536,), (1390827538,), (1390827540,), (1390827542,), (1390827557,), (1390827560,), (1390827562,), (1390827566,), (1390827570,), (1390827575,), (1390828679,), (1390828720,), (1390828756,), (1390828792,), (1390828827,), (1390830201,), (1390830311,), (1390830390,), (1390831120,), (1390831154,), (1390831226,), (1390831282,), (1390831348,), (1390831370,), (1390831421,), (1390831422,), (1390831425,), (1390831426,), (1390831443,), (1390831451,), (1390831483,), (1390831486,), (1390831491,), (1390831499,), (1390831518,), (1390831522,), (1390831526,), (1390831531,), (1390831573,), (1390831577,), (1390831583,), (1390831587,), (1390831591,), (1390831595,), (1390832007,), (1390832040,), (1390832075,), (1390832421,), (1390832423,), (1390832427,), (1390832431,), (1390832435,), (1390832438,), (1390832929,), (1390832522,), (1390832557,), (1390832595,), (1390832658,), (1390832735,), (1390834208,), (1390834209,), (1390834244,), (1390834249,), (1390834359,), (1390834369,), (1390834758,), (1390834775,), (1390834777,), (1390834781,), (1390834788,), (1390834861,), (1390834876,), (1390834881,), (1390834885,), (1390834891,), (1390834896,), (1390835171,), (1390835206,), (1390835246,), (1390835284,), (1390835320,), (1390835759,), (1390835763,), (1390835765,), (1390836942,), (1390837918,), (1390838996,), (1390839032,), (1390839071,), (1390839078,), (1390839136,), (1390839140,), (1390839146,), (1390839153,), (1390839157,), (1390839160,), (1390839168,), (1390839172,), (1390839175,), (1390839177,), (1390839598,), (1390839639,), (1390839679,), (1390839719,), (1390839755,), (1390839793,), (1390839919,), (1390839955,), (1390839993,), (1390840034,), (1390840746,), (1390840785,), (1390840823,), (1390840861,), (1390840900,), (1390841876,), (1390842091,), (1390842233,), (1390842241,), (1390842242,), (1390842909,), (1390842762,), (1390842801,), (1390842838,), (1390842872,), (1390843295,), (1390843296,), (1390843298,), (1390843299,), (1390843300,), (1390843301,), (1390843303,), (1390843304,), (1390843306,), (1390843307,), (1390843341,), (1390843377,), (1390843412,), (1390843451,), (1390843489,), (1390843530,), (1390843678,), (1390843683,), (1390843684,), (1390843688,), (1390843808,), (1390843846,), (1390843881,), (1390844357,), (1390844394,), (1390844432,), (1390844467,), (1390844508,), (1390844703,), (1390844739,), (1390844799,), (1390846678,), (1390847146,), (1390847169,), (1390847171,), (1390847172,), (1390847179,), (1390847208,), (1390847258,), (1390847262,), (1390847267,), (1390847640,), (1390847644,), (1390847647,), (1390847648,), (1390847650,), (1390848365,), (1390848369,), (1390848373,), (1390848378,), (1390848399,), (1390848400,), (1390848436,), (1390848437,), (1390848473,), (1390848475,), (1390849389,), (1390849177,), (1390849246,), (1390849318,), (1390849555,), (1390849557,), (1390851927,), (1390851930,), (1390852260,), (1390852298,), (1390852382,), (1390852461,), (1390852535,), (1390853206,), (1390853214,), (1390853266,), (1390853315,), (1390853364,), (1390853825,), (1390853826,), (1390853828,), (1390853829,), (1390853831,), (1390853832,), (1390853834,), (1390853836,), (1390853843,), (1390853847,), (1390853859,), (1390853862,), (1390853865,), (1390853926,), (1390853937,), (1390853972,), (1390854012,), (1390854050,), (1390854564,), (1390854570,), (1390854576,), (1390854579,), (1390854581,), (1390854805,), (1390854834,), (1390854856,), (1390854865,), (1390854872,), (1390855017,), (1390855127,), (1390855295,), (1390856261,), (1390856300,), (1390856306,), (1390856308,), (1390856932,), (1390857062,), (1390857097,), (1390856748,), (1390856786,), (1390856820,), (1390856858,), (1390856897,), (1390857199,), (1390857203,), (1390857208,), (1390857748,), (1390857814,), (1390857834,), (1390857852,), (1390857892,), (1390857894,), (1390857896,), (1390857898,), (1390858033,), (1390858075,), (1390858111,), (1390858151,), (1390858190,), (1390858678,), (1390858723,), (1390858764,), (1390858812,), (1390858850,), (1390858899,), (1390858901,), (1390858903,), (1390859118,), (1390859152,), (1390859186,), (1390859197,), (1390859202,), (1390860142,), (1390860184,), (1390860226,), (1390860298,), (1390860351,), (1390860386,), (1390861104,), (1390861117,), (1390861271,), (1390861306,), (1390861345,), (1390861383,), (1390861423,), (1390861461,), (1390862194,), (1390862254,), (1390862272,), (1390862280,), (1390862841,), (1390862916,), (1390862985,), (1390863050,), (1390863687,), (1390863688,), (1390863905,), (1390863923,), (1390863935,), (1390863937,), (1390864003,), (1390864004,), (1390863975,), (1390863976,), (1390863979,), (1390863982,), (1390863992,), (1390863993,), (1390863997,), (1390863998,), (1390864012,), (1390864014,), (1390864053,), (1390864120,), (1390864197,), (1390864272,), (1390865265,), (1390865302,), (1390865421,), (1390865463,), (1390865777,), (1390865814,), (1390865851,), (1390866025,), (1390866027,), (1390866030,), (1390866033,), (1390866036,), (1390866039,), (1390866064,), (1390866065,), (1390866066,), (1390866067,), (1390866068,), (1390866069,), (1390866071,), (1390866072,), (1390866074,), (1390866075,), (1390866077,), (1390866079,), (1390866088,), (1390866091,), (1390866093,), (1390866116,), (1390866153,), (1390866192,), (1390866323,), (1390867590,), (1390867618,), (1390867648,), (1390867689,), (1390867725,), (1390868601,), (1390868639,), (1390868677,), (1390868715,), (1390869361,), (1390869435,), (1390869505,), (1390870350,), (1390870391,), (1390870426,), (1390871059,), (1390871060,), (1390871062,), (1390871063,), (1390871066,), (1390871071,), (1390871104,), (1390871108,), (1390871018,), (1390871020,), (1390871053,), (1390871054,), (1390871151,), (1390871153,), (1390871155,), (1390871157,), (1390871504,), (1390871508,), (1390871572,), (1390871588,), (1390871592,), (1390871667,), (1390871669,), (1390871673,), (1390871675,), (1390871706,), (1390871710,), (1390871712,), (1390871714,), (1390871716,), (1390871744,), (1390871747,), (1390871750,), (1390871773,), (1390872274,), (1390872277,), (1390872337,), (1390872340,), (1390872401,), (1390872407,), (1390873320,), (1390873394,), (1390873491,), (1390873735,), (1390874456,), (1390874522,), (1390874597,), (1390874692,), (1390875026,), (1390875071,), (1390875113,), (1390875151,), (1390875533,), (1390875535,), (1390875540,), (1390875545,), (1390875549,), (1390875577,), (1390875580,), (1390875582,), (1390875585,), (1390875587,), (1390875590,), (1390875659,), (1390875660,), (1390875700,), (1390875701,), (1390875739,), (1390875741,), (1390875773,), (1390875777,), (1390875812,), (1390875815,), (1390875847,), (1390875854,), (1390877215,), (1390877298,), (1390877366,), (1390877410,), (1390877448,), (1390877508,), (1390877714,), (1390877752,), (1390877794,), (1390877830,), (1390877882,), (1390877895,), (1390877913,), (1390877917,), (1390877919,), (1390877922,), (1390878273,), (1390878308,), (1390877685,), (1390877688,), (1390877950,), (1390877993,), (1390878029,), (1390878066,), (1390878106,), (1390878141,), (1390878462,), (1390878502,), (1390878541,), (1390879344,), (1390879419,), (1390879498,), (1390879577,), (1390879655,), (1390879731,), (1390880710,), (1390880711,), (1390880771,), (1390880781,), (1390880841,), (1390880852,), (1390880908,), (1390880951,), (1390880987,), (1390881032,), (1390881051,), (1390881060,), (1390881095,), (1390881132,), (1390881142,), (1390881146,), (1390881164,), (1390881168,), (1390881172,), (1390881174,), (1390881206,), (1390881239,), (1390881365,), (1390881408,), (1390881444,), (1390881483,), (1390881641,), (1390881651,), (1390881660,), (1390881819,), (1390882872,), (1390882910,), (1390883549,), (1390883589,), (1390914235,), (1390914971,), (1390916602,), (1390919521,), (1390920076,), (1390920116,), (1390921880,), (1390921885,), (1390921960,), (1390921965,), (1390922513,), (1390922548,), (1390922575,), (1390922682,), (1390922738,), (1390922891,), (1390923234,), (1390923056,), (1390923095,), (1390923132,), (1390923166,), (1390923198,), (1390923688,), (1390923722,), (1390925324,), (1390926993,), (1390926996,), (1390927069,), (1390927122,), (1390927167,), (1390927215,), (1390927240,), (1390927291,), (1390927467,), (1390927506,), (1390927542,), (1390927580,), (1390927620,), (1390927660,), (1390928083,), (1390928085,), (1390928135,), (1390928173,), (1390928891,), (1390928929,), (1390928986,), (1390929043,), (1390929076,), (1390929091,), (1390929138,), (1390929142,), (1390929146,), (1390929151,), (1390929289,), (1390929290,), (1390929311,), (1390929313,), (1390929319,), (1390929320,), (1390929343,), (1390929344,), (1390929595,), (1390929717,), (1390929970,), (1390930151,), (1390930302,), (1390930337,), (1390930509,), (1390930546,), (1390930583,), (1390930621,), (1390930628,), (1390931169,), (1390931174,), (1390931226,), (1390931227,), (1390931326,), (1390931339,), (1390931399,), (1390931408,), (1390931812,), (1390931826,), (1390931864,), (1390931900,), (1390931940,), (1390931942,), (1390932004,), (1390932011,), (1390932050,), (1390932139,), (1390932277,), (1390932426,), (1390932572,), (1390932609,), (1390933285,), (1390933286,), (1390933426,), (1390933443,), (1390933456,), (1390933481,), (1390933484,), (1390933176,), (1390933244,), (1390933274,), (1390933283,), (1390933492,), (1390933495,), (1390933509,), (1390933525,), (1390933527,), (1390933531,), (1390933546,), (1390933552,), (1390933555,), (1390933559,), (1390933600,), (1390934033,), (1390934035,), (1390934037,), (1390934040,), (1390934042,), (1390934184,), (1390934191,), (1390934290,), (1390934291,), (1390934294,), (1390934297,), (1390934298,), (1390935003,), (1390935042,), (1390935080,), (1390935132,), (1390935172,), (1390935916,), (1390935941,), (1390935969,), (1390935985,), (1390935992,), (1390936015,), (1390936053,), (1390936091,), (1390936129,), (1390936168,), (1390936689,), (1390936690,), (1390936691,), (1390936693,), (1390936702,), (1390936706,), (1390936745,), (1390936784,), (1390936822,), (1390936948,), (1390936950,), (1390936952,), (1390937394,), (1390937419,), (1390937421,), (1390937424,), (1390937427,), (1390937435,), (1390937667,), (1390937668,), (1390937671,), (1390937672,), (1390937674,), (1390937675,), (1390937710,), (1390937716,), (1390937718,), (1390937720,), (1390937728,), (1390937730,), (1390938770,), (1390937899,), (1390938068,), (1390938257,), (1390938434,), (1390938601,), (1390939566,), (1390939698,), (1390940000,), (1390940040,), (1390940065,), (1390940069,), (1390940099,), (1390940160,), (1390940162,), (1390940165,), (1390940167,), (1390940169,), (1390940170,), (1390940173,), (1390940174,), (1390940177,), (1390940178,), (1390940181,), (1390940182,), (1390940341,), (1390940376,), (1390940410,), (1390940445,), (1390940495,), (1390940982,), (1390941043,), (1390941093,), (1390941133,), (1390941171,), (1390941215,), (1390941747,), (1390941784,), (1390941821,), (1390941828,), (1390941879,), (1390941895,), (1390941951,), (1390941953,), (1390942031,), (1390942846,), (1390942849,), (1390942874,), (1390943025,), (1390943035,), (1390943061,), (1390943382,), (1390943417,), (1390943454,), (1390943489,), (1390943524,), (1390943564,), (1390943747,), (1390943748,), (1390943760,), (1390943796,), (1390944063,), (1390944142,), (1390944218,), (1390944262,), (1390944274,), (1390944287,), (1390944495,), (1390944498,), (1390944500,), (1390944501,), (1390944503,), (1390944558,), (1390944560,), (1390944563,), (1390944566,), (1390944583,), (1390944620,), (1390946854,), (1390948909,), (1390946468,), (1390946542,), (1390946637,), (1390946717,), (1390947593,), (1390947684,), (1390947748,), (1390947815,), (1390947870,), (1390947911,), (1390948090,), (1390948092,), (1390948132,), (1390948133,), (1390948175,), (1390948176,), (1390948220,), (1390948231,), (1390948263,), (1390948274,), (1390948304,), (1390948311,), (1390948482,), (1390948526,), (1390948564,), (1390948623,), (1390948667,), (1390948707,), (1390948866,), (1390949045,), (1390949089,), (1390949405,), (1390949486,), (1390949573,), (1390949652,), (1390949703,), (1390949746,), (1390950179,), (1390950180,), (1390950214,), (1390950215,), (1390950252,), (1390950256,), (1390950292,), (1390950294,), (1390950329,), (1390950334,), (1390950366,), (1390950374,), (1390950500,), (1390950538,), (1390950584,), (1390950620,), (1390950816,), (1390950851,), (1390950871,), (1390950876,), (1390950908,), (1390950972,), (1390952601,), (1390952607,), (1390952625,), (1390952695,), (1390952842,), (1390952865,), (1390952869,), (1390952899,), (1390952905,), (1390953196,), (1390953232,), (1390953266,), (1390953299,), (1390953334,), (1390953357,), (1390953381,), (1390953410,), (1390953449,), (1390953488,), (1390953580,), (1390953582,), (1390953695,), (1390953842,), (1390953985,), (1390954120,), (1390954270,), (1390954274,), (1390954277,), (1390954279,), (1390954450,), (1390954451,), (1390954452,), (1390954453,), (1390954475,), (1390954476,), (1390954478,), (1390954479,), (1390954493,), (1390954494,), (1390954504,), (1390954505,), (1390954527,), (1390954521,), (1390954931,), (1390954970,), (1390955010,), (1390955054,), (1390955321,), (1390955359,), (1390955398,), (1390955448,), (1390955475,), (1390955542,), (1390955548,), (1390955551,), (1390955556,), (1390955560,), (1390955564,), (1390955740,), (1390955780,), (1390955814,), (1390955849,), (1390955885,), (1390955920,), (1390956052,), (1390956089,), (1390956123,), (1390956279,), (1390956317,), (1390956354,), (1390956391,), (1390956587,), (1390956626,), (1390956638,), (1390956641,), (1390956665,), (1390958093,), (1390958129,), (1390958171,), (1390958219,), (1390958378,), (1390958443,), (1390958579,), (1390958585,), (1390959168,), (1390959203,), (1390959239,), (1390959275,), (1390959310,), (1390959349,), (1390959489,), (1390959526,), (1390959564,), (1390959769,), (1390959771,), (1390959772,), (1390959773,), (1390959775,), (1390959776,), (1390959778,), (1390959779,), (1390959781,), (1390959782,), (1390959797,), (1390959799,), (1390959802,), (1390959934,), (1390960070,), (1390960206,), (1390960992,), (1390960993,), (1390960998,), (1390961115,), (1390961149,), (1390961190,), (1390961220,), (1390961251,), (1390961283,), (1390961501,), (1390961517,), (1390961524,), (1390961546,), (1390961549,), (1390961552,), (1390962037,), (1390961720,), (1390961761,), (1390961799,), (1390961837,), (1390961873,), (1390961911,), (1390962505,), (1390962506,), (1390962545,), (1390962548,), (1390962583,), (1390962585,), (1390962622,), (1390962628,), (1390962662,), (1390962669,), (1390962837,), (1390962881,), (1390962919,), (1390962956,), (1390963286,), (1390963319,), (1390963356,), (1390963406,), (1390963450,), (1390964234,), (1390964237,), (1390964240,), (1390964364,), (1390964550,), (1390964685,), (1390965987,), (1390966022,), (1390966061,), (1390966095,), (1390966453,), (1390966503,), (1390966559,), (1390966593,), (1390966666,), (1390966919,), (1390966953,), (1390966958,), (1390966971,), (1390966987,), (1390967705,), (1390967707,), (1390967742,), (1390967744,), (1390967869,), (1390967883,), (1390967978,), (1390967987,), (1390968554,), (1390968589,), (1390968816,), (1390968817,), (1390968852,), (1390968856,), (1390968884,), (1390968888,), (1390969330,), (1390969331,), (1390969366,), (1390969367,), (1390969368,), (1390969371,), (1390969393,), (1390969394,), (1390969397,), (1390969405,), (1390969434,), (1390969459,), (1390969628,), (1390969664,), (1390969702,), (1390969738,), (1390969774,), (1390970201,), (1390970204,), (1390970207,), (1390970209,), (1390970211,), (1390970457,), (1390970482,), (1390970487,), (1390970490,), (1390970492,), (1390970541,), (1390970543,), (1390970545,), (1390970547,), (1390970549,), (1390970551,), (1390970734,), (1390970736,), (1390970772,), (1390970774,), (1390970808,), (1390970810,), (1390970843,), (1390970846,), (1390970878,), (1390970881,), (1390972036,), (1390972069,), (1390972176,), (1390972265,), (1390972849,), (1390972854,), (1390972857,), (1390972860,), (1390972870,), (1390972878,), (1390973895,), (1390975256,), (1390975296,), (1390975334,), (1390975613,), (1390976369,), (1390976370,), (1390976373,), (1390976374,), (1390976376,), (1390976377,), (1390976379,), (1390976380,), (1390976382,), (1390976383,), (1390976778,), (1390976852,), (1390976919,), (1390978452,), (1390978661,), (1390978871,), (1390979080,), (1390979285,), (1390979774,), (1390979843,), (1390979922,), (1390979992,), (1390980029,), (1390980597,), (1390980609,), (1390980653,), (1390980727,), (1390981181,), (1390981203,), (1390980514,), (1390980595,), (1390981081,), (1390981786,), (1390982979,), (1390983029,), (1390983594,), (1390983634,), (1390984396,), (1390984438,), (1390984474,), (1390985736,), (1390985791,), (1390985794,), (1390985800,), (1390985811,), (1390985813,), (1390986173,), (1390988867,), (1390988912,), (1390988947,), (1390989010,), (1390989067,), (1390990076,), (1390990084,), (1390989619,), (1390989621,), (1390989826,), (1390989829,), (1390989998,), (1390990003,), (1390991119,), (1390991134,), (1390991137,), (1390991247,), (1390991283,), (1390991670,), (1390991704,), (1390991743,), (1390991782,), (1390991817,), (1390991854,), (1390992463,), (1390992513,), (1390992588,), (1390992672,), (1390993419,), (1390993457,), (1390993505,), (1390993571,), (1390993613,), (1390995035,), (1390995036,), (1390995181,), (1390995190,), (1390995298,), (1390995300,), (1390995303,), (1390995304,), (1390995306,), (1390995316,), (1390995340,), (1390995342,), (1390995413,), (1390995451,), (1390995488,), (1390996388,), (1390996426,), (1390996466,), (1390996538,), (1390996605,), (1390996675,), (1390997460,), (1390997526,), (1390997566,), (1390997579,), (1390997595,), (1390997603,), (1390997936,), (1390997944,), (1390997950,), (1390997962,), (1390997963,), (1390997965,), (1390997967,), (1390997970,), (1390998194,), (1390998196,), (1390998199,), (1390998203,), (1390998207,), (1390998249,), (1390998252,), (1390998255,), (1390998258,), (1390998260,), (1390998270,), (1390998274,), (1390998278,), (1390999221,), (1390999387,), (1390999876,), (1390999911,), (1390998577,), (1390998684,), (1390998852,), (1390999027,), (1391000062,), (1391000128,), (1391001336,), (1391001384,), (1391002212,), (1391002312,), (1391002382,), (1391002940,), (1391002945,), (1391003122,), (1391003123,), (1391003146,), (1391003148,), (1391003946,), (1391003983,), (1391004163,), (1391004167,), (1391004170,), (1391004219,), (1391004258,), (1391004301,), (1391004988,), (1391005023,), (1391005058,), (1391006385,), (1391006386,), (1391007058,), (1391007059,), (1391007093,), (1391007098,), (1391007163,), (1391007176,), (1391007672,), (1391007675,), (1391007680,), (1391007690,), (1391008998,), (1391008773,), (1391008781,), (1391008810,), (1391008816,), (1391008856,), (1391009082,), (1391009085,), (1391009125,), (1391009130,), (1391009132,), (1391009636,), (1391009684,), (1391009729,), (1391009786,), (1391010688,), (1391010758,), (1391010845,), (1391011930,), (1391011939,), (1391011977,), (1391012046,), (1391012114,), (1391012157,), (1391012230,), (1391012266,), (1391012268,), (1391012289,), (1391012328,), (1391012330,), (1391012336,), (1391012344,), (1391012348,), (1391012373,), (1391012377,), (1391012381,), (1391012385,), (1391012387,), (1391012388,), (1391012749,), (1391012751,), (1391012787,), (1391012795,), (1391012825,), (1391012835,), (1391012865,), (1391012870,), (1391013329,), (1391013369,), (1391013854,), (1391013856,), (1391013920,), (1391013922,), (1391013984,), (1391013991,), (1391014507,), (1391014508,), (1391014746,), (1391016925,), (1391016928,), (1391016932,), (1391016934,), (1391016937,), (1391017200,), (1391017228,), (1391017261,), (1391017388,), (1391017425,), (1391017460,), (1391017187,), (1391017189,), (1391017193,), (1391017610,), (1391017644,), (1391017676,), (1391017711,), (1391017747,), (1391018182,), (1391018183,), (1391018219,), (1391018223,), (1391018254,), (1391018258,), (1391018736,), (1391018737,), (1391019807,), (1391019809,), (1391019938,), (1391019958,), (1391019990,), (1391020017,), (1391020022,), (1391020059,), (1391020060,), (1391020062,), (1391020064,), (1391020693,), (1391020694,), (1391020759,), (1391020770,), (1391020838,), (1391020841,), (1391020909,), (1391020910,), (1391020973,), (1391020984,), (1391021041,), (1391021054,), (1391021356,), (1391021462,), (1391022910,), (1391023010,), (1391023060,), (1391023069,), (1391023617,), (1391023633,), (1391023696,), (1391023719,), (1391023735,), (1391023787,), (1391023790,), (1391023792,), (1391023793,), (1391023818,), (1391023822,), (1391023824,), (1391024202,), (1391024203,), (1391025195,), (1391025198,), (1391025199,), (1391025747,), (1391025723,), (1391025822,), (1391025824,), (1391025826,), (1391025828,), (1391026156,), (1391026159,), (1391026162,), (1391026164,), (1391026277,), (1391026281,), (1391026297,), (1391026426,), (1391027426,), (1391027452,), (1391027467,), (1391027801,), (1391027815,), (1391027823,), (1391027833,), (1391027948,), (1391027953,), (1391027957,), (1391028299,), (1391028300,), (1391028314,), (1391028315,), (1391028317,), (1391028318,), (1391028319,), (1391028320,), (1391028322,), (1391028323,), (1391028336,), (1391028339,), (1391029741,), (1391029913,), (1391030405,), (1391030410,), (1391031371,), (1391031372,), (1391031374,), (1391031621,), (1391031622,), (1391031625,), (1391031626,), (1391031630,), (1391031631,), (1391031658,), (1391031659,), (1391031665,), (1391031667,), (1391031670,), (1391031671,), (1391031674,), (1391031675,), (1391031905,), (1391031943,), (1391031978,), (1391032015,), (1391032883,), (1391032976,), (1391033021,), (1391033078,), (1391033519,), (1391033566,), (1391033603,), (1391033637,), (1391033750,), (1391033751,), (1391033753,), (1391033754,), (1391033787,), (1391033788,), (1391033864,), (1391033866,), (1391033869,), (1391033998,), (1391033999,), (1391034001,), (1391034002,), (1391034004,), (1391034005,), (1391034007,), (1391034008,), (1391034046,), (1391034055,), (1391034059,), (1391034061,), (1391034065,), (1391034067,), (1391034081,), (1391034086,), (1391034090,), (1391034092,), (1391034094,), (1391034502,), (1391034545,), (1391034580,), (1391034595,), (1391034838,), (1391035100,), (1391035102,), (1391035105,), (1391035110,), (1391035122,), (1391036651,), (1391036658,), (1391036497,), (1391036499,), (1391036573,), (1391036575,), (1391036614,), (1391036619,), (1391036904,), (1391036905,), (1391036928,), (1391037037,), (1391037380,), (1391037414,), (1391038139,), (1391038177,), (1391038187,), (1391038190,), (1391038193,), (1391038197,), (1391038367,), (1391038369,), (1391038370,), (1391038371,), (1391038372,), (1391038374,), (1391038393,), (1391038398,), (1391038402,), (1391038557,), (1391038597,), (1391038637,), (1391038675,), (1391038737,), (1391038798,), (1391040327,), (1391040330,), (1391040357,), (1391040394,), (1391040428,), (1391041138,), (1391041140,), (1391041341,), (1391041351,), (1391042086,), (1391042088,), (1391042148,), (1391042154,), (1391042189,), (1391042194,), (1391042393,), (1391042395,), (1391042432,), (1391042435,), (1391042442,), (1391042443,), (1391042476,), (1391042485,), (1391042513,), (1391042514,), (1391042783,), (1391042822,), (1391042858,), (1391042897,), (1391042934,), (1391042970,), (1391043774,), (1391043783,), (1391043788,), (1391043791,), (1391043794,), (1391044776,), (1391063129,), (1391063211,), (1391063853,), (1391063901,), (1391063936,), (1391063976,), (1391063998,), (1391064039,), (1391065093,), (1391065094,), (1391065112,), (1391065117,), (1391065136,), (1391065138,), (1391065146,), (1391065158,), (1391065195,), (1391065242,), (1391065312,), (1391065351,), (1391065353,), (1391065354,), (1391065432,), (1391065435,), (1391065456,), (1391065468,), (1391065503,), (1391065539,), (1391065601,), (1391065603,), (1391065607,), (1391065615,), (1391065618,), (1391065621,), (1391065624,), (1391066229,), (1391066240,), (1391066244,), (1391066246,), (1391066248,), (1391066250,), (1391067505,), (1391067547,), (1391067614,), (1391067676,), (1391067805,), (1391068294,), (1391068304,), (1391068337,), (1391068375,), (1391068878,), (1391069010,), (1391069133,), (1391069229,), (1391069283,), (1391069317,), (1391069916,), (1391069930,), (1391069933,), (1391069941,), (1391069943,), (1391069945,), (1391069949,), (1391069954,), (1391069957,), (1391070491,), (1391070671,), (1391070859,), (1391070950,), (1391071191,), (1391071192,), (1391071193,), (1391071196,), (1391071197,), (1391071199,), (1391071204,), (1391071207,), (1391071224,), (1391071229,), (1391071244,), (1391071248,), (1391071400,), (1391071308,), (1391071324,), (1391071347,), (1391071364,), (1391071375,), (1391071845,), (1391071882,), (1391071919,), (1391071955,), (1391072143,), (1391072181,), (1391072228,), (1391072274,), (1391072318,), (1391072361,), (1391072704,), (1391072705,), (1391072748,), (1391072750,), (1391072791,), (1391072796,), (1391072849,), (1391072851,), (1391074180,), (1391074183,), (1391074249,), (1391074289,), (1391074323,), (1391074339,), (1391074420,), (1391074450,), (1391074481,), (1391074507,), (1391074550,), (1391075079,), (1391075081,), (1391075124,), (1391075127,), (1391075162,), (1391075164,), (1391075204,), (1391075208,), (1391075242,), (1391075247,), (1391075277,), (1391075281,), (1391075327,), (1391075346,), (1391075375,), (1391075378,), (1391075705,), (1391075732,), (1391075739,), (1391075982,), (1391076083,), (1391076157,), (1391076217,), (1391076279,), (1391076328,), (1391076631,), (1391076634,), (1391076638,), (1391076681,), (1391076725,), (1391076759,), (1391076778,), (1391076785,), (1391076819,), (1391077110,), (1391077112,), (1391077116,), (1391077134,), (1391077137,), (1391077140,), (1391077751,), (1391077828,), (1391077897,), (1391079425,), (1391079296,), (1391079331,), (1391079366,), (1391079400,), (1391080088,), (1391080160,), (1391080222,), (1391080255,), (1391080833,), (1391080875,), (1391080907,), (1391080945,), (1391080978,), (1391081786,), (1391081788,), (1391081819,), (1391081824,), (1391081855,), (1391081858,), (1391082681,), (1391082682,), (1391083401,), (1391085656,), (1391085729,), (1391086395,), (1391086467,), (1391086536,), (1391086979,), (1391087272,), (1391087304,), (1391087345,), (1391087380,), (1391087728,), (1391087732,), (1391087735,), (1391087742,), (1391088498,), (1391088500,), (1391088553,), (1391088556,), (1391089849,), (1391089851,), (1391089815,), (1391089816,), (1391090616,), (1391090617,), (1391090669,), (1391090672,), (1391090683,), (1391090684,), (1391090687,), (1391090688,), (1391090699,), (1391090706,), (1391090866,), (1391090888,), (1391090894,), (1391091182,), (1391091276,), (1391091350,), (1391091398,), (1391091435,), (1391091473,), (1391092274,), (1391092414,), (1391092562,), (1391092711,), (1391092810,), (1391092813,), (1391093289,), (1391093290,), (1391093293,), (1391093294,), (1391093296,), (1391093297,), (1391093330,), (1391093331,), (1391093430,), (1391093465,), (1391093502,), (1391093539,), (1391093690,), (1391093755,), (1391093765,), (1391093931,), (1391093965,), (1391094005,), (1391094041,), (1391094568,), (1391094640,), (1391094691,), (1391094734,), (1391094767,), (1391094801,), (1391095290,), (1391095291,), (1391095341,), (1391095343,), (1391095347,), (1391095348,), (1391095354,), (1391095356,), (1391095388,), (1391095390,), (1391095540,), (1391095572,), (1391095608,), (1391095642,), (1391095665,), (1391095858,), (1391095866,), (1391095872,), (1391095874,), (1391095877,), (1391096536,), (1391096537,), (1391096608,), (1391096611,), (1391096677,), (1391096683,), (1391096719,), (1391096721,), (1391096754,), (1391096758,), (1391096943,), (1391096976,), (1391097015,), (1391097914,), (1391098170,), (1391098215,), (1391098249,), (1391097652,), (1391097718,), (1391097786,), (1391097838,), (1391097879,), (1391098799,), (1391099001,), (1391099265,), (1391099405,), (1391099487,), (1391099752,), (1391099754,), (1391099759,), (1391100145,), (1391100147,), (1391100152,), (1391100157,), (1391100159,), (1391100161,), (1391100953,), (1391100983,), (1391101135,), (1391101168,), (1391101226,), (1391101426,), (1391101468,), (1391101504,), (1391101537,), (1391102062,), (1391102128,), (1391102213,), (1391103110,), (1391103143,), (1391103181,), (1391103212,), (1391103234,), (1391103242,), (1391103672,), (1391103717,), (1391103747,), (1391103778,), (1391103851,), (1391104225,), (1391104227,), (1391104240,), (1391104241,), (1391104245,), (1391104246,), (1391104266,), (1391104267,), (1391104269,), (1391104270,), (1391104272,), (1391104273,), (1391104285,), (1391104287,), (1391104290,), (1391104294,), (1391104603,), (1391104610,), (1391104616,), (1391104619,), (1391104622,), (1391104647,), (1391104870,), (1391104871,), (1391104876,), (1391104878,), (1391104883,), (1391104884,), (1391104886,), (1391104887,), (1391105889,), (1391105922,), (1391105962,), (1391105983,), (1391105984,), (1391106077,), (1391106259,), (1391106306,), (1391106342,), (1391106368,), (1391106405,), (1391106737,), (1391106609,), (1391106640,), (1391106670,), (1391106701,), (1391106894,), (1391106907,), (1391106919,), (1391106922,), (1391106924,), (1391107325,), (1391107415,), (1391107426,), (1391107437,), (1391107460,), (1391107485,), (1391107499,), (1391107500,), (1391107502,), (1391107659,), (1391107673,), (1391107681,), (1391107710,), (1391107723,), (1391107736,), (1391108357,), (1391108358,), (1391108397,), (1391108400,), (1391108463,), (1391108474,), (1391108515,), (1391108534,), (1391108557,), (1391108574,), (1391108754,), (1391108795,), (1391108802,), (1391108804,), (1391108808,), (1391108811,), (1391109689,), (1391109702,), (1391109748,), (1391109771,), (1391110124,), (1391110125,), (1391110130,), (1391110132,), (1391110135,), (1391110138,), (1391110612,), (1391110614,), (1391110616,), (1391110632,), (1391110717,), (1391110742,), (1391110749,), (1391110775,), (1391110780,), (1391110783,), (1391110864,), (1391110865,), (1391110867,), (1391110868,), (1391110890,), (1391110891,), (1391110894,), (1391110896,), (1391111016,), (1391111053,), (1391111086,), (1391111138,), (1391111201,), (1391111560,), (1391111565,), (1391111577,), (1391111721,), (1391111901,), (1391112102,), (1391112707,), (1391112754,), (1391112776,), (1391112797,), (1391113777,), (1391114226,), (1391114278,), (1391114522,), (1391114604,), (1391113294,), (1391113371,), (1391113473,), (1391113582,), (1391113664,), (1391114030,), (1391114059,), (1391114135,), (1391114186,), (1391114868,), (1391114978,), (1391115070,), (1391115158,), (1391115240,), (1391115338,), (1391116927,), (1391116958,), (1391116996,), (1391117026,), (1391117036,), (1391117040,), (1391117044,), (1391117076,), (1391117220,), (1391117255,), (1391117818,), (1391117826,), (1391117828,), (1391117830,), (1391117833,), (1391118550,), (1391118588,), (1391118618,), (1391118648,), (1391118686,), (1391118721,), (1391119262,), (1391119263,), (1391119295,), (1391119296,), (1391119317,), (1391119319,), (1391119345,), (1391119347,), (1391119368,), (1391119373,), (1391120115,), (1391120148,), (1391120182,), (1391120215,), (1391120249,), (1391120412,), (1391120461,), (1391120511,), (1391120571,), (1391120919,), (1391120966,), (1391121008,), (1391121049,), (1391121092,), (1391121124,), (1391121605,), (1391121606,), (1391121645,), (1391121650,), (1391121681,), (1391121683,), (1391121707,), (1391121708,), (1391121710,), (1391121712,), (1391121743,), (1391121746,), (1391121747,), (1391121775,), (1391121809,), (1391122333,), (1391122388,), (1391122438,), (1391122473,), (1391122537,), (1391123601,), (1391123803,), (1391123943,), (1391124013,), (1391124083,), (1391124116,), (1391124544,), (1391124300,), (1391124420,), (1391124977,), (1391124980,), (1391125006,), (1391125042,), (1391125073,), (1391125076,), (1391125499,), (1391125531,), (1391125563,), (1391125594,), (1391125627,), (1391126050,), (1391126058,), (1391126069,), (1391126071,), (1391126080,), (1391126091,), (1391126165,), (1391126270,), (1391126365,), (1391126770,), (1391126787,), (1391126873,), (1391127022,), (1391127145,), (1391127310,), (1391127460,), (1391127462,), (1391127542,), (1391127545,), (1391127615,), (1391127627,), (1391127692,), (1391127705,), (1391127760,), (1391127770,), (1391128330,), (1391128342,), (1391128346,), (1391128379,), (1391129272,), (1391129308,), (1391129323,), (1391129349,), (1391129351,), (1391129719,), (1391129722,), (1391129725,), (1391129775,), (1391129778,), (1391129780,), (1391129806,), (1391129836,), (1391130380,), (1391130383,), (1391130434,), (1391130467,), (1391130488,), (1391130522,), (1391130532,), (1391130538,), (1391130545,), (1391130551,), (1391130609,), (1391130639,), (1391130674,), (1391130747,), (1391130819,), (1391130881,), (1391131266,), (1391131322,), (1391131347,), (1391131349,), (1391131153,), (1391131155,), (1391131175,), (1391131214,), (1391131440,), (1391131454,), (1391131482,), (1391131487,), (1391131913,), (1391131947,), (1391132002,), (1391132069,), (1391132355,), (1391132360,), (1391132363,), (1391132365,), (1391132367,), (1391132372,), (1391133041,), (1391133043,), (1391133114,), (1391133115,), (1391133117,), (1391133118,), (1391133137,), (1391133140,), (1391133180,), (1391133181,), (1391133307,), (1391137965,), (1391137966,), (1391139554,), (1391139231,), (1391139232,), (1391139523,), (1391139835,), (1391139837,), (1391139841,), (1391139846,), (1391139852,), (1391139939,), (1391139982,), (1391139996,), (1391140000,), (1391140014,), (1391140307,), (1391140340,), (1391140348,), (1391140353,), (1391140452,), (1391140454,), (1391140455,), (1391140457,), (1391140458,), (1391140459,), (1391140461,), (1391140462,), (1391140464,), (1391140465,), (1391140467,), (1391140468,), (1391140480,), (1391140490,), (1391140505,), (1391140518,), (1391140636,), (1391140639,), (1391140642,), (1391140646,), (1391140649,), (1391140903,), (1391140933,), (1391140993,), (1391141082,), (1391141182,), (1391141810,), (1391141811,), (1391141842,), (1391141844,), (1391141878,), (1391141884,), (1391141916,), (1391141918,), (1391142153,), (1391142157,), (1391142175,), (1391142207,), (1391142212,), (1391142227,), (1391142250,), (1391142276,), (1391142314,), (1391142349,), (1391142384,), (1391143294,), (1391143326,), (1391143359,), (1391143396,), (1391143422,), (1391143428,), (1391143483,), (1391143495,), (1391143497,), (1391143501,), (1391143685,), (1391143688,), (1391143730,), (1391144082,), (1391144241,), (1391143636,), (1391143645,), (1391143681,), (1391143810,), (1391143811,), (1391143825,), (1391143826,), (1391143828,), (1391143829,), (1391143831,), (1391143832,), (1391143834,), (1391143836,), (1391143837,), (1391143839,), (1391143924,), (1391143955,), (1391143991,), (1391144027,), (1391144053,), (1391145034,), (1391145120,), (1391145792,), (1391145793,), (1391145796,), (1391145797,), (1391147063,), (1391147095,), (1391147128,), (1391147158,), (1391147160,), (1391147161,), (1391147224,), (1391147257,), (1391147290,), (1391147330,), (1391147857,), (1391147891,), (1391147903,), (1391147939,), (1391147977,), (1391148474,), (1391148509,), (1391148584,), (1391148627,), (1391148694,), (1391148773,), (1391149131,), (1391149196,), (1391149249,), (1391149299,), (1391149512,), (1391149516,), (1391149521,), (1391149654,), (1391153290,), (1391196626,), (1391196850,), (1391196851,), (1391196887,), (1391196896,), (1391196926,), (1391196947,), (1391196998,), (1391197008,), (1391197036,), (1391197045,), (1391197071,), (1391197093,), (1391197302,), (1391197374,), (1391197433,), (1391197476,), (1391197510,), (1391198160,), (1391198195,), (1391198229,), (1391198249,), (1391198598,), (1391198648,), (1391198712,), (1391198754,), (1391198786,), (1391199026,), (1391199030,), (1391199055,), (1391199062,), (1391199254,), (1391199257,), (1391199294,), (1391199298,), (1391199331,), (1391199332,), (1391199366,), (1391199369,), (1391199402,), (1391199406,), (1391199436,), (1391199441,), (1391199606,), (1391199645,), (1391199682,), (1391199717,), (1391199754,), (1391200261,), (1391200276,), (1391200279,), (1391200307,), (1391200315,), (1391218650,), (1391216654,), (1391218601,), (1391218604,), (1391218608,), (1391218616,), (1391218752,), (1391218753,), (1391218760,), (1391218761,), (1391218764,), (1391218766,), (1391218768,), (1391218769,), (1391218881,), (1391218883,), (1391218888,), (1391218978,), (1391218989,), (1391218990,), (1391218991,), (1391219078,), (1391219080,), (1391219088,), (1391219092,), (1391219169,), (1391219184,), (1391219194,), (1391219383,), (1391219417,), (1391219450,), (1391219486,), (1391219564,), (1391219550,), (1391219553,), (1391219557,), (1391219561,), (1391219596,), (1391219597,), (1391219599,), (1391219601,), (1391219603,), (1391219604,), (1391219608,), (1391219609,), (1391219686,), (1391219687,), (1391219690,), (1391219788,), (1391219790,), (1391219792,), (1391219795,), (1391219829,), (1391219831,), (1391219834,), (1391219836,), (1391219840,), (1391220176,), (1391220364,), (1391220381,), (1391220456,), (1391220458,), (1391220582,), (1391220584,), (1391221219,), (1391221222,), (1391221225,), (1391221261,), (1391221265,), (1391221268,), (1391221282,), (1391221287,), (1391221292,), (1391221296,), (1391221300,), (1391221306,), (1391221308,), (1391221359,), (1391221345,), (1391221348,), (1391221352,), (1391221371,), (1391221372,), (1391221373,), (1391221375,), (1391221445,), (1391221572,), (1391221576,), (1391221594,), (1391221596,), (1391221768,), (1391221802,), (1391221838,), (1391222446,), (1391222456,), (1391222459,), (1391222462,), (1391222464,), (1391222731,), (1391222732,), (1391222776,), (1391222777,), (1391222816,), (1391222821,), (1391222859,), (1391222863,), (1391222873,), (1391222876,), (1391222976,), (1391223019,), (1391223052,), (1391223111,), (1391223398,), (1391223431,), (1391223472,), (1391223512,), (1391224071,), (1391224108,), (1391224146,), (1391224190,), (1391224242,), (1391224291,), (1391224555,), (1391224556,), (1391224574,), (1391224575,), (1391224578,), (1391224581,), (1391224602,), (1391224620,), (1391224630,), (1391224632,), (1391224645,), (1391224658,), (1391224663,), (1391224713,), (1391224716,), (1391224720,), (1391224724,), (1391225389,), (1391225428,), (1391225466,), (1391225502,), (1391225537,), (1391225576,), (1391226189,), (1391226225,), (1391226258,), (1391226296,), (1391226731,), (1391226732,), (1391226790,), (1391226793,), (1391226863,), (1391226871,), (1391226941,), (1391226961,), (1391227028,), (1391227039,), (1391227599,), (1391227315,), (1391227393,), (1391227431,), (1391227477,), (1391227547,), (1391227925,), (1391227926,), (1391227929,), (1391228269,), (1391228273,), (1391228278,), (1391228313,), (1391228340,), (1391228345,), (1391228456,), (1391228490,), (1391228506,), (1391228515,), (1391228517,), (1391228519,), (1391228522,), (1391228524,), (1391228528,), (1391228697,), (1391228734,), (1391229212,), (1391229842,), (1391229878,), (1391229889,), (1391229892,), (1391229964,), (1391230003,), (1391230037,), (1391230077,), (1391230114,), (1391230406,), (1391230418,), (1391230420,), (1391230613,), (1391230616,), (1391230619,), (1391230623,), (1391230624,), (1391230645,), (1391230650,), (1391230657,), (1391230661,), (1391230665,), (1391230669,), (1391231116,), (1391231117,), (1391231157,), (1391231158,), (1391231194,), (1391231198,), (1391231232,), (1391231236,), (1391231269,), (1391231275,), (1391231452,), (1391231494,), (1391231530,), (1391231566,), (1391231603,), (1391231638,), (1391231948,), (1391231955,), (1391231958,), (1391232795,), (1391232983,), (1391233024,), (1391233063,), (1391232500,), (1391232537,), (1391232609,), (1391232695,), (1391232758,), (1391233206,), (1391233258,), (1391233330,), (1391233402,), (1391233835,), (1391233838,), (1391233842,), (1391233847,), (1391233858,), (1391233861,), (1391234133,), (1391234149,), (1391234187,), (1391234196,), (1391234416,), (1391234457,), (1391234500,), (1391234550,), (1391234591,), (1391234634,), (1391235198,), (1391235200,), (1391235209,), (1391235213,), (1391235218,), (1391235222,), (1391235295,), (1391235329,), (1391235363,), (1391235379,), (1391235590,), (1391235618,), (1391235639,), (1391235653,), (1391235656,), (1391235659,), (1391235709,), (1391235711,), (1391235712,), (1391235714,), (1391236182,), (1391236216,), (1391236258,), (1391236298,), (1391236335,), (1391236373,), (1391236893,), (1391236930,), (1391236964,), (1391236986,), (1391236989,), (1391236992,), (1391237000,), (1391237003,), (1391237006,), (1391237031,), (1391237553,), (1391237616,), (1391237676,), (1391237759,), (1391238492,), (1391238525,), (1391238564,), (1391238607,), (1391238680,), (1391238744,), (1391238866,), (1391238871,), (1391238911,), (1391239881,), (1391239749,), (1391239822,), (1391240589,), (1391241216,), (1391241252,), (1391241291,), (1391241331,), (1391241372,), (1391241410,), (1391242349,), (1391242430,), (1391242519,), (1391242623,), (1391242741,), (1391242828,), (1391243485,), (1391243522,), (1391243526,), (1391243529,), (1391243533,), (1391243537,), (1391243778,), (1391243782,), (1391243786,), (1391244160,), (1391244198,), (1391244247,), (1391244283,), (1391244316,), (1391244347,), (1391244527,), (1391244562,), (1391244600,), (1391244637,), (1391244672,), (1391244709,), (1391244845,), (1391244967,), (1391245000,), (1391245409,), (1391245412,), (1391245414,), (1391245459,), (1391245533,), (1391245608,), (1391246075,), (1391246115,), (1391246183,), (1391246221,), (1391246261,), (1391246311,), (1391246443,), (1391246479,), (1391246514,), (1391246563,), (1391246623,), (1391246629,), (1391246647,), (1391246649,), (1391246653,), (1391250359,), (1391250300,), (1391250338,), (1391250352,), (1391250356,), (1391250396,), (1391250398,), (1391250399,), (1391250403,), (1391250406,), (1391250473,), (1391250514,), (1391250556,), (1391250594,), (1391250669,), (1391250741,), (1391251509,), (1391251586,), (1391251644,), (1391251680,), (1391252404,), (1391252475,), (1391252551,), (1391252589,), (1391252627,), (1391252665,), (1391252796,), (1391252837,), (1391252875,), (1391252910,), (1391253408,), (1391253500,), (1391253563,), (1391253882,), (1391253885,), (1391253889,), (1391253892,), (1391253895,), (1391253897,), (1391253927,), (1391253928,), (1391253931,), (1391253933,), (1391253934,), (1391253937,), (1391253938,), (1391253939,), (1391253980,), (1391253998,), (1391254017,), (1391254055,), (1391254091,), (1391254231,), (1391254270,), (1391254840,), (1391254906,), (1391254953,), (1391255000,), (1391255010,), (1391255017,), (1391255210,), (1391255188,), (1391255198,), (1391255202,), (1391255206,), (1391255427,), (1391255461,), (1391255499,), (1391255533,), (1391255570,), (1391256055,), (1391256094,), (1391256528,), (1391256585,), (1391256631,), (1391256668,), (1391256736,), (1391256812,), (1391256813,), (1391256849,), (1391256853,), (1391256888,), (1391256890,), (1391256930,), (1391256932,), (1391256949,), (1391256963,), (1391256966,), (1391256969,), (1391257648,), (1391261526,), (1391261527,), (1391262026,), (1391262027,), (1391262068,), (1391262070,), (1391262111,), (1391262112,), (1391262307,), (1391262797,), (1391262784,), (1391262787,), (1391262788,), (1391262791,), (1391262794,), (1391262827,), (1391262829,), (1391262833,), (1391262838,), (1391262841,), (1391262849,), (1391262872,), (1391262910,), (1391262949,), (1391262988,), (1391263027,), (1391263545,), (1391263582,), (1391263622,), (1391263659,), (1391263699,), (1391264368,), (1391264370,), (1391264417,), (1391264420,), (1391264874,), (1391264915,), (1391264950,), (1391264985,), (1391265233,), (1391265270,), (1391266024,), (1391266107,), (1391266153,), (1391267038,), (1391269225,), (1391269176,), (1391269854,), (1391269899,), (1391269990,), (1391270050,), (1391270394,), (1391270472,), (1391270548,), (1391270849,), (1391270851,), (1391270885,), (1391270922,), (1391270962,), (1391271277,), (1391271286,), (1391271628,), (1391271674,), (1391271716,), (1391271754,), (1391271794,), (1391272302,), (1391272321,), (1391272363,), (1391272403,), (1391272441,), (1391272498,), (1391272637,), (1391272687,), (1391272727,), (1391272764,), (1391272826,), (1391273737,), (1391273740,), (1391273768,), (1391273975,), (1391274012,), (1391274058,), (1391274094,), (1391274135,), (1391274304,), (1391274305,), (1391274307,), (1391274308,), (1391274310,), (1391274311,), (1391274313,), (1391274314,), (1391274317,), (1391274318,), (1391274327,), (1391274330,), (1391274333,), (1391274336,), (1391274339,), (1391274379,), (1391274382,), (1391274893,), (1391275866,), (1391275776,), (1391275824,), (1391276019,), (1391276056,), (1391276095,), (1391276138,), (1391276295,), (1391276296,), (1391276300,), (1391276303,), (1391276320,), (1391276325,), (1391276352,), (1391276362,), (1391276889,), (1391276964,), (1391277065,), (1391277135,), (1391277374,), (1391277487,), (1391277527,), (1391277966,), (1391277968,), (1391277999,), (1391278238,), (1391278240,), (1391278248,), (1391278608,), (1391278646,), (1391278682,), (1391279061,), (1391279062,), (1391279065,), (1391279440,), (1391279504,), (1391280076,), (1391280082,), (1391280088,), (1391280094,), (1391280487,), (1391280524,), (1391280540,), (1391280685,), (1391280723,), (1391280730,), (1391280735,), (1391280855,), (1391280859,), (1391280863,), (1391280868,), (1391281454,), (1391281493,), (1391281529,), (1391281563,), (1391281599,), (1391281955,), (1391281956,), (1391281946,), (1391281947,), (1391281951,), (1391281952,), (1391282162,), (1391282163,), (1391282232,), (1391282235,), (1391282301,), (1391282306,), (1391282358,), (1391282360,), (1391282402,), (1391282405,), (1391282662,), (1391282697,), (1391282748,), (1391282806,), (1391283314,), (1391283317,), (1391283321,), (1391283325,), (1391283329,), (1391283331,), (1391283485,), (1391283553,), (1391283627,), (1391284275,), (1391284349,), (1391284423,), (1391284495,), (1391284968,), (1391284970,), (1391285007,), (1391285010,), (1391285084,), (1391285093,), (1391285815,), (1391285817,), (1391285853,), (1391285855,), (1391285892,), (1391285894,), (1391285928,), (1391285929,), (1391286238,), (1391286247,), (1391286283,), (1391287457,), (1391287517,), (1391287540,), (1391287546,), (1391287548,), (1391287589,), (1391287622,), (1391287685,), (1391287726,), (1391287931,), (1391287968,), (1391287992,), (1391288029,), (1391288066,), (1391288596,), (1391288639,), (1391288680,), (1391288718,), (1391289071,), (1391289097,), (1391289111,), (1391289116,), (1391289146,), (1391289282,), (1391289284,), (1391289287,), (1391289295,), (1391289307,), (1391289309,), (1391289314,), (1391289315,), (1391289319,), (1391289320,), (1391289324,), (1391289325,), (1391289341,), (1391301702,), (1391302518,), (1391302592,), (1391302665,), (1391302739,), (1391304327,), (1391304331,), (1391304439,), (1391304446,), (1391304563,), (1391304570,), (1391305853,), (1391305854,), (1391305951,), (1391305952,), (1391307010,), (1391307011,), (1391307048,), (1391307051,), (1391307089,), (1391307097,), (1391307135,), (1391307145,), (1391307176,), (1391307186,), (1391307341,), (1391307376,), (1391307406,), (1391308499,), (1391308581,), (1391308657,), (1391309362,), (1391309372,), (1391309414,), (1391309479,), (1391309750,), (1391309784,), (1391309824,), (1391309866,), (1391309909,), (1391309949,), (1391310504,), (1391310540,), (1391310586,), (1391310662,), (1391310704,), (1391311268,), (1391311304,), (1391311342,), (1391311378,), (1391311631,), (1391311653,), (1391311682,), (1391311717,), (1391311790,), (1391311866,), (1391312201,), (1391312290,), (1391312348,), (1391312395,), (1391312873,), (1391314043,), (1391313930,), (1391313964,), (1391314002,), (1391314538,), (1391314540,), (1391314574,), (1391314575,), (1391314610,), (1391314614,), (1391314648,), (1391314652,), (1391314683,), (1391314686,), (1391315210,), (1391315252,), (1391315296,), (1391315359,), (1391315427,), (1391315467,), (1391315636,), (1391315671,), (1391315709,), (1391315724,), (1391315728,), (1391315732,), (1391315747,), (1391315782,), (1391315882,), (1391315885,), (1391315892,), (1391315925,), (1391316119,), (1391316123,), (1391316141,), (1391316172,), (1391316889,), (1391316943,), (1391316981,), (1391317019,), (1391317058,), (1391317095,), (1391317216,), (1391317219,), (1391317223,), (1391317227,), (1391317231,), (1391317624,), (1391317630,), (1391319849,), (1391319724,), (1391319762,), (1391319805,), (1391320552,), (1391320553,), (1391320559,), (1391320561,), (1391320565,), (1391320566,), (1391320570,), (1391320572,), (1391320617,), (1391320635,), (1391320666,), (1391320674,), (1391320744,), (1391320978,), (1391321018,), (1391321027,), (1391321034,), (1391321036,), (1391321060,), (1391321063,), (1391321068,), (1391321073,), (1391321117,), (1391321127,), (1391321130,), (1391321134,), (1391321173,), (1391321177,), (1391321182,), (1391321189,), (1391321193,), (1391321198,), (1391321235,), (1391321236,), (1391321240,), (1391321241,), (1391321246,), (1391321249,), (1391321265,), (1391321273,), (1391321307,), (1391321315,), (1391321486,), (1391321522,), (1391321558,), (1391321894,), (1391321964,), (1391322033,), (1391322104,), (1391322154,), (1391322357,), (1391322394,), (1391322433,), (1391322471,), (1391322484,), (1391322530,), (1391322528,), (1391322630,), (1391322644,), (1391322683,), (1391322733,), (1391322773,), (1391323093,), (1391323130,), (1391323145,), (1391323179,), (1391323180,), (1391323181,), (1391323182,), (1391323220,), (1391323225,), (1391323234,), (1391323240,), (1391323243,), (1391323247,), (1391323421,), (1391323422,), (1391323468,), (1391323469,), (1391323517,), (1391323520,), (1391324030,), (1391324031,), (1391324073,), (1391324080,), (1391324113,), (1391324124,), (1391324155,), (1391324167,), (1391324195,), (1391324210,), (1391324522,), (1391324599,), (1391324637,), (1391324672,), (1391325158,), (1391325194,), (1391325519,), (1391325561,), (1391325603,), (1391325689,), (1391326354,), (1391326391,), (1391326394,), (1391326397,), (1391326430,), (1391326513,), (1391326516,), (1391326521,), (1391326525,), (1391326530,), (1391326597,), (1391326601,), (1391326639,), (1391326642,), (1391326707,), (1391326756,), (1391326773,), (1391326777,), (1391327396,), (1391327208,), (1391327245,), (1391327282,), (1391327317,), (1391327357,), (1391327536,), (1391327574,), (1391327627,), (1391327668,), (1391327707,), (1391328092,), (1391328118,), (1391328121,), (1391328141,), (1391328174,), (1391328414,), (1391328477,), (1391328502,), (1391328506,), (1391328509,), (1391329416,), (1391329497,), (1391329629,), (1391329747,), (1391329818,), (1391329906,), (1391330621,), (1391330663,), (1391330700,), (1391330752,), (1391330789,), (1391330792,), (1391330795,), (1391330798,), (1391330815,), (1391330877,), (1391331296,), (1391331318,), (1391331323,), (1391331337,), (1391331400,), (1391332689,), (1391332752,), (1391332820,), (1391333729,), (1391333745,), (1391333782,), (1391333821,), (1391333829,), (1391333834,), (1391333909,), (1391333919,), (1391333927,), (1391333951,), (1391334816,), (1391334882,), (1391334951,), (1391335010,), (1391335072,), (1391335111,), (1391335814,), (1391335815,), (1391335845,), (1391335847,), (1391335871,), (1391335872,), (1391335875,), (1391335876,), (1391336104,), (1391336142,), (1391336179,), (1391336214,), (1391336245,), (1391336265,), (1391336296,), (1391336321,), (1391336581,), (1391336563,), (1391336565,), (1391336568,), (1391336571,), (1391336576,), (1391336630,), (1391336637,), (1391336655,), (1391336709,), (1391336714,), (1391336719,), (1391336724,), (1391336730,), (1391336778,), (1391336779,), (1391336783,), (1391336786,), (1391336787,), (1391336788,), (1391336792,), (1391336793,), (1391336798,), (1391336799,), (1391336803,), (1391336804,), (1391336944,), (1391336978,), (1391337109,), (1391337113,), (1391337118,), (1391337124,), (1391337127,), (1391337128,), (1391337186,), (1391337190,), (1391337199,), (1391337210,), (1391337215,), (1391337243,), (1391337659,), (1391337692,), (1391337728,), (1391337765,), (1391337799,), (1391337838,), (1391337945,), (1391337954,), (1391337961,), (1391337977,), (1391338007,), (1391338048,), (1391338087,), (1391338124,), (1391338160,), (1391338462,), (1391338500,), (1391338544,), (1391338581,), (1391338616,), (1391338798,), (1391338833,), (1391338868,), (1391338905,), (1391338961,), (1391339078,), (1391339114,), (1391339152,), (1391339189,), (1391339221,), (1391339229,), (1391339292,), (1391339296,), (1391339320,), (1391339359,), (1391339376,), (1391339378,), (1391339382,), (1391339816,), (1391339868,), (1391339912,), (1391339954,), (1391340464,), (1391340506,), (1391340541,), (1391340580,), (1391340619,), (1391340658,), (1391340710,), (1391340711,), (1391340747,), (1391340752,), (1391340786,), (1391340791,), (1391340826,), (1391340831,), (1391341086,), (1391341112,), (1391341126,), (1391340700,), (1391340701,), (1391340705,), (1391340706,), (1391340964,), (1391340978,), (1391340981,), (1391340984,), (1391340988,), (1391340995,), (1391341212,), (1391341216,), (1391341219,), (1391341222,), (1391341295,), (1391341298,), (1391341569,), (1391341605,), (1391341642,), (1391341678,), (1391342473,), (1391342484,), (1391342487,), (1391342520,), (1391342532,), (1391342582,), (1391343304,), (1391343341,), (1391343377,), (1391343661,), (1391343680,), (1391343693,), (1391343717,), (1391343733,), (1391343738,), (1391343850,), (1391343855,), (1391343860,), (1391343863,), (1391343871,), (1391343877,), (1391343881,), (1391343884,), (1391343886,), (1391343890,), (1391344265,), (1391344352,), (1391344435,), (1391344512,), (1391344904,), (1391344905,), (1391344908,), (1391344909,), (1391344913,), (1391344915,), (1391344954,), (1391344962,), (1391344994,), (1391345002,), (1391345033,), (1391345035,), (1391345151,), (1391345173,), (1391345177,), (1391345203,), (1391345205,), (1391345212,), (1391345241,), (1391345244,), (1391345247,), (1391345250,), (1391345251,), (1391345253,), (1391345267,), (1391345274,), (1391345278,), (1391345282,), (1391345289,), (1391345291,), (1391345298,), (1391345301,), (1391345306,), (1391345311,), (1391345405,), (1391345372,), (1391345375,), (1391345379,), (1391345397,), (1391345401,), (1391345415,), (1391345503,), (1391345504,), (1391345508,), (1391345509,), (1391345512,), (1391345514,), (1391345517,), (1391345518,), (1391345521,), (1391345523,), (1391345528,), (1391345531,), (1391345533,), (1391345535,), (1391345537,), (1391345552,), (1391345654,), (1391345656,), (1391345658,), (1391345660,), (1391346189,), (1391346273,), (1391346333,), (1391346399,), (1391346441,), (1391346859,), (1391346891,), (1391346930,), (1391346970,), (1391347544,), (1391347545,), (1391347547,), (1391347549,), (1391347552,), (1391347903,), (1391347913,), (1391347941,), (1391347961,), (1391347965,), (1391347989,), (1391348037,), (1391348040,), (1391348043,), (1391348047,), (1391348086,), (1391348089,), (1391348091,), (1391348100,), (1391348104,), (1391348115,), (1391348186,), (1391348189,), (1391348470,), (1391348489,), (1391348666,), (1391348672,), (1391348678,), (1391348694,), (1391348699,), (1391348730,), (1391348732,), (1391348734,), (1391348737,), (1391348789,), (1391348792,), (1391348814,), (1391348818,), (1391348830,), (1391348769,), (1391348774,), (1391348779,), (1391348784,), (1391348797,), (1391348800,), (1391348804,), (1391348809,), (1391348847,), (1391348851,), (1391348868,), (1391348871,), (1391348875,), (1391348878,), (1391348972,), (1391348983,), (1391348985,), (1391349000,), (1391349002,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31102025': {'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([28040319]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1391348830, 1391348818, 1391348814] map_info['map_portfolio_photo'] : {28040319: [1391348830, 1391348818, 1391348814, 1391348792, 1391348789, 1391348737, 1391348734, 1391348732, 1391348730, 1391348699, 1391348694, 1391348678, 1391348672, 1391348666, 1391348489, 1391348470, 1391348189, 1391348186, 1391348115, 1391348104, 1391348100, 1391348091, 1391348089, 1391348086, 1391348047, 1391348043, 1391348040, 1391348037, 1391347989, 1391347965, 1391347961, 1391347941, 1391347913, 1391347903, 1391347552, 1391347549, 1391347547, 1391347545, 1391347544, 1391346970, 1391346930, 1391346891, 1391346859, 1391346441, 1391346399, 1391346333, 1391346273, 1391346189, 1391345660, 1391345658, 1391345656, 1391345654, 1391345552, 1391345537, 1391345535, 1391345533, 1391345531, 1391345528, 1391345523, 1391345521, 1391345518, 1391345517, 1391345514, 1391345512, 1391345509, 1391345508, 1391345504, 1391345503, 1391345415, 1391345401, 1391345397, 1391345379, 1391345375, 1391345372]} final : True mtd_id 4302 list_pids : [1391348830, 1391348818, 1391348814] Looping around the photos to save general results len do output : 1 /28040319Didn'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, '3976170') ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170') ('4302', None, None, None, None, None, None, None, '3976170') ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '28040319', 'None', None, None, None, None, '3976170'), ('4302', '28040319', '1391348830', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348818', None, None, None, None, None, '3976170'), ('4302', '28040319', '1391348814', None, None, None, None, None, '3976170')] time used for this insertion : 0.009723663330078125 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9583096504211426 time spend to save output : 0.009960651397705078 total time spend for step 5 : 3.9682703018188477 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 (3976170) 2.36user 2.11system 0:15.23elapsed 29%CPU (0avgtext+0avgdata 157528maxresident)k 80inputs+11720outputs (0major+76542minor)pagefaults 0swaps